A test that's 99% accurate sounds airtight โ until you test for something rare. Then most positives are false alarms, because a tiny error rate applied to a huge healthy majority outnumbers the few real cases. Feed in how common the condition is and how good the test is, and read off what a positive actually means.
Test positive and there's a 50% chance you actually have it โ about 1 false alarm for every real case.
| Prevalence | A positive is real |
|---|---|
| 0.1% | 9% |
| 0.5% | 33.2% |
| 1%now | 50% |
| 2% | 66.9% |
| 5% | 83.9% |
| 10% | 91.7% |
| 25% | 97.1% |
| 50% | 99% |
Same test, every row โ only the base rate changes. The rarer the condition, the further a positive tips toward a false alarm, because the test's small slip-up rate is applied to an ever-larger healthy majority. That's the base-rate fallacy: accuracy isn't the answer to "does a positive mean I have it?".