MLE vs MAP and Bayes' Theorem
Q: What's the difference between maximum likelihood and MAP estimation?
- Bayes:
p(θ | D) = p(D | θ) p(θ) / p(D)— posterior ∝ likelihood × prior. - MLE:
argmax p(D | θ); e.g. MSE regression = MLE under Gaussian noise, cross-entropy = MLE for categorical labels. - MAP:
argmax p(D | θ) p(θ)= MLE + regularizer: Gaussian prior ⇒ L2, Laplace prior ⇒ L1. - Full Bayesian inference keeps the whole posterior (uncertainty estimates) instead of a point estimate.
Classic worked example (base-rate fallacy): a test is 99% sensitive and 95% specific for a disease with 1% prevalence. P(sick | +) = 0.99·0.01 / (0.99·0.01 + 0.05·0.99) ≈ 16.7% — most positives are false positives when the condition is rare.