Attic › Mathematics › Bayes' theorem
Bayes' theorem calculates how new evidence changes the probability of a hypothesis
In probability theory, Bayes' theorem is a mathematical rule that calculates the probability of a cause when you observe its effect. Named after Thomas Bayes, a minister, statistician, and philosopher whose work was published in 1763, the theorem updates the probability of an idea when you get new evidence.
To understand the rule, you first need conditional probability. This is the probability that one event happens, given that another event is already true. Mathematicians write the probability of event A given event B as P(A | B).
Conditional probability changes when you reverse the order of the events. For example, the probability that the ground is wet, given that it is raining, is nearly 100%. The reverse is the probability that it is raining, given that the ground is wet. This probability is much lower, because a garden sprinkler or a broken pipe can also make the ground wet.
We often know how likely a cause is to produce a piece of evidence, P(Evidence | Hypothesis). However, in science, medicine, and law, we usually see the evidence first and must find the probability of the cause, P(Hypothesis | Evidence).
Bayes' theorem reverses this direction. The formula is:
P(A | B) = [P(B | A) × P(A)] / P(B)
In this equation, A is your hypothesis and B is the new evidence. The theorem shows that you cannot judge a hypothesis by the new evidence alone. You must combine the probability of the evidence with P(A), which is how likely the hypothesis was before you saw the evidence.
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