Sensitivity, Specificity,
PPV & NPV
Master the four pillars of diagnostic test interpretation: learn what each metric tells you, how to calculate them from a \(2 \times 2\) table, and why they matter in real clinical decisions.
Why Diagnostic Tests Matter
No diagnostic test is perfect. When a doctor orders a strep test, an HIV screen, or a pregnancy test, the result might be correct or incorrect. Understanding test performance helps us answer two critical questions:
The \(2 \times 2\) Contingency Table
Every diagnostic test result can be classified into one of four cells by comparing the test outcome to the true disease status:
(TP)
(FP)
(FN)
(TN)
Understanding the Four Cells
Sensitivity: Catching the Sick
Sensitivity (also called the true positive rate) measures how well a test identifies people who actually have the disease.
A highly sensitive test has very few false negatives: it rarely misses a truly sick person. Mnemonic: Sn-N-Out: a highly Sensitive test, when Negative, rules the disease Out.
Specificity: Clearing the Healthy
Specificity (the true negative rate) measures how well a test identifies people who are truly disease-free.
A highly specific test has very few false positives: it rarely labels a healthy person as sick. Mnemonic: Sp-P-In: a highly Specific test, when Positive, rules the disease In.
PPV and NPV: The Patient's View
Sensitivity and specificity describe the test. Predictive values answer what the patient really wants to know:
\(\text{PPV} = \dfrac{TP}{TP + FP}\)
\(\text{NPV} = \dfrac{TN}{TN + FN}\)
Rows vs. Columns: Which Way to Read
Intrinsic vs. Extrinsic Properties
| Sensitivity & Specificity | PPV & NPV | |
|---|---|---|
| Determined by | The test itself | Test + prevalence |
| Changes with prevalence? | No (fixed) | Yes (varies) |
| Starting point | Known disease status | Known test result |
| Best analogy | "How sharp is the blade?" | "Did I cut the right thing?" |
How Prevalence Shifts Predictive Values
Memory Aids: SnNOut & SpPIn
How to Calculate Step by Step
Worked Example: Strep Test
A rapid strep test is applied to 500 patients. Results:
Strep Test: PPV & NPV
Using the same table (TP = 90, FP = 30, FN = 10, TN = 370):
Harder Example: Low Prevalence
A disease has 1% prevalence. A test has sensitivity 99% and specificity 95%. In a population of 10,000:
(100)
(9,900)
Common Mistakes
Summary Table
| Metric | Formula | Question Answered |
|---|---|---|
| Sensitivity | \(\frac{TP}{TP+FN}\) | Of the sick, how many test +? |
| Specificity | \(\frac{TN}{TN+FP}\) | Of the healthy, how many test −? |
| PPV | \(\frac{TP}{TP+FP}\) | If test +, probability of disease? |
| NPV | \(\frac{TN}{TN+FN}\) | If test −, probability of healthy? |
Question 1 of 5
Sensitivity is defined as \(\dfrac{TP}{TP + FN}\). What does this formula measure?
Question 2 of 5
A test has sensitivity = 95% and specificity = 90%. When the disease prevalence drops from 20% to 2%, what happens to PPV?
Question 3 of 5
In a study of 1,000 people: TP = 80, FP = 50, FN = 20, TN = 850. What is the specificity of this test?
Question 4 of 5
The mnemonic SpPIn means that a highly specific test, when positive, helps to:
Question 5 of 5
A disease affects 10% of a population of 1,000 (100 sick, 900 healthy). A test has sensitivity 90% and specificity 80%. What is the PPV?