Study notes
Bayes' Theorem
Bayes' theorem answers a reverse question: after seeing the result, how likely is a particular cause?
- mathematics
- united-kingdom
- UK
Why a reverse probability is needed
A test or a signal is often described by the probability of a positive result when a condition is present. The question we actually want to answer is usually the opposite: given a positive result, how likely is the condition? Bayes' theorem converts one into the other using conditional probability.
The formula is the probability of the effect given the cause, multiplied by the prior probability of the cause, divided by the total probability of the effect. The numerator is the intersection written in the opposite order, and the denominator adds that intersection over every possible cause.
- Numerator: P(effect | cause) times P(cause)
- Denominator: total probability of the effect
- Result: updated probability of the cause
Interpreting the result
The denominator is easy to overlook. The effect may arise from several different causes, so all of their contributions must be included. Omitting this step inflates the answer. When the prior probability of a cause is very small, the updated probability can remain surprisingly low even after a positive signal.
A useful check is that the probabilities of the cause and its complement, both conditional on the same effect, add to one. The updated value is a degree of belief given the evidence, not proof of cause. In medical screening and in safety checks this distinction prevents a positive indicator from being read as a certain diagnosis.
Keep learning
Frequently asked questions
What does the denominator represent?
The total probability of the observed effect across all possible causes. Leaving it out is the most common error in Bayes problems.
Why can a positive test still give a low probability?
If the condition is rare, the prior probability is small, so the updated probability may remain low even when the test result is positive.
How can the answer be checked?
Add the probability of the cause and the probability of its complement, both given the effect. The sum must equal one.
Keep practising this topic
Practice questions and progress tracking open with an account.