Screening and Diagnostic Tests
Calculate sensitivity, specificity and predictive values, see how prevalence changes what a positive result means, and learn when screening makes sense.
Welcome back!
Step 1 of 12Learn
A positive test is not a diagnosis
Imagine a screening test for a disease that affects 1 in 1,000 people. The test is impressive: it correctly detects 99% of people who have the disease and correctly clears 95% of people who don't. You test positive. What's the chance that you actually have the disease?
Most people guess around 95%. The real answer is about 2%.
Here's why. Picture 100,000 people. About 100 have the disease, and the test correctly flags 99 of them. Of the 99,900 who don't have the disease, 5% test positive by mistake, about 4,995 people. So there are about 5,094 positive results, and only 99 of them are true. 99 ÷ 5,094 ≈ 1.9%.
This surprising result explains a lot about screening. When a disease is rare in the group being tested, even a very good test produces many more false positives than true positives. That doesn't make screening useless. It means positive screening results usually need a confirmatory test, and that it matters a great deal who gets screened.
To reason about tests clearly, public health uses four key measures: sensitivity, specificity, positive predictive value and negative predictive value. All of them come from another 2×2 table, comparing test results with true disease status.
Step 2 of 12Chart
Who tests positive? 100,000 people screened
Prevalence 0.1%, sensitivity 99%, specificity 95%. The false alarms swamp the real cases.
| Item | People |
|---|---|
| True positives | 99 |
| False positives | 4,995 |
Step 3 of 12Learn
Sensitivity, specificity and predictive values
Arrange test results against true disease status (usually from a "gold standard" test):
| Disease present | Disease absent | |
|---|---|---|
| Test positive | True positives (TP) | False positives (FP) |
| Test negative | False negatives (FN) | True negatives (TN) |
- Sensitivity = TP ÷ (TP + FN): the proportion of people with the disease who test positive. A highly sensitive test rarely misses cases, so a negative result helps rule disease out.
- Specificity = TN ÷ (TN + FP): the proportion of people without the disease who test negative. A highly specific test rarely raises false alarms, so a positive result helps rule disease in.
- Positive predictive value (PPV) = TP ÷ (TP + FP): of those who test positive, the proportion who really have the disease.
- Negative predictive value (NPV) = TN ÷ (TN + FN): of those who test negative, the proportion who are really disease-free.
Sensitivity and specificity are properties of the test itself. Predictive values depend on the test and on the prevalence of disease in the people tested. As prevalence falls, PPV falls and NPV rises. That's why a test that works well in a specialist clinic, where many patients have the disease, can perform poorly as a screening tool in the general population.
A memory aid some students use: SnNout (a Sensitive test, when Negative, rules out) and SpPin (a Specific test, when Positive, rules in).
Step 4 of 12Try the calculator
Predictive value calculator
Change prevalence, sensitivity and specificity to see how the meaning of a positive or negative result changes.
- Positive predictive value
- 16.7 %
- Negative predictive value
- 99.99 %
- False positives per 10,000 tested
- 495
Step 5 of 12Practice · Work it out
A test is used on 1,000 people. It gives 90 true positives, 10 false negatives, 45 false positives and 855 true negatives. What is its sensitivity, in percent?
Step 6 of 12Practice · Chart
PPV at 1% prevalence as specificity improves
Sensitivity is fixed at 99% and 1 person in 100 has the disease. Only the specificity changes.
At which specificity is a positive result about a coin flip?
Tap the bar that answers the question, then press Check.
Step 7 of 12Learn
When does screening make sense?
Screening means testing people without symptoms to find disease early. It sounds like it should always help, but it can also cause harm: false positives lead to anxiety and invasive follow-up tests, and some screening finds conditions that would never have caused problems, called overdiagnosis, leading to unnecessary treatment.
In 1968, James Wilson and Gunnar Jungner published principles for the WHO that are still used to judge screening programs. In summary:
- The condition should be an important health problem.
- There should be an accepted treatment, and treatment should work better when started early.
- There should be a recognizable early or latent stage.
- A suitable test should exist that is acceptable to the population.
- The natural history of the condition should be adequately understood.
- There should be agreement on whom to treat.
- Facilities for diagnosis and treatment should be available.
- The cost should be balanced against overall health spending, and screening should be a continuing process, not a one-off.
Two biases make screening look better than it is. Lead-time bias: finding cancer earlier makes survival from diagnosis look longer even if death happens at the same time. Length-time bias: screening tends to catch slow-growing disease, which has a better outlook anyway. Only randomized trials comparing death rates in screened and unscreened groups can show whether screening truly saves lives.
Step 8 of 12Compare
Screening test vs diagnostic test
| Aspect | Screening test | Diagnostic test |
|---|---|---|
| Who is tested | People without symptoms | People with symptoms or a positive screen |
| Goal | Sort people into probably fine vs needs a closer look | Decide whether disease is really present |
| Typical priorities | High sensitivity, cheap, safe, quick | High accuracy, especially specificity, even if costly |
| Example | Mammogram | Biopsy of a suspicious area |
Step 9 of 12Note
Step 10 of 12Practice · Select all that apply
Which features make a disease a good candidate for population screening? Select all that apply.
Select all that apply.
Step 11 of 12Practice · True or false
If a screening test with fixed sensitivity and specificity is used in a population where the disease is much rarer, its positive predictive value will fall.
Step 12 of 12Practice · Choose one
Why do positive results from screening tests usually require a confirmatory test?
Lesson complete!