Sensitivity, Specificity and Predictive Values
Definitions of sensitivity, specificity and predictive values from the 2×2 table, the SnNout and SpPin rules and their limits, and how prevalence and the test cut-off change test performance.
The 2×2 table
Questions on diagnostic tests can be answered by placing the data in a 2×2 table, with the reference standard (true disease status) in the columns and the test result in the rows.
| Disease present | Disease absent | |
|---|---|---|
| Test positive | True positive (TP) | False positive (FP) |
| Test negative | False negative (FN) | True negative (TN) |
Sensitivity
Sensitivity = TP / (TP + FN)
Sensitivity is the proportion of people with the disease who test positive. It is calculated down the "disease present" column.
SnNout
A highly Sensitive test, when Negative, helps rule the disease out. Because such a test misses few cases, a negative result makes disease unlikely.
Specificity
Specificity = TN / (TN + FP)
Specificity is the proportion of people without the disease who test negative. It is calculated down the "disease absent" column.
SpPin
A highly Specific test, when Positive, helps rule the disease in. Because such a test produces few false positives, a positive result makes disease likely.
These rules are approximations. Whether a result truly rules a diagnosis in or out also depends on the pre-test probability, which is why likelihood ratios are used for individual patients.
An example: testing for HIV
Testing for HIV illustrates the use of a sensitive test followed by a specific one. Current algorithms begin with a laboratory antigen/antibody immunoassay, which is highly sensitive, and confirm reactive results with a supplementary test, such as an HIV-1/HIV-2 antibody differentiation assay or a nucleic acid test. The Western blot, which appears in older textbooks as the confirmatory test, is no longer recommended for this purpose in the United States.
Predictive values
Sensitivity and specificity describe the test. Predictive values describe what a result means for the patient who receives it:
- Positive predictive value (PPV) = TP / (TP + FP): the probability of disease when the test is positive.
- Negative predictive value (NPV) = TN / (TN + FN): the probability of no disease when the test is negative.
Both are calculated across the rows of the table.
Predictive values depend on prevalence
With sensitivity and specificity held constant:
- Higher prevalence gives a higher PPV and a lower NPV.
- Lower prevalence gives a lower PPV and a higher NPV.
This is why a test that performs well in a specialist clinic can produce many false positives when used to screen a low-risk population.
Choosing and adjusting tests
Screening and confirmation
- A test used to screen or to exclude disease should be highly sensitive, so that few cases are missed.
- A test used to confirm disease, especially before a harmful or costly treatment, should be highly specific, so that few healthy people are labeled as diseased.
Moving the cut-off
For a test with a continuous result:
- Lowering the threshold for a positive result increases sensitivity and decreases specificity.
- Raising the threshold decreases sensitivity and increases specificity.
The receiver operating characteristic (ROC) curve plots sensitivity against 1 − specificity across all possible cut-offs.
Practice
The 2×2 table tool calculates all of these measures from your own numbers. The question bank has 89 questions in its section on diagnostic tests and screening.