What is post-test probability and how is it calculated?+
Post-test probability is the probability of disease after learning a test result. For a positive test: P(D|T+) = (P times Se) / (P times Se + (1-P) times (1-Sp)), where P is pre-test probability, Se is sensitivity, and Sp is specificity. Equivalently, post-test odds = pre-test odds times LR, then post-test prob = post-test odds / (1 + post-test odds). Both formulas give the same result.
What is the difference between sensitivity, specificity, and post-test probability?+
Sensitivity is the fraction of diseased patients who test positive (true positive rate). Specificity is the fraction of healthy patients who test negative (true negative rate). These are fixed test properties. Post-test probability also depends on the pre-test probability, which varies by patient. The same test gives different post-test probabilities for a high-risk specialist referral versus a low-risk population screen.
How do I calculate post-test probability from a likelihood ratio?+
Step 1: Pre-test odds = P / (1-P). Step 2: Post-test odds = pre-test odds times LR. Step 3: Post-test probability = post-test odds / (1 + post-test odds). For pre-test probability 20% and LR+ = 5: pre-test odds = 0.25, post-test odds = 1.25, post-test probability = 1.25 / 2.25 = 55.6%.
What likelihood ratio values are clinically meaningful?+
LR+ above 10 (or LR- below 0.1) produces large, often decisive, probability shifts. LR between 5 and 10 (or LR- 0.1-0.2) produces moderate shifts. LR between 2 and 5 (or LR- 0.2-0.5) produces small shifts. LR close to 1 means the test result barely changes the pre-test probability and provides minimal diagnostic value. LR+ = Se / (1-Sp); LR- = (1-Se) / Sp.
Why does a 99% accurate test give 50% post-test probability in a 1% prevalence population?+
With 1% prevalence, 99% sensitivity, and 99% specificity: in 10,000 people, 100 are diseased (99 test positive, 1 false negative) and 9,900 are healthy (99 test positive as false positives, 9,801 test negative). Among the 198 positive tests, only 99 are true positives: PPV = 99/198 = 50%. This is the base-rate fallacy. The test is not less accurate; the low prevalence makes false positives abundant relative to true positives.
What is the difference between PPV and post-test probability?+
Positive predictive value (PPV) and post-test probability for a positive test are the same thing: the probability of disease given a positive result. Negative predictive value (NPV) is the probability of no disease given a negative result, which equals 1 minus the post-test probability for a negative test. Both PPV and NPV change with prevalence, unlike sensitivity and specificity.
What pre-test probability should I use in the calculator?+
Use the estimated probability of disease before the test result is known, specific to your patient population. Sources include: published prevalence for the condition in a comparable demographic, a validated clinical prediction rule (such as the Wells score for PE or DVT), or clinical judgment. Using the wrong pre-test probability (for example, using general-population prevalence for a high-risk referral) is the most common error in Bayesian reasoning.
How does a sensitivity of 100% affect post-test probability?+
If sensitivity = 100%, there are no false negatives. The negative post-test probability = (P times 0) / (P times 0 + (1-P) times Sp) = 0. A perfectly sensitive test, when negative, completely rules out the disease. This is why high-sensitivity tests are used for rule-out purposes. Conversely, LR- = (1-1)/Sp = 0, meaning a negative result multiplies the pre-test odds by zero.
What is a Fagan nomogram?+
A Fagan nomogram is a graphical tool for computing post-test probability from pre-test probability and a likelihood ratio. It has three vertical axes: pre-test probability (left), likelihood ratio (middle), and post-test probability (right). Drawing a straight line from the pre-test probability through the LR intersects the right axis at the post-test probability. This calculator performs the same calculation numerically using the formula: post-test odds = pre-test odds times LR.
Can this calculator be used outside of medicine?+
Yes. The same Bayesian framework applies anywhere a binary classifier is tested against a population with a known base rate. Examples: quality control (defect detection rate, false alarm rate, defect prevalence in a production run), information retrieval (precision and recall), email spam filtering (spam prevalence, filter sensitivity, filter specificity), and machine learning classifier evaluation. The mathematical structure is identical to the medical diagnostic context.
What is the formula for LR+ and LR- from sensitivity and specificity?+
LR+ = Sensitivity / (1 minus Specificity). LR- = (1 minus Sensitivity) / Specificity. For a test with 85% sensitivity and 95% specificity: LR+ = 0.85 / 0.05 = 17, LR- = 0.15 / 0.95 = 0.158. An LR+ of 17 means a positive result is 17 times more likely in a diseased person than in a healthy person. LR- of 0.158 means a negative result is 6.3 times more likely in a healthy person than in a diseased person.
What happens when pre-test probability is very high (above 90%)?+
When pre-test probability is very high, even a negative test result may leave substantial post-test probability. For example, with pre-test probability 90% and LR- = 0.1: pre-test odds = 9, post-test odds = 0.9, post-test probability = 47%. The disease is still nearly as likely as not despite a negative test. This is why high pre-test probability patients often need additional testing even after a negative result from a single test.