Home/Blog/Bayes' Theorem and the Medical Test You Probably Misunderstand

Bayes' Theorem and the Medical Test You Probably Misunderstand

You test positive for a rare disease. The test is 99% accurate. How worried should you be? In many real scenarios, the answer is: not very. Here is the exact math.

P
The Probability Lab Team
June 29, 2025

Prefer to explore this visually? Try the Bayes Theorem Calculator →

You test positive for a rare disease. The test is 99% accurate. How worried should you be?

Most people answer: very worried, 99% accurate means a 99% chance I have the disease. In many real scenarios, the correct answer is: probably fine. You likely do not have the disease.

Setting up the problem

Define the scenario: disease prevalence 0.01%(1 in 10,000), test sensitivity 99%, test specificity 99%. Imagine testing 1,000,000 people.

GroupCountTest result
People with disease10099 positive (true), 1 negative (false)
People without disease999,9009,999 positive (false!), 989,901 negative (true)
Total positives10,098Only 99 actually have the disease
Posterior probability: 99 / 10,098 ≈ 0.98%. A positive result on a 99%-accurate test means you have approximately a 1% chance of actually having the disease.

Bayes' Theorem formally

Bayes' Theorem
P(Disease | Positive) = P(Positive | Disease) × P(Disease)
                        ─────────────────────────────────────
                                   P(Positive)

Plugging in our numbers:
= (0.99 × 0.0001) / (0.99 × 0.0001 + 0.01 × 0.9999)
= 0.000099 / 0.010098
≈ 0.0098 = 0.98%

Why this happens

The test is very accurate. But the disease is very rare. For every person who truly has the disease and tests positive, there are roughly 100 healthy people who test positive by false alarm. The false positives outnumber the true positives because the healthy population is 10,000 times larger than the sick population.

What changes the picture

If you test a high-risk subgroup, people with known exposure or presenting with symptoms, the prior probability P(Disease) increases dramatically. If prior probability is 10% rather than 0.01%, the posterior probability after a positive test rises to over 91%.

This is why diagnostic protocols use screening tests (high sensitivity) to identify candidates, then confirmatory tests (high specificity) to confirm diagnosis. The two-stage process uses Bayes' reasoning: the first positive test updates the prior probability enough that a second positive test becomes much more meaningful.

Our Bayes' Theorem Calculator lets you adjust all three inputs, prior probability, sensitivity, specificity, and watch the posterior probability update in real time. As you drag the prevalence slider from 10% down toward 0.01%, watch a 99% accurate test's positive predictive value collapse from high confidence to near-worthlessness.

The trick that makes Bayes easy: natural frequencies

Psychologists Gerd Gigerenzer and Ulrich Hoffrage (1995) discovered that people solve Bayes problems far more accurately when the numbers are presented as counts of people rather than percentages. Try it with a test that is 90% sensitive, has a 9% false positive rate, and a disease that affects 1% of people.

Imagine 1,000 people
Have the disease:        10   →  9 test positive (90%)
Do not have the disease: 990  →  about 89 test positive (9%)

Total positive tests:    9 + 89 = 98
Share who are sick:      9 / 98 ≈ 9%

Written this way, the answer is almost obvious: most positive results come from the large healthy group, simply because it is so much bigger. Bayes' theorem gives exactly the same 9% result; the counts just make the logic visible.

Even doctors get it wrong

In a 1978 study published in the New England Journal of Medicine, Casscells, Schoenberger and Graboys asked staff and students at Harvard Medical School a similar question: if a disease has a prevalence of 1 in 1,000 and a test has a 5% false positive rate, what is the chance that a person who tests positive actually has the disease? The correct answer is about 2%. Only a small minority gave it, and the most common answer was 95%.

The error has a name: base rate neglect. The 5% false positive rate feels like the important number, but when a disease is rare, the healthy population is so large that false positives swamp true ones.

The same math explains unreliable research

In 2005, John Ioannidis applied this reasoning to science itself. If only a small share of tested hypotheses are true (a low base rate), then even studies with good statistical power and a 5% false positive threshold will produce many "significant" findings that are false. His paper, "Why Most Published Research Findings Are False", is free to download from the references below and is one of the best real-world applications of Bayes' theorem.

Check your understanding

Question: A test has 99% sensitivity and a 1% false positive rate. The disease affects 1 in 10,000 people. Roughly what share of positive results are true?

Answer: Out of 1,000,000 people, about 99 of the 100 sick people test positive and about 9,999 of the healthy test positive. So only about 99 / 10,098, roughly 1%, of positive results are true.

References and further reading

Peer-reviewed research behind this page. Links open the official publisher page; free PDFs are marked. Browse every source in our Research Library.

  1. Bayes, T. and Price, R. (1763). An Essay towards Solving a Problem in the Doctrine of Chances. Philosophical Transactions of the Royal Society of London, 53, 370 to 418.

    The original paper behind Bayes’ theorem, published by Richard Price two years after Bayes died. It shows how to update a probability when new evidence arrives.

    Read the paper ↗DOI: 10.1098/rstl.1763.0053
  2. Casscells, W., Schoenberger, A. and Graboys, T. B. (1978). Interpretation by Physicians of Clinical Laboratory Results. New England Journal of Medicine, 299, 999 to 1001.

    Harvard doctors and students were asked a simple medical test question. Most got it badly wrong because they ignored the base rate.

    Read the paper ↗DOI: 10.1056/NEJM197811022991808
  3. Gigerenzer, G. and Hoffrage, U. (1995). How to Improve Bayesian Reasoning without Instruction: Frequency Formats. Psychological Review, 102(4), 684 to 704.

    Shows that people solve Bayes problems far better when numbers are written as counts ("10 out of 1,000") instead of percentages.

    Read the paper ↗DOI: 10.1037/0033-295X.102.4.684
  4. Ioannidis, J. P. A. (2005). Why Most Published Research Findings Are False. PLoS Medicine, 2(8), e124.

    One of the most downloaded scientific papers ever. It uses Bayes’ theorem to show why many "significant" results are false positives.

    Read the paper ↗Download free PDF ↓DOI: 10.1371/journal.pmed.0020124
Interactive Tool

Put the theory into practice

Try the Bayes Theorem Calculator →
Share𝕏 Share

Continue Reading

Applied Probability

Expected Value: The Single Most Useful Concept in Decision-Making

7 min readApplied Probability

Confidence Intervals: What 95% Confidence Actually Means

8 min readApplied Probability

The p-Value Crisis: Why Most Published Research May Be Wrong

9 min read