Post Test Probability

Calculate post-test probability, PPV, NPV, and likelihood ratios from prevalence, sensitivity, and specificity using Bayes' theorem. Free online diagnostic test accuracy calculator with interactive charts.

Calculate post-test probability from prevalence, sensitivity, and specificity

About This Calculator

The Post Test Probability Calculator helps clinicians, researchers, and students compute the probability of disease after receiving a diagnostic test result. By entering the disease prevalence (pre-test probability), the test's sensitivity, and the test's specificity, the calculator applies Bayes' theorem to compute positive predictive value (PPV), negative predictive value (NPV), likelihood ratios, and post-test probabilities for both positive and negative test results.

The calculation follows a four-step process. First, pre-test odds are derived from prevalence using the formula odds = p / (1 − p). Second, the positive likelihood ratio (LR+ = sensitivity / (1 − specificity)) and negative likelihood ratio (LR− = (1 − sensitivity) / specificity) are computed. Third, post-test odds are obtained by multiplying pre-test odds by the appropriate likelihood ratio. Finally, post-test probability is calculated as odds / (1 + odds). The positive predictive value (PPV) is numerically equivalent to the post-test probability following a positive test, while 1 − NPV gives the post-test probability following a negative test.

Regional Notes: In India, the Indian Council of Medical Research (ICMR) provides prevalence estimates for infectious diseases and cancer screening programs. In the United States, the CDC and USPSTF publish disease prevalence data and screening recommendations that incorporate post-test probability thresholds. In the United Kingdom, NICE guidelines specify diagnostic accuracy requirements and treatment thresholds based on post-test probability calculations. Disease prevalence can vary significantly between regions, so always use locally relevant prevalence estimates.

This tool is essential for evidence-based medicine, clinical decision-making, diagnostic test evaluation, and medical education. It supports global healthcare professionals in interpreting test results accurately and making informed patient care decisions.

Frequently Asked Questions

What is post-test probability?

Post-test probability is the probability that a patient has a disease after receiving a diagnostic test result. It depends on the pre-test probability (prevalence), the test's sensitivity and specificity, and whether the test result is positive or negative. It is computed using Bayes' theorem and helps clinicians make informed decisions about patient care.

How do you calculate post-test probability?

Post-test probability is calculated in steps: first compute pre-test odds as prevalence divided by (1 minus prevalence). Then multiply by the likelihood ratio (LR+ for positive test or LR- for negative test). Finally convert post-test odds to probability using post-test probability equals post-test odds divided by (1 plus post-test odds).

What is the difference between PPV and post-test probability?

Positive predictive value (PPV) is numerically equivalent to the post-test probability of disease given a positive test result. Both represent the proportion of individuals with a positive test who actually have the disease. The terms are often used interchangeably in clinical practice.

What is a good likelihood ratio for a diagnostic test?

A positive likelihood ratio (LR+) above 10 indicates a very useful diagnostic test that significantly increases disease probability. LR+ between 5 and 10 offers moderate utility. A negative likelihood ratio (LR-) below 0.1 is excellent at ruling out disease, while LR- below 0.2 is considered good.

How does prevalence affect post-test probability?

Prevalence (pre-test probability) significantly impacts post-test probability. In low-prevalence settings, even a positive test may yield only a modest post-test probability. In high-prevalence settings, a negative test may not reliably rule out disease. This is why test interpretation depends on clinical context and disease prevalence.

What is the formula for the positive likelihood ratio?

The positive likelihood ratio (LR+) equals sensitivity divided by (1 minus specificity). It represents how much more likely a positive test result is in a diseased person compared to a non-diseased person. Higher values indicate better discriminatory ability for ruling in disease.

Can post-test probability be used for treatment decisions?

Yes, post-test probability is a cornerstone of evidence-based medicine. When the post-test probability crosses a treatment threshold (typically above 70-80% for most conditions), clinicians may initiate therapy. Below the test threshold (typically under 10-20%), further testing may be warranted before treatment decisions.

How does Bayes' theorem apply to diagnostic testing?

Bayes' theorem updates the probability of disease given test results by combining pre-test probability (prevalence) with test characteristics (sensitivity and specificity). It mathematically formalizes how new evidence should change our beliefs about disease likelihood, forming the foundation of diagnostic reasoning in evidence-based medicine.