Exam PProbability foundationsFree to read
Bayes' theorem and the law of total probability
Reverse a conditional probability: weight each cause by its prior and its likelihood, then normalise. The denominator is always the law of total probability.
The formulas
- Law of total probability
- Bayes
- Two-event form
- Odds form
Where it comes from
- The partition cuts into disjoint pieces , so .
- Bayes is then just with both parts rewritten using the multiplication rule.
- The odds form drops the shared denominator, which is why it is faster when only a ratio is asked for.
Worked example
A motor book is 50% low risk, 30% standard and 20% high risk, with annual claim probabilities of 2%, 5% and 11%. A policyholder claims this year. What is the probability they are high risk?
- Total probability of a claim: .
- Bayes numerator for high risk: .
- .
- The high-risk group is 20% of the book but 46.8% of the claimants - the prior has been sharply updated.
Answer: 0.4681
This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.
Memory hooks
- Numerator is one prior times one likelihood; denominator is the sum of all of them. The posteriors must sum to 1 - check it.
- The denominator IS the law of total probability. Compute it once and reuse it for every class.
Traps
- Forgetting a class in the denominator, so the posteriors do not sum to 1.
- Swapping prior and likelihood - the prior is the class probability, the likelihood is the event probability GIVEN the class.
1 solved sample question
From the free samples in the question bank, solved in full. They never rotate and they are never gated.
- Exam PBayes' theorem and the law of total probabilityCoreThree suppliers provide 25%, 35% and 40% of parts, with failure rates 0.02, 0.04 and 0.05. What is the overall failure rate?
Solution
- Weight each supplier's failure rate by its share of parts.
- .
- .
- , between the smallest and largest rates as any weighted average must be.
Drill this topic: Bayes' theorem and the law of total probability has 16 questions, 2 of them solved free on that page, and the full question bank has 400. The drills are part of Premium. Every free sample and today’s mixed round stay free.