na.to.
📚 All keywords › 🧠 Core Knowledge Collection › Bayes' Theorem Made Simple: What a Positive Test Really Means
KO EN
🧮

Bayes' Theorem Made Simple: What a Positive Test Really Means

If a test comes back positive, how likely is it that you actually have the disease? Conditional probability, Bayes' theorem and the base-rate trap.

📚 Core Knowledge Collection · 26/37· ⏱ About 4min read ·Information updated 2026-11-03
📋 Key facts5
Named after
Thomas Bayes, an English minister who died in 1761
Published
1763, when his friend Richard Price edited and presented his paper
Formula
P(A|B) = P(B|A) × P(A) ÷ P(B)
Core idea
Weigh new evidence together with how common something was to begin with (the prior or base rate)
Common mistake
Base-rate neglect: judging only by test accuracy and overrating the result

What conditional probability is

Conditional probability is the chance that one thing happens given that another has happened. It is written P(A|B) and read as the probability of A given B. The crucial point is that P(A|B) and P(B|A) are different. The chance the sky is cloudy when it rains is close to 1, but the chance it rains when the sky is cloudy is much lower. Swapping the two is one of the most common reasoning errors in everyday life.

The formula

Bayes' theorem lets you find P(A|B) when you know P(B|A). The formula is P(A|B) = P(B|A) × P(A) ÷ P(B). Here P(A) is the probability that A is true before seeing the evidence, called the prior, and the result P(A|B) is the probability after seeing evidence B, called the posterior. In other words, Bayes' theorem is a rule for updating a belief in light of new evidence. If the formula feels abstract, counting people instead of probabilities makes it much easier.

A positive test: an example

The following numbers are assumptions chosen to show the calculation. Suppose a disease affects 100 people in 10,000 (1%), and a test detects 90% of those who have it but also wrongly flags 9% of healthy people. Of the 100 sick people, 90 test positive, and of the 9,900 healthy people, 891 test positive. That gives 981 positives in total, of whom only 90 are actually ill. So the chance of having the disease after a positive result is about 9%, very different from the impression that a 90% accurate test gives.

  • Assumed: 100 sick and 9,900 healthy people out of 10,000
  • 90 sick positives, 891 healthy positives
  • 90 of 981 positives are sick, about 9.2%

The base-rate trap

As in the example, people tend to focus on how accurate a test is and forget how rare the condition is to begin with. This is called base-rate neglect, and it became widely known through the work of psychologists Daniel Kahneman and Amos Tversky. The rarer something is, the more false positives can outnumber true ones, even with an accurate test. That is why in medicine a single positive result is often confirmed with a different method. The same principle applies to identifying suspects, flagging fraudulent transactions and filtering spam.

Beliefs shift as evidence accumulates

Bayes' theorem is not a one-off calculation; you can apply it again each time new evidence arrives. The posterior after the first test becomes the prior for the second. In the example, the 9% after one positive rises sharply if an independent second test is also positive. In this way, people who started with different views tend to converge as they see enough of the same evidence. The catch is that if you fix a probability at exactly 0 or 1 at the start, no evidence can ever move it.

Where it is used

Bayes' theorem is used wherever decisions must be made under uncertainty: medical diagnosis, weighing evidence in court, weather forecasting and quality control. Email spam filters have long used it to estimate how likely a message is spam given the words it contains. It also underlies many machine learning methods and search operations that update a location estimate each time new information comes in. In statistics, Bayesian statistics built on this idea forms one of the major schools of thought.

Name and history

Thomas Bayes was an 18th-century English Presbyterian minister and mathematician who died in 1761. His friend Richard Price edited a manuscript he left behind and presented it in the Royal Society's journal in 1763, which brought the idea to light. The French mathematician Laplace independently worked on the same principle around 1774 and developed it into a general form. Many scholars therefore credit Laplace with much of the theorem as it is used today.

🔗 More in this category

🧰 Related tools

🌍 Search the web for this

Each button runs this keyword on that search engine