Study Meadow

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.

Illustrative: 100,000 people, 1 in 1,000 prevalence, 99 percent sensitivity and specificity.
GroupTest positiveTest negativeTotal
Has the condition991100
Does not99998,90199,900
Total1,09898,902100,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.

Who the positive results belong to, illustrativeA bar of 1,098 positive results. A small dark section of 99 people have the condition. The other 999 do not.99 have the condition999 do not1,098 positive results out of 100,000 people tested
Illustrative. A tiny error rate applied to a huge healthy group outnumbers a high catch rate applied to a small sick group.

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.

Illustrative: same 99 percent test, different groups.
Prevalence in those testedChance a positive is real
1 in 10,0001.0%
1 in 1,0009.0%
1 in 10050.0%
1 in 1091.7%
1 in 299.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.

What to ask

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.