§5.5 Maximum likelihood estimation
Rather than guessing estimators and auditing their bias and variance, we want a principle that derives good estimators. The most common: maximum likelihood maximum likelihood θ_ML = arg max Σ log p_model(x⁽ⁱ⁾; θ) — equivalently minimize D_KL(p̂_data‖p_model) = cross-entropy; consistent and efficient (Cramér-Rao). defined in ch. 5 — open in glossary . Given examples drawn from the unknown , and a parametric family :
step 1/3: Pick the θ under which the observed data was most probable; independence factors the joint into a product.
step 1/3: Measure the dissimilarity between the empirical distribution and the model with §3.13’s KL divergence.
What this really says
Maximum likelihood is an attempt to make the model distribution match the empirical distribution — we would prefer to match the true , but only its samples are available. Training a “loss function” and matching distributions are the same act.
§5.5.1 Conditional log-likelihood and MSE
Supervised learning estimates — the conditional ML estimator, with i.i.d. data: . And the “arbitrary” MSE criterion of §5.1.4 falls out as a theorem:
step 1/3: Model the output as a Gaussian whose MEAN is the prediction — imagining many y values compatible with each x. Variance fixed by the user.
Aside — why ML is the preferred estimator
Under two conditions — the true lies in the model family, and corresponds to exactly ONE θ (identifiability) — the ML estimator is consistent. Among consistent estimators it is also statistically efficient: for large m, the Cramér-Rao lower bound says no consistent estimator achieves lower parametric MSE. When m is small enough to overfit, regularizers like weight decay trade a little bias for less variance.
§5.6 Bayesian statistics
The frequentist estimates one and predicts with it; the Bayesian considers all values of — Bayesian inference bayesian inference Treat θ as a random variable: prior p(θ) → posterior via Bayes; predict by integrating over ALL θ — uncertainty preserved, overfitting resisted, costly for large m. defined in ch. 5 — open in glossary . The worldviews swap what is random: frequentist — θ fixed, θ̂ random (a function of random data); Bayesian — the dataset is directly observed (not random), while θ is uncertain, hence a random variable with a prior (chosen broad/high-entropy, often preferring simpler functions). Data updates it through Bayes’ rule, and predictions integrate:
Term by term
| the posterior — typically starts high-entropy and concentrates as data arrives | weight | |
| EVERY θ with positive density votes on the prediction, weighted by its posterior — remaining uncertainty flows directly into predictions, protecting against overfitting | the Bayesian move | |
| the frequentist handles estimator uncertainty via its variance; the Bayesian simply integrates over it — principled (pure probability laws), but computationally costly for large m | contrast |
Bayesian linear regression, worked
step 1/6: The likelihood: predictions Xw with unit Gaussian noise (the standard MSE setup).
Bayesian methods generalize better with limited data and cost more with lots of it. The tractable middle ground — a point estimate that keeps the prior — is MAP estimation, next.
Check yourself — MLE and Bayes
1.Why take the log in maximum likelihood?
2.'Mean squared error is a cross-entropy.' In what sense?
3.Under what conditions is the ML estimator consistent, and what extra crown does it wear?
4.What do frequentist and Bayesian statistics each treat as random?
5.In Bayesian linear regression with prior N(0, (1/α)I), what does the posterior deliver beyond weight decay's answer?