A 99% accurate test says positive. Why it is often a false alarm.

A test can be right 99% of the time and still be wrong about most of its positives. Count people instead of probabilities and the surprise goes away.

  • Probability
  • 8 min read
  • 3 simulations

A positive result

A test comes back positive. The first thing anyone wants to know is how likely it is that the result is right.

Say the condition is rare: 1 person in 1,000 has it. The test is 99% accurate in both directions. Of every 100 people who have the condition it flags 99. That is its sensitivity. Of every 100 who do not, it clears 99. That is its specificity.

So how likely is it that you have the condition? The tempting answer is 99%. Test a whole crowd and count what happens.

Stylised numbers, not medical advice. Each dot is a person, and the same dots are reused as you move the sliders. Counts are rounded to whole people.

Of 1,000 people, 1 is sick and tests positive. Ten healthy people test positive too. So a positive is right 1 time in 11, about 9%, nowhere near 99%.

Counting people

“99% accurate” answers one question. Of the people who have the condition, how many test positive? When a result comes back you are asking it the other way round. Of the people who test positive, how many have the condition?

That second crowd is mostly healthy people. A 1% false alarm rate sounds small, but it is applied to 999 healthy people, so about 10 of them test positive. One true positive against ten false ones.

Counts of people make this easy to see, and there is evidence for it. Gigerenzer and Hoffrage (1995) gave 60 students the same problems as probabilities or as counts of people, now often called natural frequencies. In their first study, answers that followed Bayes’ rule rose from 16% to 46%.

A multiplier on the odds

There is a shorter way to say all this. Evidence does not tell you how likely something is. It tells you how much to change your mind. In odds, that is one multiplication.

Bayes' rule, odds form

posterior odds=prior odds×P(result∣sick)P(result∣healthy)\text{posterior odds}=\text{prior odds}\times\frac{P(\text{result}\mid\text{sick})}{P(\text{result}\mid\text{healthy})}

The fraction is the likelihood ratio. It says how much likelier this result is for a sick person than for a healthy one.

For our test the prior odds are 1:9991:999. A positive is 0.99/0.01=990.99/0.01=99 times likelier for a sick person, so the posterior odds are 99:99999:999. That is a probability of 99/1,09899/1{,}098, about 9%. A big multiplier on a tiny start still leaves a small number.

Test again

After a positive, a second test is the natural thing to ask for. Add results and watch the belief move.

The sharing slider is our own simple model, not a measurement of any real test.

Each fresh positive multiplies the odds by 99 again. Belief goes from 0.1% to 9%, then 91%, then 99.9%.

But that only works if the tests are independent given the truth. Results are not independent outright, because both are news about the same person. Given the truth means this: once you know whether the person is sick, the first result tells you nothing new about the second.

A fresh sample or a different method can come close to that. Retesting the same sample on the same instrument cannot, and neither can a false alarm that comes from something about the person. Then the retest mostly repeats the first answer. Slide sharing to 100% and the second and third positives add nothing.

Same test, rarer condition

Keep the test as it is and change only the crowd. Drag the point along the curve.

Change the test and the old curve stays behind as a faint line until you press Reset.

For this test a positive is right half the time only when 1 person in 100 has the condition. At 1 in 10 it is right 92% of the time. At 1 in 10,000 it is right only about 1% of the time. To be 99% sure after one positive, the condition has to be as common as a coin flip.

A negative is a different story. At 1 in 1,000, a negative from this test is wrong about 1 time in 99,000.

A better test shifts the curve left. At 99.9%, a positive is a coin flip at 1 in 1,000. Make the condition ten times rarer and we are back where we started. What a positive means depends on who was tested.

The same slip in court

Here is how it goes. A DNA profile from a crime scene matches a suspect, and it matches 1 in a million innocent people. “So there is a 1 in a million chance the suspect is innocent,” says the prosecutor.

That swaps the question. One in a million is the chance that an innocent person matches. What the court needs is the chance that a person who matches is innocent. Thompson and Schumann (1987) named this the prosecutor’s fallacy.

Do the crowd count. Say the source is one of 10 million people and the match is all that points to the suspect. About 10 innocent people match too. The suspect is 1 of 11 matches, about 9%, not 99.9999%.

The opposite slip, the defense attorney’s fallacy, treats the match as worthless because others match too. But that match multiplied the odds a million times. Real cases have other evidence, and that sets the starting odds. The prosecutor skips the starting odds. The defense attorney skips the multiplier.

What this does not say

None of this says a positive result can be ignored. A positive multiplies the odds by a fixed amount, here 99. Where the odds end up depends on where they started.

Nor do low starting odds always win. Make the condition more common, or the test better, and a positive is right far more often.

This is arithmetic about a stylised test, not medical advice. Real sensitivities and specificities are estimates, and the right starting odds depend on who is tested and why. What a real result means is a question for the people who know that test and that person.

Weighing rival explanations uses the same multiplier. The next note picks that up: Why simpler explanations win, and when they do not.