Conditional probability updates beliefs given evidence, and Bayes’ theorem reverses the direction of conditioning, turning a likelihood into a posterior. This is the engine of Bayesian inference and the counterpart to frequentist Maximum Likelihood Estimation.
Conditional Probability
For events with :
- Multiplication rule: .
- Chain rule: .
Conditioning on restricts the sample space to and renormalizes probabilities by .
Law of Total Probability
If partition (disjoint and exhaustive):
This decomposes an event over mutually exclusive scenarios and supplies the denominator in Bayes’ theorem.
Bayes’ Theorem
Starting from and dividing by :
| Term | Name | Role |
|---|---|---|
| prior | belief before data | |
| likelihood | how well explains | |
| posterior | belief after data | |
| evidence | normalizer |
Base-rate trap (medical test)
A test is 99% accurate for a disease affecting 1 in 1000. Let be disease and a positive result: , , . Then The low prior dominates, so about 91% of positives are false. Sensitivity alone is misleading without the base rate.
Independence
- Events: independent iff , equivalently .
- Conditional independence: independent given iff .
- Pairwise independence does not imply mutual independence, and conditional independence neither implies nor is implied by marginal independence.
Intro to Bayesian Inference
Treat an unknown parameter as a random variable with prior . After observing data :
- The posterior combines prior belief with the likelihood .
- Point estimates: posterior mean or maximum a posteriori (MAP) .
- A conjugate prior keeps the posterior in the same family (e.g. Beta prior with Binomial likelihood gives a Beta posterior).
- MAP with a flat prior coincides with the Maximum Likelihood Estimation estimate.
Prior sensitivity and the prosecutor's fallacy
Conclusions can hinge on the prior when data are scarce, so report sensitivity to it. Also do not confuse with : a small does not mean a small .