Diagnostic Test
Performance
Understanding sensitivity, specificity, and predictive values — the math that tells you what a test result really means.
Why Test Performance Matters
No diagnostic test is perfect. A test can call a healthy patient "diseased" or miss disease in a sick patient. To use any test wisely, you must know how often it is right and how often it is wrong.
The 2 × 2 Table
Four Key Definitions
Read the Columns
Sensitivity and specificity are properties of the test itself. They are calculated down the columns of the table — by disease status — so they do not change with disease prevalence.
Read the Rows
Predictive values are calculated across the rows — by test result. They answer the clinical question: "Given this result, what is the chance my patient really has the disease?" Crucially, they depend on prevalence.
Test Property vs. Patient Question
| Sn / Sp | PPV / NPV | |
|---|---|---|
| Calculated | Down columns | Across rows |
| Fixed by | The test | The population |
| Affected by prevalence? | No | Yes |
| Answers | How good is the test? | What about this patient? |
Clinical Mnemonics
How to Apply It
Worked Example 1
A new test is studied in 200 patients. Results: \( TP = 90 \), \( FN = 10 \), \( FP = 20 \), \( TN = 80 \). Find the sensitivity.
Worked Example 2
Using the same data (\( TP = 90 \), \( FP = 20 \), \( FN = 10 \), \( TN = 80 \)), find the specificity and PPV.
Worked Example 3
A test has \( \text{Sn} = 0.99 \) and \( \text{Sp} = 0.99 \). In a population where disease prevalence is only \( 0.1\% \), what happens to PPV?
Prevalence Drives PPV
Common Mistakes
Formula Summary
| Metric | Formula | Question |
|---|---|---|
| Sensitivity | \( \frac{TP}{TP+FN} \) | Catches the sick? |
| Specificity | \( \frac{TN}{TN+FP} \) | Clears the well? |
| PPV | \( \frac{TP}{TP+FP} \) | Positive = real? |
| NPV | \( \frac{TN}{TN+FN} \) | Negative = clear? |
Question 1 of 5
A test gives \( TP = 80 \), \( FN = 20 \), \( FP = 10 \), \( TN = 90 \). What is the sensitivity?
Question 2 of 5
Which metric is calculated across a row of the 2×2 table and depends on prevalence?
Question 3 of 5
A highly sensitive test that comes back negative is most useful to:
Question 4 of 5
With \( TP = 90 \), \( FP = 30 \), what is the PPV?
Question 5 of 5
A near-perfect test (\( \text{Sn} \) and \( \text{Sp} = 0.99 \)) is used to screen a population with very low disease prevalence. The PPV will be: