Attic › Mathematics › Bayes' theorem
Repeating the calculation with each new piece of evidence makes the initial guess matter less
You do not have to use Bayes' theorem only once. In Bayesian inference, a method of statistical reasoning, the posterior probability from one calculation becomes the prior probability for the next. As you gather more evidence and repeat the calculation, the data gradually overwhelms your original starting probability.
Look again at the medical test from the earlier example. After one positive test, your probability of having the disease rose from 0.1% to about 9% (0.09). To be sure, your doctor orders a second, independent test with the same 99% accuracy, and it also comes back positive. You now calculate Bayes' theorem a second time:
1. New prior probability, P(Sick): Use the posterior probability from the first test, which is 0.09. This makes P(Healthy) = 1 − 0.09 = 0.91.
2. Likelihood, P(Positive | Sick): This is still 0.99.
3. Marginal likelihood, P(Positive): Multiply the new priors by the test rates and add them together. The chance of a true positive is 0.09 × 0.99 = 0.0891. The chance of a false positive is 0.91 × 0.01 = 0.0091. Their sum is 0.0891 + 0.0091 = 0.0982.
Now calculate the new posterior probability:
P(Sick | Positive) = 0.0891 / 0.0982 ≈ 0.91
A second positive test raises the probability that you have the disease from 9% to 91%. It is rare for a healthy person to get two false positives in a row (1% of 1% is 1 in 10,000), so two positive results are strong evidence even for a rare condition.
This step-by-step updating is why Bayesian statistics works even when people disagree on the initial prior probability. If two scientists start with very different guesses about a hypothesis, each shared piece of evidence pulls their posterior probabilities closer together.
Thomas Bayes originally used this logic to find the unknown probability of a repeatable event from a small number of trials. After Bayes died, his friend Richard Price edited the notes and had them read at the Royal Society in 1763 as An Essay Towards Solving a Problem in the Doctrine of Chances. In 1774, the French mathematician Pierre-Simon Laplace independently discovered the same principle, gave the formula its modern algebraic form, and used it to calculate probabilities in astronomy, medicine, and population records. Today, computers do millions of these updates per second to filter spam emails, guide self-driving cars, and decode genetic data.
Fact-checked against Bayes' theorem on Wikipedia
Part of the Mathematics syllabus: Probability and Statistical Inference
See it on the timeline of Probability and Statistical Inference