Evaluate a diagnostic test against a reference standard: sensitivity, specificity, predictive values and likelihood ratios, each with a 95% confidence interval.
Sensitivity = TP ÷ (TP + FN) · Specificity = TN ÷ (TN + FP)
Sensitivity is the share of people with a condition whom a test correctly picks up; specificity is the share of people without it whom the test correctly clears. Together they describe how good the test itself is.
A highly sensitive test rarely misses a case, so a negative result rules the condition out ("SnNout"). A highly specific test rarely raises a false alarm, so a positive result rules it in ("SpPin").
Predictive values answer the patient's question ("I tested positive; do I have it?"), but they depend on how common the condition is. Likelihood ratios carry the test's strength to any setting.
As given in Altman & Bland, "Diagnostic tests 1–3" (BMJ, 1994), with Wilson intervals and log-method intervals for likelihood ratios. See Sources.
But it misses 15% of infections, so a negative doesn't clear someone with symptoms. With only 4 false positives, the specificity interval is narrow, but LR+ is uncertain: anywhere from about 32 to 226.
| LR+ | LR− | Effect on probability |
|---|---|---|
| > 10 | < 0.1 | Large, often conclusive |
| 5 to 10 | 0.1 to 0.2 | Moderate |
| 2 to 5 | 0.2 to 0.5 | Small but sometimes useful |
| 1 to 2 | 0.5 to 1 | Little or none |
Sensitivity asks “of the ill, how many test positive?”; PPV asks “of the positives, how many are ill?”. Only PPV depends on prevalence.
For ruling out a dangerous condition, sensitivity. For confirming before a risky treatment, specificity.
Wilson score intervals for the four proportions and the standard log method for the likelihood ratios, all at 95%.
With no false positives, specificity is 100% and LR+ divides by zero. Report it as very large and look at the specificity interval.
Not with the same test; moving the cut-off trades one for the other. A better test, or a second test, can improve both.
Sensitivity + specificity − 1, a one-number summary used to choose cut-offs. See the Youden index calculator.
Yes. Machine learning calls it recall.
A highly Sensitive test, when Negative, rules the condition out. SpPin: a highly Specific test, when Positive, rules it in.
Related Tools
Evaluate classification models.
Classification metrics.
Diagnostic test performance.
Updated diagnostic probability.
Risk ratio comparison.
Event probability.