Category: Practice & Regulation | Estimated reading time: 9 minutes
Different from Kappa: Here, There is a "Correct" Answer
In the Concordance Rate and Cohen's Kappa articles, we measure agreement between two observers — neither party is considered "correct"; they are simply compared to one another. Sensitivity and Specificity operate with a different logic: one side must be the gold standard — a confirmed truth — and the test method is evaluated based on how accurately it matches that truth.
Definition
Sensitivity is the ability of a test method to correctly identify individuals who are positive for a condition (true positive rate). Specificity is the ability to correctly identify individuals who are negative for the condition (true negative rate). Both are essential parameters in assessing diagnostic test performance, particularly in the context of disease detection.
Brief History
The term was introduced by Jacob Yerushalmy in 1947, in the paper "Statistical Problems in Assessing Methods of Medical Diagnosis with Special Reference to X-ray Techniques" in the journal Public Health Reports — initially used to evaluate a tuberculosis screening program via chest X-rays. Yerushalmy defined sensitivity as the capacity of a test to provide a correct diagnosis in confirmed positive cases, and specificity as the capacity to provide a correct diagnosis in confirmed negative cases — definitions that are still used exactly as they were today.
Reason for Use
Used to determine how accurately a test distinguishes between sick and healthy individuals — crucial in selecting a test method that suits clinical goals, such as screening or confirming a diagnosis.
Advantages
- Provides a quantitative overview of test accuracy.
- Helps in selecting the appropriate test based on clinical context.
- Suitable for comparing multiple test methods against a gold standard.
Disadvantages
- Does not reflect the full performance of a test if used alone without predictive values (PPV/NPV) or an ROC curve.
- Requires gold standard data as a comparison.
- Predictive values (PPV/NPV) are highly dependent on prevalence — this is not just a theoretical note, but a real effect that can mislead clinical interpretation.
Numerical Example: Why Prevalence Changes Everything
A test with 95% Sensitivity and 95% Specificity (numbers that look very good) is applied to two different populations:
Population A — disease prevalence of 50% (e.g., a population of referred patients with strong symptoms): out of 1,000 people, the PPV is approximately 95% — meaning a positive result is almost certainly correct.
Population B — disease prevalence of 1% (e.g., screening a general population without symptoms): out of the same 1,000 people tested with the identical test, the PPV drops to approximately 16% — meaning out of all those who tested positive, 84% are actually not sick (false positive).
The Sensitivity and Specificity of the test are exactly the same in both populations — what changes drastically is the PPV, purely due to the difference in prevalence. This is why this draft material correctly identifies predictive values as "dependent on prevalence" as a limitation — but the impact of that limitation is only truly felt when viewed through concrete numbers like these, not just as an abstract statement.
Required Data
- Test results (positive/negative) from the method being tested.
- Diagnosis results based on a reference method/gold standard.
- Contingency matrix (True Positive, False Positive, True Negative, False Negative).
How to Use
- Collect test result data and compare it with the gold standard results.
- Create a 2×2 table (contingency matrix).
- Calculate Sensitivity = TP / (TP + FN).
- Calculate Specificity = TN / (TN + FP).
- Interpret based on requirements:
- For initial screening → prioritize high Sensitivity (minimize missed cases/false negative).
- For diagnostic confirmation → prioritize high Specificity (minimize misdiagnosis/false positive).
For a more complete picture — especially when results will be used in a population with a different prevalence than the validation sample — these steps should be followed by calculating PPV, NPV (adjusted for target prevalence), and Likelihood Ratio. Calculators to compute all these metrics automatically — including simulations of the effects of prevalence changes like the example above — will be discussed in a separate section.
Measure test accuracy against a gold standard, plus the effect of prevalence on PPV/NPV.
Fill in the 2×2 table from your validation results against a gold standard. Sensitivity and Specificity are computed directly from this data — PPV and NPV are recalculated based on the prevalence you set below, to show how predictive values change depending on the population where the test is used.
| Gold Standard: Positive | Gold Standard: Negative | |
|---|---|---|
| Test: Positive | ||
| Test: Negative |
Sensitivity
95.0%
95% CI 88.8% – 97.8%
Specificity
95.0%
95% CI 88.8% – 97.8%
Accuracy
95.0%
n = 200
Youden's J
0.90
Target Population Prevalence
Drag to see how PPV and NPV change depending on the disease prevalence in the population where the test will be used — even though Sensitivity/Specificity stay exactly the same.
PPV (at this prevalence)
95.0%
NPV (at this prevalence)
95.0%
Likelihood Ratio (prevalence-independent)
LR+ (positive)
19.00
LR− (negative)
0.05
A high LR+ (>10) and low LR− (<0.1) indicate a test with strong diagnostic power. LR is not affected by prevalence — unlike PPV/NPV above.
Usage Recommendation
✅ Both Sensitivity (95%) and Specificity (95%) are high — this test is reliable enough for both screening and confirmation. Still, watch the PPV at your target population prevalence above.
Sensitivity and Specificity measure a test's accuracy against a gold standard and are prevalence-independent, while PPV/NPV strongly depend on the prevalence of the population where the test is used. The Likelihood Ratio (LR) is prevalence-independent and useful for interpreting results in an individual patient. The 95% confidence interval uses the Wilson score interval. References: Bossuyt PM et al, STARD 2015, BMJ; Griner PF et al, JAMA 1981; Wilson EB, J Am Stat Assoc 1927. Learn the full concept in the diagnostic practice guide at myqclab.com. myqclab.com
Suitable When
- Validating a new diagnostic method.
- Comparing two or more test tools/methods.
- Evaluating the effectiveness of laboratory tests in a specific population.
Conclusion
Sensitivity and Specificity are two highly important evaluation instruments in diagnostic testing, particularly for ensuring that laboratory results are not misleading in a clinical context. High Sensitivity prevents missed cases (false negative), while high Specificity reduces the risk of misdiagnosis (false positive). Both must be analyzed together according to the intended use of the test — and, as shown by the prevalence example above, they need to be complemented by PPV/NPV adjusted for the context of the population where the test will actually be used, not just numbers from a validation sample population.
