Diagnose a Disease with Cascading Conditional Probabilities
Statistics & ExperimentsModel answerLast updated
Apply Bayes' theorem across two sequential tests to find the true posterior probability that a patient has a rare disease.
Cascading Diagnostic Tests
A regional health authority is evaluating a two-stage screening protocol for a rare autoimmune condition.
Known epidemiology and test characteristics:
| Parameter | Value |
|---|---|
| Disease prevalence in the screened population | 0.5% |
| Stage-1 test sensitivity (true positive rate) | 92% |
| Stage-1 test specificity (true negative rate) | 88% |
| Stage-2 test sensitivity | 97% |
| Stage-2 test specificity | 99% |
Protocol: Every patient in the population receives the Stage-1 test. Only patients who test positive on Stage-1 proceed to Stage-2.
Questions you are expected to answer:
- What is the probability that a patient who tests positive on Stage-1 actually has the disease? (Posterior after Stage-1.)
- Among those who proceed to Stage-2, what is the probability that a patient who tests positive on Stage-2 actually has the disease? (Posterior after Stage-2.)
- What is the overall false-negative rate of the full two-stage pipeline? That is, among all truly diseased patients in the original population, what fraction are missed entirely (test negative at Stage-1 or, having reached Stage-2, test negative there too)?
- A policy-maker argues: "Because Stage-2 is so accurate, we can skip Stage-1 and just test everyone with Stage-2 directly — we'll get the same final PPV." Evaluate this claim quantitatively.
Show every step of your reasoning. State any assumptions explicitly.
Hints
Hint 1
Start with a concrete cohort of 100,000 patients — tracking counts is easier than tracking fractions through two stages.
Hint 2
The prior going into Stage-2 is NOT the population prevalence; it is the posterior you computed after Stage-1, applied only to the sub-population that tested positive on Stage-1.
Hint 3
For question 3, remember that the pipeline can miss a diseased patient in two distinct ways: failing at Stage-1, or passing Stage-1 but failing Stage-2.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Step 0 — Assumptions
- Tests are conditionally independent given true disease status (the result of Stage-1 carries no additional information about Stage-2 beyond what the true disease status already tells us).
- Prevalence applies uniformly across the screened population.
- "Sensitivity" and "specificity" are stable and do not change when the test is applied to a sub-population filtered by Stage-1.
A concrete cohort of 100,000 patients will be used throughout.
Step 1 — Populate the Stage-1 contingency table
- Truly diseased: 100,000 × 0.005 = 500
- Truly healthy: 100,000 − 500 = 99,500
Stage-1 results:
| Diseased | Healthy | Total | |
|---|---|---|---|
| Test + | 500 × 0.92 = 460 | 99,500 × 0.12 = 11,940 | 12,400 |
| Test − | 500 × 0.08 = 40 | 99,500 × 0.88 = 87,560 | 87,600 |
Question 1 — PPV after Stage-1
$$P(\text{disease} \mid \text{S1}+) = \frac{460}{12{,}400} \approx \mathbf{3.71%}$$
Interpretation: Despite a positive Stage-1, only about 1 in 27 positive patients is truly diseased. This is the base-rate (prevalence) problem in action: a rare condition overwhelms even a reasonably specific test with false positives.
Question 2 — PPV after Stage-2
Only the 12,400 Stage-1-positive patients proceed. Within this group:
- Truly diseased: 460 (prior probability = 460/12,400 ≈ 3.71%)
- Truly healthy: 11,940
Stage-2 applied to this sub-population:
| Diseased (460) | Healthy (11,940) | Total | |
|---|---|---|---|
| Test + | 460 × 0.97 = 446.2 | 11,940 × 0.01 = 119.4 | 565.6 |
| Test − | 460 × 0.03 = 13.8 | 11,940 × 0.99 = 11,820.6 | 11,834.4 |
$$P(\text{disease} \mid \text{S1}+, \text{S2}+) = \frac{446.2}{565.6} \approx \mathbf{78.9%}$$
Interpretation: The two-stage cascade raises the PPV from 3.7% to nearly 79%. Stage-2's very high specificity (99%) dramatically cuts the false-positive pool, since only ~12,000 healthy patients enter it and only 1% of those slip through.
Question 3 — Pipeline false-negative rate
A diseased patient is missed if:
- Path A: Tests negative on Stage-1 → exits the pipeline. Count: 40
- Path B: Tests positive on Stage-1 → tests negative on Stage-2. Count: 13.8
Total missed diseased patients: 40 + 13.8 = 53.8
$$\text{Pipeline FNR} = \frac{53.8}{500} \approx \mathbf{10.76%}$$
For comparison, Stage-1 alone has FNR = 8%. Adding Stage-2 increases the effective FNR slightly because a small fraction of the Stage-1 true positives are lost to Stage-2's 3% miss rate.
Key trade-off: The cascade protocol greatly improves PPV and reduces unnecessary follow-up costs, but it comes at the price of a modestly higher miss rate for the diseased. Whether that is acceptable depends on the severity of the condition and the cost of the confirmatory workup.
Question 4 — Policy-maker's claim: "Skip Stage-1, apply Stage-2 to everyone"
Applying Stage-2 directly to the original 100,000 patients:
| Diseased (500) | Healthy (99,500) | |
|---|---|---|
| Test + | 500 × 0.97 = 485 | 99,500 × 0.01 = 995 |
$$\text{PPV}_{\text{Stage-2 only}} = \frac{485}{485 + 995} = \frac{485}{1{,}480} \approx \mathbf{32.8%}$$
The two-stage protocol achieves 78.9% PPV vs. 32.8% PPV for Stage-2 alone.
Why the claim is wrong: The policy-maker conflates the test's intrinsic specificity (99%) with the PPV in a low-prevalence setting. Even with 99% specificity, 1% of 99,500 healthy patients = ~995 false positives, which swamps the 485 true positives at 0.5% prevalence. Stage-1 acts as a pre-filter: it raises the effective prevalence in the population entering Stage-2 from 0.5% to 3.7%, so Stage-2's high specificity becomes far more powerful at eliminating false positives.
Skipping Stage-1 also has a cost implication: Stage-2 tests are typically more expensive or invasive; running them on 100,000 patients rather than 12,400 is roughly 8× costlier with worse PPV.
Common Mistakes
- Using population prevalence as the prior for Stage-2. The prior entering Stage-2 must be the Stage-1 posterior (3.71%), not 0.5%.
- Forgetting Path B false negatives. Many candidates only count Stage-1 misses when computing pipeline FNR.
- Conflating specificity with PPV. High specificity does not guarantee high PPV in rare-disease settings; prevalence is the dominant driver.
- Ignoring independence assumption. In practice, correlated test errors (e.g., both tests fail on the same unusual disease presentation) would inflate the true FNR beyond what the calculation shows.