Note 5
Base rates and test results
The test is 99 percent accurate, and yours came back positive.
Most people hearing this conclude there is a 99 percent chance they have the thing. It is a natural conclusion and it can be wrong by a huge margin. In the invented example below it is wrong by a factor of eleven, and the reasoning takes only a table to follow.
This page explains arithmetic. The figures are illustrative and describe no particular test. If you have a real result, a clinician can tell you what it means for you, and they will know things this page cannot.
Two numbers, not one
“Accurate” hides two separate measurements, because a test can go wrong in two separate ways.
Sensitivity is how often the test catches the thing when it is there. If 99 of 100 people with the condition test positive, sensitivity is 99 percent.
Specificity is how often the test stays quiet when the thing is absent. If 99 of 100 people without the condition test negative, specificity is 99 percent. The other 1 percent are false positives.
Both are facts about the test. Neither one answers the question you actually have when the letter arrives, which is: given that I tested positive, how likely is it that I have it? That number is called the positive predictive value, and it depends on a third thing the test knows nothing about: how common the condition is among the people being tested. That is the base rate, or prevalence.
Run the numbers on a crowd
Suppose a condition affects 1 in 1,000 people, and everyone is screened with a test that is 99 percent sensitive and 99 percent specific. Do not reach for a formula. Imagine 100,000 people.
| Group | Test positive | Test negative | Total |
|---|---|---|---|
| Has the condition | 99 | 1 | 100 |
| Does not | 999 | 98,901 | 99,900 |
| Total | 1,098 | 98,902 | 100,000 |
Out of 1,098 positive results, only 99 are real. So a positive result here means about a 9 percent chance of having the condition: much higher than the 0.1 percent you started with, and much lower than 99.
The cause is plain once you see it. The healthy group is a thousand times larger than the sick group, so a small error rate among them produces more mistakes than the test finds real cases. There are simply far more chances to be wrong.
Negative results, on the other hand, are very reliable here. Out of 98,902 negatives only one is a missed case. For a rare condition, a good test is usually better at ruling out than ruling in.
The base rate does most of the work
Keep the same test and change who is taking it.
| Prevalence in those tested | Chance a positive is real |
|---|---|
| 1 in 10,000 | 1.0% |
| 1 in 1,000 | 9.0% |
| 1 in 100 | 50.0% |
| 1 in 10 | 91.7% |
| 1 in 2 | 99.0% |
The same test, the same machine and the same technician give a positive result worth anywhere from 1 to 99 percent, depending on who was tested. This is why the question “why were you tested?” is not bureaucracy. Someone with symptoms, a family history or a known exposure belongs to a group with a higher base rate than someone caught in a mass screen, and the same positive means more.
It is also why doctors follow a positive screen with a second, different test. If the first test moved you from 1 in 1,000 to about 9 in 100, you are now in a much higher-prevalence group and the next test has more to work with. The note on Bayes shows the arithmetic.
Even experts get this wrong
In a well-known 1978 paper in the New England Journal of Medicine, Casscells, Schoenberger and Graboys asked staff and students at a Harvard-affiliated hospital a question of this exact form: a disease with a prevalence of 1 in 1,000, a test with a false positive rate of 5 percent, and a person with a positive result. What is the chance they have it? The most common answer was 95 percent. Assuming the test catches nearly all real cases, the answer is about 2 percent.
The mistake has a name, base rate neglect, and it was studied closely by Daniel Kahneman and Amos Tversky. What seems to help most is a change of format. Gerd Gigerenzer and Ulrich Hoffrage showed in 1995 that people do far better when problems are given as counts of people (“10 out of 1,000”) than as conditional probabilities (“1 percent”). Which is why this page counted heads rather than writing down an equation.
Beyond medicine
The same structure turns up anywhere a detector looks for something rare.
- Fraud alerts. Most flagged card payments in a well-tuned system are still legitimate, because fraud is rare among transactions. That is your bank texting you at a petrol station.
- Airport or stadium screening. A face-recognition system with a very low error rate, pointed at a crowd containing almost nobody on its list, will mostly flag innocent people.
- Spam. Your inbox is a base-rate problem, in reverse: spam is common, so a flag is usually right.
- Lie detection and cheating software. A detector that is “98 percent accurate” used on a group of mostly honest people accuses a lot of honest people.
What to ask
- What are the sensitivity and the specificity, separately?
- How common is this among people like me, tested for the reason I was tested?
- Out of 1,000 people like me with a positive result, how many really have it?
- What happens next? Is there a confirmatory test?
- What does a false positive cost, and what does a false negative cost? They are rarely equal.
Try your own figures with the test results calculator, which does this table for you.
Goes with: Bayes in natural frequencies, Relative and absolute risk.