Bayes' Theorem Formula
Bayes' theorem gives the posterior probability of a hypothesis given evidence: P(H|E) = P(E|H) x P(H)/P(E).
The Formula
When to use: Start with a prior belief, then reweight it by how likely the evidence is under each hypothesis.
Quick Example
Notation
What This Formula Means
Bayes' theorem gives the posterior probability of a hypothesis given evidence: .
Start with a prior belief, then reweight it by how likely the evidence is under each hypothesis.
Formal View
Worked Examples
Example 1
mediumAnswer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
hardExample 3
mediumCommon Mistakes
- Treating as equal to - Bayes flips them, and the prior makes the two differ.
- Ignoring the base rate (prior) - a rare condition keeps the posterior low even after strong evidence.
- Using the wrong denominator - must total over ALL hypotheses (true and false), e.g. true positives plus false positives.
Why This Formula Matters
Real questions ask 'given a positive test, do I have the disease?' but data give you 'given the disease, how often does the test come back positive?' — Bayes is the only way to flip that, and ignoring the base rate (the prior) is the classic error behind wildly overstated test-result fears. It formalizes learning from evidence. Recognizing it by "Am I given and a prior, and asked for the flipped ?" — rather than by familiar numbers — is what lets a student tell it apart from conditional probability and compound probability and law of total probability in a mixed problem set.
Frequently Asked Questions
What is the Bayes' Theorem formula?
Bayes' theorem gives the posterior probability of a hypothesis given evidence: .
How do you use the Bayes' Theorem formula?
Start with a prior belief, then reweight it by how likely the evidence is under each hypothesis.
What do the symbols mean in the Bayes' Theorem formula?
is the prior, is the likelihood, is the posterior, and is the total evidence probability.
Why is the Bayes' Theorem formula important in Math?
Real questions ask 'given a positive test, do I have the disease?' but data give you 'given the disease, how often does the test come back positive?' — Bayes is the only way to flip that, and ignoring the base rate (the prior) is the classic error behind wildly overstated test-result fears. It formalizes learning from evidence. Recognizing it by "Am I given and a prior, and asked for the flipped ?" — rather than by familiar numbers — is what lets a student tell it apart from conditional probability and compound probability and law of total probability in a mixed problem set.
What do students get wrong about Bayes' Theorem?
The procedure for bayes' theorem is the easy part; the trap is treating as equal to . Asking "Am I given and a prior, and asked for the flipped ?" first is what keeps a correct-looking calculation from being attached to the wrong concept.
What should I learn before the Bayes' Theorem formula?
Before studying the Bayes' Theorem formula, you should understand: conditional probability, probability, sample space.