Diagnose a Disease Given a Positive Screening Test
Statistics & ExperimentsModel answerLast updated
Apply Bayes' theorem to find the probability a patient truly has a disease after testing positive, interpreting the surprising result.
Scenario
A regional health authority runs a voluntary screening program for a rare metabolic disorder. The program uses a blood-based test with the following known properties:
- Prevalence of the disorder in the screened population: 1 in 500 (0.2%)
- Sensitivity (true-positive rate): 95% — if a person has the disorder, the test is positive 95% of the time
- Specificity (true-negative rate): 98% — if a person does not have the disorder, the test is negative 98% of the time
A randomly selected participant receives a positive test result.
What you are asked to do
- Define the relevant events and state the version of Bayes' theorem you will use.
- Calculate the positive predictive value (PPV) — the probability that the participant actually has the disorder given the positive test result. Show every step.
- Interpret the number: why is the result potentially surprising, and what does it mean for the screening program?
- A program manager suggests that the specificity is the key lever to improve PPV. Confirm or challenge this claim with a short quantitative argument.
Hints
Hint 1
Start by writing out P(Disease), P(+|Disease), and P(+|No Disease) explicitly before applying Bayes' theorem — it keeps the arithmetic clean.
Hint 2
The denominator in Bayes' theorem, P(+), must account for two ways a positive result can occur: a true positive and a false positive. Compute each term separately.
Hint 3
To test the manager's claim about specificity, try recalculating PPV after increasing specificity from 98% to 99.5% while holding sensitivity fixed, and see how much PPV changes.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Step 1 — Define events and givens
| Symbol | Meaning | Value |
|---|---|---|
| P(D) | Prevalence (prior probability of disease) | 0.002 |
| P(D̄) | Probability of no disease | 0.998 |
| P(+ | D) | Sensitivity | 0.95 |
| P(+ | D̄) | False-positive rate = 1 − specificity | 0.02 |
We want P(D | +), the posterior probability of disease given a positive test.
Step 2 — Apply Bayes' theorem
$$P(D \mid +) = \frac{P(+ \mid D), P(D)}{P(+)}$$
Compute the denominator P(+) using the law of total probability:
$$P(+) = P(+ \mid D),P(D) + P(+ \mid \bar{D}),P(\bar{D})$$
$$P(+) = (0.95)(0.002) + (0.02)(0.998)$$
$$P(+) = 0.0019 + 0.01996 = 0.02186$$
Compute the numerator:
$$P(+ \mid D),P(D) = 0.95 \times 0.002 = 0.0019$$
Final result:
$$P(D \mid +) = \frac{0.0019}{0.02186} \approx 0.0869 \approx \mathbf{8.7%}$$
Step 3 — Interpret the result
Despite a positive test from a 95%-sensitive, 98%-specific instrument, a positive participant has only about a 1-in-11.5 chance of actually having the disorder. This surprises many people because the test sounds accurate, yet the PPV is very low.
The reason is base-rate dilution: the disorder is rare (0.2%). In a cohort of 10,000 people:
- ~20 truly have the disorder → ~19 test positive (true positives)
- ~9,980 are healthy → ~200 test positive (false positives at 2%)
So among all ~219 positive results, only 19 are real cases — roughly 8.7%, matching our calculation.
Practical implication: A positive screening result should trigger a confirmatory test (ideally with much higher specificity or an orthogonal method), not immediate diagnosis or treatment. Communicating this to patients and clinicians is critical to avoid unnecessary anxiety and over-treatment.
Step 4 — Is specificity the key lever?
The program manager is correct. Here is why.
The false-positive pool dominates because P(D̄) ≈ 1. Any decrease in the false-positive rate (i.e., increase in specificity) directly shrinks the denominator of Bayes' theorem.
Recalculate with specificity raised from 98% → 99.5% (false-positive rate drops from 2% to 0.5%):
$$P(+) = (0.95)(0.002) + (0.005)(0.998) = 0.0019 + 0.00499 = 0.00689$$
$$P(D \mid +) = \frac{0.0019}{0.00689} \approx 0.276 \approx \mathbf{27.6%}$$
A 1.5 percentage-point improvement in specificity triples the PPV from ~8.7% to ~27.6%.
For comparison, raising sensitivity from 95% to 99.5% (while keeping specificity at 98%):
$$P(+) = (0.995)(0.002) + (0.02)(0.998) = 0.00199 + 0.01996 = 0.02195$$
$$P(D \mid +) = \frac{0.00199}{0.02195} \approx 9.1%$$
Sensitivity improvement barely moves PPV. The intuition: sensitivity only affects the tiny true-positive pool; specificity affects the enormous healthy pool.
Rule of thumb: When prevalence is very low, specificity is the dominant lever for PPV. When prevalence is high (e.g., a targeted high-risk cohort), sensitivity matters more because the base rate is no longer swamping the signal.
Common mistakes to avoid
- Confusing sensitivity with PPV. "The test is 95% accurate" does not mean a positive result is 95% likely to be real.
- Forgetting the base rate entirely. Stating P(D | +) ≈ sensitivity is the classic base-rate neglect error.
- Arithmetic errors in the denominator. Always decompose P(+) into two terms explicitly; do not shortcut.
- Ignoring the practical/communication angle. A strong answer connects the math back to what a clinician or patient should actually do with the result.