Why it happens

Why a Positive Test Can Mean You're Probably Not Sick

When a condition is rare, most positive results are false alarms. Screen 10,000 people where 1% have it, with a test that catches 90% of cases and wrongly flags 9% of everyone else: 90 real cases test positive, and so do 891 people who are fine. Only 9.2% of positives, about 1 in 11, are sick.

10,000 people take a screening test

StopBase rates
People who have itCases the test catchesFalse positive rateSeed
People10,000Have it?Tested positive0Positives who have it–

10,000 people, sorted by the test

have itdon'tpositivenegativepositivenegative10,000 people1% have it? people? people? people✓? missed? false alarms✗? people

Everyone who tests positive, a square each

Yellow squares have the condition. Gray squares are false alarms.

Who the positives are

1/1010,000 people take a screening test. 1% of people like them have the condition. The test catches 90% of the people who have it, and wrongly flags 9% of the people who don't.

  • CH1 has the condition

Watch the Python behind this model run, line by line

How to read the stage

Objective
Read the tree, the grid and the bars, and find the step where the false alarms overtake the real cases.
How this step gets you there
The text names each panel and what it counts, then gives the default run's numbers so you can check them on the stage.

The tree splits 10,000 people by whether they have the condition, then splits each group by the test's result. The grid gets a square for everyone who tests positive, yellow if they have it. With seed 1950 the run lands on the expected counts: 100 people have it, 90 of them test positive, and 891 false alarms pile up around them.

Count people, not percentages

Objective
Explain why a test that catches most cases still gives mostly false positives when the condition is rare.
How this step gets you there
The text applies each rate to the group it belongs to and compares the two counts of positives the stage builds.

The test's 90% applies to the 100 people who have the condition, so it can never find more than 100 real cases. Its 9% applies to the 9,900 who don't, and 9% of 9,900 is 891. A small rate on a big group beats a big rate on a small one. So of 981 positives, 90 are real: 9.2%. Judging a result without asking how common the condition was has a name: the base rate fallacy.

Doctors get it wrong too

Objective
See that the mistake is common among experts, and that restating rates as counts of people fixes it.
How this step gets you there
The text tells the history behind the stage's default rates and the counts that made the answer easy.

In 2007 Gerd Gigerenzer gave 160 gynecologists these rates for mammograms: 1% of women have breast cancer, 90% of them test positive, and 9% of the rest do too. Most answered that a positive meant a 90% or 81% chance of cancer. Only 21% picked the best answer, about 1 in 10. Once he taught them to restate the rates as counts, 9 of 10 women with cancer and 89 of 990 without testing positive, 87% got it right.

The same test, nine crowds

Objective
See how the meaning of a positive changes with how common the condition is, for a test that never changes.
How this step gets you there
The stage screens crowd after crowd and draws each one's share of real positives beside the exact value from Bayes' rule.

The second stage runs the same test on nine new crowds of 10,000, where 0.1% to 50% have the condition. Where 0.1% have it, a positive is right 0.9% of the time. Where 10% have it, 51.9%: the first crowd where most positives are real. Where half have it, 90.5%. The test never changed. A positive means more when the person was already likely to have it, which is why symptoms matter.

One test, nine crowds of 10,000

StopBase rates, swept
Cases the test catchesFalse positive rateSeed
Crowds0 of 9Test catches90%False positives9%

Positives who have it, by how common it is

Each crowd of 10,000

Have itPositiveRealMeasuredBayes' rule
0.1%1.0%
0.2%2.0%
0.5%4.8%
1%9.2%
2%16.9%
5%34.5%
10%52.6%
20%71.4%
50%90.9%

1/11The same test, catching 90% of cases with 9% false positives, on 9 crowds of 10,000. Only one thing changes from crowd to crowd: how many of the people have the condition.

Watch the Python behind this model run, line by line

Bayes' rule is the same count

Objective
Connect the counting on the stage to Bayes' rule, and know where the rule comes from.
How this step gets you there
The text writes the rule with the default rates and maps each term onto a branch of the tree.

Thomas Bayes worked out how evidence should change a belief. Richard Price published his essay in 1763, after Bayes died, and Pierre-Simon Laplace found the rule on his own in 1774. For a test it reads: real share of positives = (1% × 90%) ÷ (1% × 90% + 99% × 9%) = 9.2%. Each product is a branch of the stage's tree, written as a rate instead of a count.

What the model leaves out

Objective
Say what the model simplifies, and why one person's result needs a doctor's reading.
How this step gets you there
The text names the model's assumptions and the step real screening adds after a positive.

This is a model, not medical advice. Real tests have their own rates, which vary by test, by lab and by who gets tested, and your own chance depends on your symptoms, age and history, which a crowd average ignores. The model draws each person independently with fixed rates and tests once. In practice a positive screening leads to a second, more exact test, which catches false alarms. Ask a doctor what your result means.

Questions

If I test positive on a 90% accurate test, do I have it?
It depends on how common the condition is among people like you and how often the test flags healthy people. With 1% of people having it and 9% false positives, only 9.2% of positives are real. Where 10% have it, the same test is right about half the time. The number to ask for is the share of positives that turn out real, the positive predictive value.
What is the base rate fallacy?
Ignoring how common something is before looking at the evidence. A test that catches 90% of cases sounds like a 90% chance you're sick, but that skips the base rate. When only 1% have the condition, healthy people outnumber sick ones 99 to 1, and their false alarms swamp the real cases.
Why do doctors repeat a positive test?
Because a screening positive is often a false alarm. The second, more exact test runs only on people who tested positive, a crowd where the condition is far more common, so its positives mean much more. In the model, 9.2% of the 981 positives have the condition, against 1% of the crowd before testing.
Does a negative result mean I'm clear?
A negative usually means more than a positive. In the default run, 9,009 of the 9,019 negatives are right, 99.9%. Yet 10 of the 100 real cases were missed, so a negative is no guarantee, especially if you have symptoms.
What's the difference between sensitivity and the false positive rate?
Sensitivity is the share of people with the condition who test positive, 90% here. The false positive rate is the share of people without it who test positive anyway, 9% here; one minus it is the specificity, 91%. Neither is the chance a positive is real, which also needs the base rate.

More of how it works