Diagnose a positive test for a rare condition
Statistics & ExperimentsModel answerLast updated
Use Bayes' theorem to find the probability a patient truly has a rare disease given a positive screening test result.
Scenario
A clinic uses an automated screening test to detect a rare metabolic disorder. You are asked to interpret the test results for a patient.
Known facts:
- The disorder affects 1 in 500 people in the general population.
- The test has a sensitivity of 95% (true positive rate): if a person has the disorder, the test is positive 95% of the time.
- The test has a specificity of 90% (true negative rate): if a person does not have the disorder, the test is negative 90% of the time.
- A randomly selected patient from the general population just received a positive test result.
What is the probability that this patient actually has the disorder?
Show your reasoning step by step and give a final numeric answer. Explain what this result means in plain language and note any practical implications.
Hints
Hint 1
Start by writing out the four quantities you need: P(Disease), P(No Disease), P(+|Disease), and P(+|No Disease).
Hint 2
Apply the law of total probability to compute P(+), the overall probability of a positive test result.
Hint 3
Use Bayes' theorem: P(Disease|+) = P(+|Disease) × P(Disease) / P(+).
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
Step-by-Step Solution
1. Define the events and given probabilities
- D = patient has the disorder
-
- = test result is positive
Given:
- P(D) = 1/500 = 0.002
- P(no D) = 499/500 = 0.998
- P(+ | D) = 0.95 (sensitivity)
- P(+ | no D) = 1 − 0.90 = 0.10 (false positive rate = 1 − specificity)
2. Compute the total probability of a positive test, P(+)
Using the law of total probability:
P(+) = P(+ | D) × P(D) + P(+ | no D) × P(no D)
= 0.95 × 0.002 + 0.10 × 0.998
= 0.0019 + 0.0998
= 0.1017
About 10.2% of all tests come back positive.
3. Apply Bayes' theorem
P(D | +) = P(+ | D) × P(D) / P(+)
= 0.0019 / 0.1017
≈ 0.0187
≈ 1.87%
The probability the patient has the disorder is roughly 1.9%.
4. Sanity check with a natural frequency table (1,000,000 people)
| Group | Count |
|---|---|
| Total population | 1,000,000 |
| Have disorder | 2,000 |
| Do not have disorder | 998,000 |
| True positives (have disorder, test +) | 2,000 × 0.95 = 1,900 |
| False positives (no disorder, test +) | 998,000 × 0.10 = 99,800 |
| Total positive tests | 101,700 |
| Positive tests who truly have disorder | 1,900 / 101,700 ≈ 1.87% |
Matches our calculation exactly.
5. Plain-language interpretation
Even with a positive result, there is only about a 1-in-53 chance the patient actually has the disorder. The overwhelming majority of positive results are false alarms. This is the base rate effect: when a disease is very rare, even a fairly accurate test produces far more false positives than true positives.
6. Practical implications
- Do not treat on a single positive result. Clinical protocol should require a confirmatory test, especially when the condition is rare and treatment has side effects or costs.
- The false positive rate matters enormously at low prevalence. Cutting the false positive rate from 10% to 1% would raise the positive predictive value to about 16%—a 8× improvement—while improving sensitivity barely changes the picture.
- Communicate uncertainty clearly. Telling a patient "your test was positive" without context is misleading. The correct message is "a positive result means we need further testing; the chance of actually having the condition is still low."
Common mistakes to avoid
- Ignoring the base rate. Many people intuitively answer ~95% because they anchor on sensitivity. This ignores how rare the disease is.
- Confusing P(+ | D) with P(D | +). These are not the same—this confusion is sometimes called the prosecutor's fallacy.
- Forgetting to compute P(+) as the denominator. Skipping the law of total probability step leads to an unnormalized answer.
- Rounding too early. Working with small probabilities (0.002) means rounding at intermediate steps can noticeably shift the final answer.