Bayesβ Theorem
Context: FIT1058_MOC Β· reverses a conditional Β· updates a prior belief into a posterior given evidence Β· denominator from the Law of Total Probability
Quick Revision
- π― Objective: convert into β .
- π¦ Core Components: prior β likelihood β posterior; denominator via total probability.
- β‘ Key Constraint: β confusing them is the base-rate fallacy.
π Core
1. The Theorem
- Formula β .
- Belief updating β prior β posterior after observing .
2. Proof & Extended Form
- Proof β two expressions for ; equate and divide by .
- Extended β over a partition, denominator (Law of Total Probability).
3. Prior β Posterior
- Can rise/fall/hold β observing Heads: DoubleHead , DoubleTail , Fair unchanged.
- Normalisation shortcut β posteriors over a partition sum to 1.
When It Flips: posteriors over a partition sum to 1, so a missing one can be found by subtraction. Bayesian updating underpins statistics and machine learning; if independent the posterior equals the prior.
π Exam Execution Trace
Manual Execution Trace
Three coins, observe Heads:
| Step / State | Hypothesis | prior | likelihood | posterior |
|---|---|---|---|---|
| 0 (Init) | β | β | β | β |
| 1 | Fair | |||
| 2 | DoubleHead | 1 | ||
| 3 | DoubleTail | 0 | 0 |
β οΈ Common Mistakes
- π‘ Direction matters β ; Bayes is the correction factor (base-rate fallacy).
π§ Active Recall
State and prove Bayes' Theorem.
- Hint: Two forms of .
Answer
- Short answer: .
- Why: Equate β , divide.
What are prior and posterior, and how does the extended form get its denominator?
- Hint: Before/after + total probability.
Answer
- Short answer: Prior = before evidence, posterior = after; denominator .
- Why: Normalise β the total-probability sum makes posteriors sum to 1.