Bayes' Theorem and Medical Tests: Why a Positive Result May Mean Only 15% Chance
October 21, 2026
A medical test that is 90% accurate sounds nearly definitive. Yet when a condition is rare, a positive result may be wrong most of the time. This surprising result comes from Bayes' theorem, which updates the probability of a hypothesis given new evidence. It is one of the most useful ideas for interpreting tests, screenings, and any alert system.
Consider a disease that affects 1% of the population. A test detects it in 90% of people who have it (sensitivity) and correctly clears 95% of those who do not (specificity). If you test positive, what is the chance you actually have the disease? Most people guess about 90%. The answer is about 15%.
Skip the math and get your answer instantly:
Open the Percentage Calculator →The Natural Frequency Method
Imagine 10,000 people. With 1% prevalence, 100 have the disease and 9,900 do not. Of the 100 with the disease, 90% test positive: 90 true positives. Of the 9,900 without it, 5% test positive in error: 495 false positives. The total number of positive tests is 90 + 495 = 585. Of those, only 90 actually have the disease: 90 ÷ 585 = 15.4%.
This method avoids formulas and uses counts, which most people find far more intuitive. The large number of healthy people means even a small false-positive rate produces many false alarms, which swamp the true positives.
| Group (out of 10,000) | Tests positive | Tests negative | Total |
|---|---|---|---|
| Has the disease | 90 | 10 | 100 |
| Does not have it | 495 | 9,405 | 9,900 |
| Total | 585 | 9,415 | 10,000 |
The Formula
Bayes' theorem: P(disease | positive) = P(positive | disease) × P(disease) ÷ P(positive). Here: 0.90 × 0.01 ÷ (0.90 × 0.01 + 0.05 × 0.99) = 0.009 ÷ 0.0585 = 15.4%. This is called the positive predictive value (PPV). The negative predictive value is much higher: of 9,415 negative tests, 9,405 are truly negative, a 99.9% chance of being disease-free.
Notice that the answer depends on three things: how common the condition is (the base rate), how sensitive the test is, and how specific it is.
How Prevalence Changes the Answer
With the same test, the predictive value of a positive result changes enormously with prevalence. For a very rare disease (0.1%), a positive test means only about a 1.8% chance of disease. For 5% prevalence, 48.6%. If the person has symptoms or risk factors that raise their prior probability to 20%, the positive test gives an 81.8% chance.
This is why doctors order tests based on suspicion, and why screening a whole population for a rare condition produces many false positives and requires follow-up confirmation testing.
| Prevalence | Chance a positive is a true positive |
|---|---|
| 0.1% | 1.8% |
| 1% | 15.4% |
| 5% | 48.6% |
| 20% | 81.8% |
Beyond Medicine
The same reasoning applies to fraud detection, spam filters, security screening, and drug testing. If a rare event is flagged by an imperfect system, most flags can be false alarms. Courts have faced similar issues with forensic matches, where the 'prosecutor's fallacy' confuses the probability of the evidence given innocence with the probability of innocence given the evidence.
To use the idea in practice, always ask: how common is the thing I am looking for, and how often does the alert fire when it is absent?
What to Do With a Positive Result
Positive screening results usually call for confirmatory testing, not panic. Ask your clinician about the test's sensitivity, specificity, and your own risk level, and about what follow-up is recommended. This article is a mathematical explanation, not medical advice.
Frequently Asked Questions
What is the positive predictive value?
The probability that a person with a positive test actually has the condition.
What is the difference between sensitivity and specificity?
Sensitivity is the share of people with the condition who test positive. Specificity is the share without it who test negative.
Why is a positive result so often wrong for rare diseases?
Because the number of healthy people is so large that even a small false-positive rate produces more false positives than true ones.
What is the base rate fallacy?
Ignoring how common something is when judging the meaning of evidence.
Should I ignore a positive screening test?
No. It means further testing is warranted, but it does not confirm the diagnosis.