Sensitivity, Specificity, and Predictive Values
Eric Delmelle
March2026
| Disease Present | Disease Absent | |
|---|---|---|
| Test Positive | True Positive (TP) | False Positive (FP) |
| Test Negative | False Negative (FN) | True Negative (TN) |
\[\text{Sensitivity} = \frac{TP}{TP + FN} \times 100\%\]
“Of all people who ARE sick, what proportion does the test correctly identify?”
🔑 When the cost of missing a case is high (e.g., infectious disease, cancer), prioritize high sensitivity.
\[\text{Specificity} = \frac{TN}{TN + FP} \times 100\%\]
“Of all people who are NOT sick, what proportion does the test correctly clear?”
🔑 When the cost of a false alarm is high (e.g., invasive treatment, stigma), prioritize high specificity.
| Situation | Priority |
|---|---|
| Screening for infectious disease | High Sensitivity |
| Confirmatory testing before treatment | High Specificity |
| Rare disease with costly treatment | High Specificity |
| Cancer early detection programs | High Sensitivity |
📌 Mnemonic — SnNout / SpPin: A highly Sensitive test, when Negative, rules OUT disease. A highly Specific test, when Positive, rules IN disease.
\[\text{PPV} = \frac{TP}{TP + FP} \times 100\%\]
“Of all people who test positive, what proportion are truly sick?”
\[\text{NPV} = \frac{TN}{TN + FN} \times 100\%\]
“Of all people who test negative, what proportion are truly healthy?”
| Prevalence | PPV | NPV |
|---|---|---|
| 1% (low-risk population) | ~16% | ~99.9% |
| 10% (moderate risk) | ~68% | ~99.4% |
| 50% (high-risk population) | ~95% | ~95% |
| TB Present (n=100) | TB Absent (n=900) | Total | |
|---|---|---|---|
| Test Positive | 90 (TP) | 135 (FP) | 225 |
| Test Negative | 10 (FN) | 765 (TN) | 775 |
| Total | 100 | 900 | 1,000 |
Sensitivity = 90 / (90 + 10) = 90% ✓
Specificity = 765 / (765 + 135) = 85% ✓
PPV = 90 / (90 + 135) = 40% ← Only 40% of positives are real!
NPV = 765 / (765 + 10) = 98.7% ← Negative test is very reassuring
🎯 Key takeaway: Test performance must always be interpreted in the context of who is being tested.
| Measure | Formula | Depends on Prevalence? | Key Question |
|---|---|---|---|
| Sensitivity | TP / (TP+FN) | No | Did we catch all sick people? |
| Specificity | TN / (TN+FP) | No | Did we clear all healthy people? |
| PPV | TP / (TP+FP) | Yes | Is this positive result real? |
| NPV | TN / (TN+FN) | Yes | Is this negative result trustworthy? |