---
title: A test for a condition with prevalence 1 in 1,000 has 99% sensitivity and a 2% false-positive rate. Someone picked at…
url: https://gurkanozkan.ai/learn/questions/research-bayes-and-base-rates-008/
markdown: https://gurkanozkan.ai/learn/questions/research-bayes-and-base-rates-008.md
kind: question
role: Research
stage: Technical
difficulty: Easy
json: https://gurkanozkan.ai/api/learn/questions/research-bayes-and-base-rates-008.json
robots: noindex
---

# A test for a condition with prevalence 1 in 1,000 has 99% sensitivity and a 2% false-positive rate. Someone picked at random tests positive. Roughly how likely are they to have the condition? Explain the intuition.

Research · Technical · Easy

## Answer

*Model answer, written in a candidate's voice*

### In short

- Bayes: P(D|+) = 0.99*0.001 / (0.99*0.001 + 0.02*0.999) ≈ 0.00099/0.02097 ≈ 4.7%.
- Natural frequencies: out of 100,000, ~100 have the condition, ~99 test positive; ~99,900 do not, ~1,998 false-positive; 99/2,097 ≈ 4.7%.
- This is base-rate neglect: the low prevalence means false positives outnumber true positives.
- A second independent positive multiplies odds by LR+ ≈ 0.99/0.02 ≈ 49.5, moving the estimate to roughly 71%, not certainty.

### In full

The key point is that a positive result is still far more likely to be a false alarm than a true case: with prevalence 1/1,000, Bayes gives P(D|+) = 0.99*0.001 / (0.99*0.001 + 0.02*0.999) ≈ 0.00099/0.02097 ≈ 4.7%. The natural-frequency picture is out of 100,000 people: about 100 have the condition and ~99 test positive, while about 99,900 do not and ~1,998 false-positive, so 99/(99+1,998) ≈ 4.7%. This is base-rate neglect — people focus on the 99% sensitivity and forget that the condition is rare, so the 2% false-positive rate applied to a huge healthy group creates many more positives than the diseased group. If a second, independent positive test is added, the odds multiply by the positive likelihood ratio ≈ 0.99/0.02 ≈ 49.5, taking the estimate from ~4.7% to roughly 70%, though real tests may be correlated and the estimate would not be that high. So one positive is weak evidence; two independent positives are much stronger, but still not proof.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Bayes' rule written out. P(+) = 0.99·0.001 + 0.02·0.999 ≈ 0.021, giving P(D|+) ≈ 4.7%.
- The natural-frequency picture (out of 100,000 people) as intuition.
- Names base-rate neglect.
- What a second, independent positive test would do to the estimate.

## Common mistakes

- Answering about 99%.
- Forgetting the false positives from the large healthy group.

## Topic guides

- [Maths and statistics for ML interviews](https://gurkanozkan.ai/learn/topics/maths-statistics.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
