If a medical test is 99% accurate and you test positive, what are the chances you actually have the disease?

Say the test correctly flags 99% of sick people and correctly clears 99% of healthy people, and 1 in 1,000 people has the disease. The answer is nowhere near 99%.

The base rate fallacy

Test accuracy
99%
for sick and healthy people alike
How common the disease is
1 in 1,000
the base rate
Chance a positive is real
About 9%
roughly 1 in 11 positive results

Test 100,000 people

100 have the disease; 99,900 don't. Here is everyone who tests positive.

Of 100,000 people tested, 99 are positive and sick, while 999 are positive but healthy. Of all 1,098 positive results, only about 9% are real. Positive and sick the test is right 99 Positive but healthy false alarms 999 All 1,098 positives share that are real 9% real

The same 99% test, for diseases of different rarity

Chance that a positive result is real

Chance a positive result is real with a 99% accurate test: 9% when the disease affects 1 in 1,000 people, 50% at 1 in 100, 84% at 1 in 20, 92% at 1 in 10, and 98% at 1 in 3. 1 in 1,000 9% 1 in 100 50% 1 in 20 84% 1 in 10 92% 1 in 3 98%

A 99% accurate test does not mean a positive result is 99% likely to be correct. When only 1 in 1,000 people has the disease, the healthy crowd is so large that even a 1% error rate produces ten false alarms for every true positive. Researchers Gigerenzer and Hoffrage found that even practicing physicians routinely get this calculation wrong.

The same arithmetic applies whenever you screen for something rare: fraud alerts, airport security flags, spam filters. The rarer the thing you're looking for, the more of your alarms will be false, however accurate the test.

Before trusting a test result, how common was the thing it tested for?

Why does 99% accuracy become about 9%?

Imagine 1,000 people. About one actually has the disease, and a 99% sensitive test will usually find that person. But about 999 people are healthy, and a 1% false-positive rate incorrectly flags roughly ten of them. That leaves about one true positive among roughly eleven positive results.

It's the same trap as the Monty Hall problem and the birthday paradox: a probability result that runs against gut instinct until you work through the actual mechanism.

Related exhibits

Sources: Bayes' theorem (classical probability theory). Base-rate neglect as a documented cognitive bias: Kahneman & Tversky (1974); in medical testing, Gigerenzer & Hoffrage (1995) found that even practicing physicians routinely get this calculation wrong. The examples assume equal sensitivity and specificity (99%).