01 / 20

Diagnostic Test
Performance

Understanding sensitivity, specificity, and predictive values — the math that tells you what a test result really means.

USMLE Step 1

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

Disease Status (gold standard) Disease + Present Absent Test + Test − TP True Positive FP False Positive FN False Negative TN True Negative

Four Key Definitions

Sensitivity
Of all truly diseased people, the fraction the test catches: \( \frac{TP}{TP + FN} \)
Specificity
Of all truly healthy people, the fraction the test clears: \( \frac{TN}{TN + FP} \)
PPV
Of all positive results, the fraction truly diseased: \( \frac{TP}{TP + FP} \)
NPV
Of all negative results, the fraction truly healthy: \( \frac{TN}{TN + FN} \)

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
CalculatedDown columnsAcross rows
Fixed byThe testThe population
Affected by prevalence?NoYes
AnswersHow good is the test?What about this patient?

Clinical Mnemonics

SnNout
A highly Sensitive test, when Negative, rules out disease. Few false negatives. Great for screening.
SpPin
A highly Specific test, when Positive, rules in disease. Few false positives. Great for confirmation.

How to Apply It

1
Draw the 2×2 table. Label columns by true disease status and rows by test result.
2
Fill in TP, FP, FN, TN from the stem. Add a totals row and column.
3
Identify what is asked. Sn/Sp use columns; PPV/NPV use rows.
4
Plug into the formula and simplify. Double-check the denominator.

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

Disease prevalence → PPV → PPV rises with prevalence rare disease → low PPV

Common Mistakes

✕ Swapping rows and columns
Using the wrong denominator. Sn/Sp go down columns; PPV/NPV go across rows.
✕ Thinking PPV is fixed
PPV and NPV change with prevalence. Sensitivity and specificity do not.
✕ Confusing FP and FN
A false positive flags a healthy person; a false negative misses a sick one.

Formula Summary

MetricFormulaQuestion
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: