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 / StateHypothesispriorlikelihoodposterior
0 (Init)β€”β€”β€”β€”
1Fair
2DoubleHead1
3DoubleTail00

⚠️ Common Mistakes

  • πŸ’‘ Direction matters βž” ; Bayes is the correction factor (base-rate fallacy).

🧠 Active Recall