Probability, Base Rates and Bayes
Reason with probabilities, respect base rates, update beliefs with Bayes' rule, and avoid the conjunction and gambler's fallacies.
Welcome back!
Step 1 of 11Learn
The test that is 90% accurate
A screening test for a rare disease catches 90% of people who have it, and gives a false positive to 9% of people who don't. About 1% of people tested have the disease. You test positive. What's the chance you have it?
When doctors were asked versions of this question in studies, many answered around 80–90%. The real answer is about 9%.
Here's why, using a group of 1,000 people:
- 10 people (1%) have the disease. The test catches 90% of them: 9 true positives.
- 990 people don't. The test wrongly flags 9% of them: about 89 false positives.
- Total positives: 9 + 89 = 98. Of those, only 9 actually have the disease: 9 / 98 ≈ 9%.
The disease is so rare that false alarms from the huge healthy group swamp the true cases. Ignoring how common something is to begin with is called the base rate fallacy (or base rate neglect), and it's one of the best-documented errors in human reasoning.
Counting a concrete group, as above, is called using natural frequencies. Research by Gerd Gigerenzer and others shows people solve these problems far more accurately with counts than with percentages. When you meet a probability puzzle, imagine 1,000 people.
Step 2 of 11Practice · Diagram
1,000 people take the test
Counting people instead of percentages makes the base rate visible. Tap a group.
Tap the group that makes up most of the positive results.
Tap the shape that answers the question, then press Check.
- 1,000 people tested
- 10 have the disease
- 990 do not
- 9 test positive
True positives: 90% of 10.
- 1 tests negative
A missed case.
- 89 test positive
False positives: 9% of 990. More than nine times the true positives.
- 901 test negative
Step 3 of 11Learn
Bayes' rule
The calculation you just did has a name. Bayes' rule, from the 18th-century minister Thomas Bayes, tells you how to update the probability of a hypothesis H when you see evidence E:
P(H given E) = P(E given H) × P(H) / P(E)
In words: how likely the hypothesis is after the evidence equals how well the hypothesis predicts the evidence, times how likely the hypothesis was beforehand, divided by how likely the evidence is overall.
- P(H) is the prior: the base rate before the test (1%).
- P(E given H) is the likelihood: how often the evidence appears if H is true (the 90% hit rate).
- P(E) is the overall chance of the evidence: true positives plus false positives (0.9% + 8.9% = 9.8%).
- P(H given E) is the posterior: 0.9% / 9.8% ≈ 9%.
Two lessons fall out of the formula. First, a confusion that runs through courtrooms and newspapers: P(E given H) is not P(H given E). The chance of a positive test if sick (90%) is not the chance of being sick if positive (9%). Mixing them up in court is called the prosecutor's fallacy. Second, evidence is only as powerful as its ratio of hits to false alarms. A test that flags everyone has a 100% hit rate and tells you nothing.
Step 4 of 11Try the calculator
Bayes calculator
Change the base rate and the test's error rates. Notice how much the base rate matters.
- Probability true, given a positive result
- 9.2 %
- Positives per 1,000 people tested
- 98
Step 5 of 11Practice · Work it out
Out of 1,000 people, 2% have a condition. A test detects 95% of those who have it and falsely flags 10% of those who don't. If someone tests positive, what is the probability (in %) they have the condition? Round to the nearest whole percent.
Step 6 of 11Practice · Chart
Same test, different base rates
Chance of really having the condition after a positive result, for a test with a 90% hit rate and 9% false alarms.
Tap the lowest base rate at which a positive result means "more likely than not".
Tap the point that answers the question, then press Check.
| Base rate (prior) | Chance after a positive test |
|---|---|
| 0.1% | 1% |
| 1% | 9% |
| 5% | 34% |
| 10% | 53% |
| 30% | 81% |
| 50% | 91% |
Step 7 of 11Learn
Two famous probability traps
The conjunction fallacy. In a classic 1983 study by Amos Tversky and Daniel Kahneman, people read about "Linda," described as bright, outspoken and deeply concerned with social justice. Which is more probable: (a) Linda is a bank teller, or (b) Linda is a bank teller and active in the feminist movement? Most people chose (b). But (b) can't be more probable than (a), because every feminist bank teller is a bank teller. The probability of A and B can never exceed the probability of A alone. Detailed stories feel more plausible while being, mathematically, less likely. Watch for this when a scenario gets more convincing as it gets more specific.
The gambler's fallacy. A fair coin lands heads five times in a row. Is tails "due"? No. The coin has no memory; the chance of tails on the next flip is still 50%. People expect short runs to look balanced, so streaks feel like they must correct. The reverse error, the hot-hand belief that a streak makes more of the same likely, applies when you assume independent events are linked.
A related idea that is real: regression to the mean. An extreme result, partly caused by luck, is usually followed by a less extreme one. A student who scores unusually high on one test will, on average, score closer to their typical level next time. It's not that luck "balances out"; it's that the extra luck isn't likely to repeat.
Step 8 of 11Practice · Choose one
A roulette wheel has landed on red 8 times in a row. Assuming the wheel is fair, what is true about the next spin?
Step 9 of 11Note
Step 10 of 11Practice · True or false
The probability that a randomly chosen person is a left-handed chess player can be higher than the probability that they are a chess player.
Step 11 of 11Practice · Estimate
Use the Bayes calculator: if the base rate rises from 1% to 20% (same test: 90% hit rate, 9% false alarms), about what is the probability of truly having the condition after a positive result?
Lesson complete!