, as you scroll — highermaths.org highermaths.org read instead ›

Conditional probability

The test is positive. How worried should you be?

A test catches 95% of people with a disease. It seems obvious that a positive result means you almost certainly have it. Count people, and it isn't so.

scroll ↓

Two in a hundred

Here are 1000 people. The disease affects 2% of them: the 20 filled dots.

Everyone is tested

The test is positive for 95% of people with the disease: 19 of the 20, now ringed. It is also wrongly positive for 10% of the 980 without it: 98 more rings.

Given a positive

Now suppose all you know is that a person tested positive. Everyone else is ruled out. Only the 117 ringed people count, and 19 of them have the disease:

P(D∣+)=19117=0.162P(D \mid +) = \frac{19}{117} = 0.162

Why so low?

The disease is rare, so the healthy group is huge, and 10% of a huge group swamps 95% of a small one: 98 false positives to 19 true ones. The test's 95% is P(+∣D)P(+ \mid D), not P(D∣+)P(D \mid +).

Chapter 2

Given what you know, count only what's left.

Two-way tables, Venn diagrams, tree diagrams read both ways, independence, criticising probability models, and twelve graded exam questions with full worked solutions are waiting.