Sensitivity, Specificity and Predictive Values
On this page
Direct answer
Sensitivity is the proportion of truly diseased people whom a test correctly labels positive, and specificity is the proportion of healthy people it correctly labels negative. Both are intrinsic to the test. The positive predictive value (PPV) and negative predictive value (NPV) do depend on prevalence, which is why the same test gives different PPVs in a clinic and in a community survey.
What you must remember
- 2x2 table: the four cells are true positive (a), false positive (b), false negative (c) and true negative (d), and every measure is a ratio built from them.
- Sensitivity: a / (a + c), the chance that a diseased person tests positive; it governs how many cases a screening test misses.
- Specificity: d / (b + d), the chance that a healthy person tests negative; it governs how many false alarms a test raises.
- PPV: a / (a + b), the probability of disease given a positive result; it rises as prevalence rises.
- NPV: d / (c + d), the probability of health given a negative result; it falls as prevalence rises.
- Likelihood ratio positive: sensitivity divided by (1 minus specificity); it does not depend on prevalence and is used to revise pre-test probability.
- SnNout and SpPin: a highly sensitive test with a negative result rules disease out, and a highly specific test with a positive result rules it in.
- Accuracy: (a + d) divided by the total; it misleads for rare diseases, where a test that calls everyone healthy still scores high.
Worked example: the same test at two prevalences
Take a hypothetical test with 90 per cent sensitivity and 90 per cent specificity, applied to 1000 people in two settings. Only the prevalence changes between the two runs, and the test itself never does.
- Set the prevalence: at 10 per cent prevalence, 100 people are diseased and 900 are healthy, which fixes the column totals.
- Fill the diseased column: 90 per cent sensitivity gives 90 true positives (a) and 10 false negatives (c).
- Fill the healthy column: 90 per cent specificity gives 810 true negatives (d) and 90 false positives (b).
- Compute PPV: a / (a + b) = 90 / 180, so 50 per cent of positive results are wrong.
- Compute NPV: d / (c + d) = 810 / 820, about 98.8 per cent.
- Repeat at 1 per cent prevalence: 10 diseased people give 9 true positives and 1 false negative, while 990 healthy people give 891 true negatives and 99 false positives.
- Read the result: PPV falls to 9 / 108, about 8.3 per cent, and NPV rises to 891 / 892, about 99.9 per cent.
Where the exam tries to catch you
Examiners test whether you know which measure answers which clinical question.
- Trap: choosing specificity to judge how reliable a positive result is Correct: PPV answers that question, and it depends on prevalence as well as specificity.
- Trap: believing a sensitive test is best for confirming disease Correct: only a highly specific test confirms, so a sensitive screening test is followed by a confirmatory test.
- Trap: treating PPV as a fixed property of the test Correct: PPV falls as prevalence falls, which is why mass screening of a low-prevalence population produces many false positives.
Frequently asked questions
Which measure matters most when choosing a screening test?
Sensitivity matters most for screening, because a screening test should miss as few cases as possible. Sensitivity is usually paired with a more specific confirmatory test, which sorts out the false positives that the screening test produces.
Why does the PPV of a test fall when disease prevalence falls?
The PPV of a test falls with prevalence because fewer people are truly diseased, so false positives from the healthy majority make up a larger share of all positive results. In the worked example, the PPV dropped from 50 per cent at 10 per cent prevalence to about 8.3 per cent at 1 per cent prevalence.
How is a likelihood ratio different from a predictive value?
The likelihood ratio is calculated from sensitivity and specificity alone, so it stays constant across populations. Predictive values depend on prevalence and change from one population to another. Clinicians use the positive likelihood ratio to revise the pre-test probability of disease in an individual patient.
Which property of a test allows a negative result to rule out disease?
High sensitivity allows a negative result to rule disease out, a pattern remembered as SnNout. A test that rarely misses a diseased person produces few false negatives, so a negative result is reassuring.
Why can accuracy be a misleading measure for a rare disease?
Accuracy is the proportion of all results that are correct, so a test that labels everyone healthy scores highly for a rare disease while detecting no cases. Sensitivity, specificity, PPV and NPV, read together, expose such a test.