Find a course

Module 2: Epidemiology EssentialsLesson 7 of 1313 min

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.

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.

Who tests positive? 100,000 people screenedDonut chart with 2 categories: True positives: 99 (1.9%); False positives: 4,995 (98.1%).98%5,094Total
Illustrative numbers from the example above.
Who tests positive? 100,000 people screened
ItemPeople
True positives99
False positives4,995

Step 3 of 12Learn

Sensitivity, specificity and predictive values

Arrange test results against true disease status (usually from a "gold standard" test):

Disease presentDisease absent
Test positiveTrue positives (TP)False positives (FP)
Test negativeFalse 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.

PPV at 1% prevalence as specificity improvesBar chart with 4 categories: 90%: 9.1%; 95%: 16.7%; 99%: 50%; 99.9%: 90.9%.0%20%40%60%80%100%90%95%99%99.9%Specificity9.1%16.7%50%90.9%
Calculated values for an illustrative test.
PPV at 1% prevalence as specificity improves
SpecificityPositive predictive value
90%9.1%
95%16.7%
99%50%
99.9%90.9%

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

AspectScreening testDiagnostic test
Who is testedPeople without symptomsPeople with symptoms or a positive screen
GoalSort people into probably fine vs needs a closer lookDecide whether disease is really present
Typical prioritiesHigh sensitivity, cheap, safe, quickHigh accuracy, especially specificity, even if costly
ExampleMammogramBiopsy 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?