Diagnostic Test Sensitivity and Specificity
On this page
Direct answer
Diagnostic test sensitivity is the proportion of truly diseased people whose test is positive, and specificity is the proportion of truly healthy people whose test is negative. Both are intrinsic properties of the test and do not change with disease prevalence. Predictive values depend on prevalence and tell the clinician how far a positive or negative result can be trusted in an individual patient.
What you must remember
- Sensitivity: true positives divided by all diseased people, that is TP / (TP + FN), measuring how few cases are missed.
- Specificity: true negatives divided by all healthy people, that is TN / (TN + FP), measuring how few healthy people are wrongly labelled.
- Positive predictive value: TP / (TP + FP), the probability of disease given a positive result, which falls as prevalence falls.
- Negative predictive value: TN / (TN + FN), the probability of health given a negative result, which rises as prevalence falls.
- SnNOut: a highly Sensitive test with a Negative result rules Out the disease.
- SpPIn: a highly Specific test with a Positive result rules In the disease.
- Likelihood ratio: LR+ is sensitivity divided by (1 minus specificity), and it converts pre-test odds into post-test odds.
- Reference interval: usually the central 95 per cent of values from a healthy reference population, so about 2.5 per cent of healthy people fall outside each limit.
Worked example: a screening test at 10 per cent prevalence
A screening test with 90 per cent sensitivity and 90 per cent specificity is applied to 1000 people, of whom 100 truly have the disease. The four cells of the 2 by 2 table are filled first, and each measure is then calculated in turn.
- Fill the table: 90 diseased people test positive, so TP is 90 and FN is 10; among the 900 healthy people, TN is 810 and FP is 90.
- Sensitivity: 90 divided by 100 gives 90 per cent, the proportion of diseased people detected.
- Specificity: 810 divided by 900 gives 90 per cent, the proportion of healthy people correctly cleared.
- Positive predictive value: 90 divided by 180 gives 50 per cent, so half of all positive results are false alarms despite the good test characteristics.
- Negative predictive value: 810 divided by 820 gives about 98.8 per cent, so a negative result is very reliable at this prevalence.
Raising prevalence to 50 per cent with the same test lifts the positive predictive value to 90 per cent, although sensitivity and specificity have not changed.
Where the exam tries to catch you
Most lost marks come from treating predictive values as properties of the test rather than of the population being tested.
- Trap: believing a test's positive predictive value is fixed for all patients Correct: predictive values depend on prevalence, while sensitivity and specificity do not.
- Trap: using a sensitive test to confirm disease Correct: a sensitive test is chosen to rule out and a specific test to rule in, which is the SnNOut and SpPIn logic.
- Trap: expecting a 95 per cent reference interval to classify 95 per cent of diseased patients Correct: it describes the spread of healthy reference values, so overlap with disease is expected.
- Trap: changing sensitivity and specificity independently by moving the cut-off Correct: for a test where higher values mean disease, lowering the cut-off raises sensitivity and lowers specificity, the trade-off that the ROC curve displays.
Frequently asked questions
Why does the positive predictive value fall when disease prevalence is low?
When a disease is rare, most people tested are healthy, so even a small false-positive rate produces many false positives relative to true positives. Positive predictive value therefore falls as prevalence falls, even when the test itself is unchanged.
What does the area under an ROC curve tell you about a diagnostic test?
The area under the receiver operating characteristic curve summarises how well a diagnostic test separates diseased from healthy people across all possible cut-offs. An area of 1.0 indicates perfect discrimination, while 0.5 indicates performance no better than chance.
Which mnemonic links high sensitivity to ruling out a disease?
The mnemonic SnNOut states that a highly Sensitive test with a Negative result rules Out the disease. Its partner SpPIn applies the reverse logic, so a highly Specific test with a Positive result rules In the disease.
How is a reference interval constructed for a biochemical analyte?
A reference interval is commonly set from the 2.5th and 97.5th percentiles of results from a healthy reference population sampled under the same pre-analytical conditions. Books and laboratories differ on the number of subjects and the statistical method, so each laboratory should verify its interval locally.
Does changing the cut-off value alter sensitivity and specificity?
Yes, moving the cut-off changes both measures in opposite directions. For a test where higher values indicate disease, lowering the threshold catches more diseased people and raises sensitivity, but it also labels more healthy people as positive and lowers specificity.