Bayes' Theorem Medical Test
The classic of conditional probability: for rare diseases a positive test is often less telling than it seems.
Worked example
A disease affects 5% of people. A test detects the ill with 95% (sensitivity) and the healthy with 95% (specificity). What is P(ill | positive test)?
Worked solution
- 1P(+) = 0.95 · 0.05 + 0.05 · 0.95 = 0.0950
- 2Bayes: P(ill | +) = P(+ | ill) · P(ill) / P(+) = 0.0475 / 0.0950 = 0.5000
Typical mistake: Confusing P(ill | +) with the sensitivity P(+ | ill).
Your turn
Three problems of exactly this type with new numbers: first one to tap, then two to work out. Comma or point; fractions like 1/6 work too.
- 1 · Conditional probability
- 2
- 3
A disease affects 5% of people. A test detects the ill with 95% (sensitivity) and the healthy with 95% (specificity). What is P(ill | positive test)?
P
Formulas for this topic
- P(A | B) = P(A ∩ B) / P(B)
- Total probability: P(B) = P(B | A) · P(A) + P(B | Ā) · P(Ā)
- Bayes: P(A | B) = P(B | A) · P(A) / P(B)
Typical mistake: Confusing P(ill | +) with the sensitivity P(+ | ill).
Frequently asked questions
What is the typical mistake in "Bayes: how likely is illness after a positive test?"?
Confusing P(ill | +) with the sensitivity P(+ | ill).
Why is P(ill | positive) often small?
For rare diseases there are far more healthy people, so even a few false positives outnumber the true positives.
