Sensitivity and specificity
Sensitivity and specificity start with disease status. Predictive values start with the test result.
| Measure | The group you start with | Calculation |
|---|---|---|
| Sensitivity | People with disease | True positives divided by all with disease |
| Specificity | People without disease | True negatives divided by all without disease |
| Positive predictive value | People with a positive test | True positives divided by all positive tests |
| Negative predictive value | People with a negative test | True negatives divided by all negative tests |
Disease status must be established using an appropriate reference standard. Agreement with another imperfect test is not automatically sensitivity or specificity.
Suppose 100 of 1,000 people have disease. A test detects 90 of those 100 and is falsely positive in 45 of the 900 without disease.
| Result | Disease present | Disease absent |
|---|---|---|
| Positive | 90 | 45 |
| Negative | 10 | 855 |
Sensitivity is 90 percent and specificity is 95 percent. Positive predictive value is 90 divided by 135, about 67 percent. Negative predictive value is 855 divided by 865, about 99 percent.
A highly sensitive test almost never comes back negative in someone who has the disease, so a negative result helps rule disease out (SnNOut). That's why screening tests are picked for high sensitivity. A highly specific test almost never comes back positive in someone who doesn't have the disease, so a positive result helps rule disease in (SpPIn). That's why confirmatory tests are picked for high specificity. Changing prevalence alone does not change sensitivity or specificity when the test threshold and disease spectrum are unchanged. Predictive values still change. Real populations may differ in disease severity and competing conditions, so measured sensitivity and specificity are not guaranteed to transfer between settings. Even with 95 percent specificity in this example, only about two out of three positive results are true positives, so a highly specific test still doesn't make every positive result a true positive.
If sensitivity and specificity are held constant, lower disease prevalence reduces positive predictive value and raises negative predictive value. If high values count as positive, lowering the cutoff captures more cases but also more false positives.
LR positive equals sensitivity divided by 1 minus specificity. LR negative equals 1 minus sensitivity divided by specificity. Use proportions in these equations. Multiply pretest odds by the appropriate likelihood ratio to obtain posttest odds. Convert odds back to probability by dividing the odds by 1 plus the odds.
Books and videos
Practice questions
Books and videosGive feedback on this question
Checking availability…
On the map
Sensitivity and specificity is linked to one other concept. See the whole map