Probability · Probability Foundations
Total Probability Formula and Bayes' Theorem
Explanation
Partition of the Sample Space
A collection is a partition of if:
1. Pairwise disjoint: for all .
2. Exhaustive: .
3. for all .
Total Probability Formula
Idea: If the "causes" are known together with the conditional "effects", we can compute by weighting over all causes:
Intuition: Write .
The events are mutually exclusive, so:
Bayes' Theorem
Idea: We observed outcome — what can we infer about the "cause" that produced it?
Terminology:
- — Prior: what is known before the observation.
- — Posterior: updated belief after observing .
- — Likelihood: how well "explains" .
The Medical Test "Paradox"
A classic example where intuition fails:
Suppose: , (sensitivity), (false positive rate).
Surprising result: Even with a test that is 90% sensitive, only one-third of positive tests are true positives — because the base rate of the disease is low.
Summary: Three Steps for a Bayesian Calculation
1. Define the partition and write .
2. **Write ** for each .
3. Compute (total probability) then (Bayes).
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 6
1
is a partition of : , .
Given: , .
Compute .
★Given: , .
Compute .
Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)