Chapter XIV · 24 min
Estimation
From a sample to a claim about the world
“The object of statistical methods is the reduction of data.”
A sample is one outcome in a space of datasets. An estimator is a function of that outcome, aimed at a property of the world: a mean, a weight vector, a whole distribution. This chapter makes the aim precise — bias, variance, consistency — and then returns to maximum likelihood as a method with theorems, not just a slogan. Generalisation, in the last pages, is estimation of risk.
Estimators
Let be i.i.d. from a distribution indexed by , and let be a quantity you care about (often itself). An estimator is a random variable . It is a function of the sample, hence random; the thing it estimates is not.
- The sample mean estimates .
- The empirical risk estimates the true risk .
- A trained network is an estimator of a prediction function — a much larger .
Bias, variance, mean squared error
The bias is the systematic error, . Unbiased means the expectation hits the target; it does not mean any one sample is close. The variance is . They combine in the mean squared error:
This is the same algebra as Chapter 7, now read as a design tradeoff. A more flexible model class lowers bias (you can hit more targets) and typically raises variance (the sample’s idiosyncrasies get fit). Regularisation, early stopping, and smaller architectures are variance-control. The popular “bias–variance tradeoff” in learning is this identity, applied to a predictor’s risk rather than to a scalar parameter.
Consistency
An estimator is consistent for if in probability as . The sample mean is consistent for the mean (LLN). Consistency is a large-sample promise: with enough data, the estimator forgets its start. It says nothing, by itself, about .
Maximum likelihood, more carefully
Under regularity (the support does not depend on , the log-likelihood is differentiable, identifiability, …), the MLE is consistent, asymptotically unbiased, and asymptotically normal:
where is the Fisher information,
Information, here, is the expected curvature of the log-likelihood. A sharp peak (large ) means the data distinguish nearby parameters well, so the MLE’s variance is small. The Cramér–Rao bound says that, among unbiased estimators, you cannot beat in variance. MLE attains this bound asymptotically. That is the precise sense in which “likelihood is efficient”.
MAP, regularisation, and misspecification
MAP is MLE with a prior. As grows, a continuous prior is usually washed out and MAP and MLE agree. At small , the prior is doing the variance-control of the MSE decomposition. Weight decay is a Gaussian prior; an penalty is a Laplace prior. The vocabulary is interchangeable.
All of the efficiency theorems assume the model is well specified: some really generated the data. If not, MLE still minimises KL to the nearest member of the family (Chapter 13). That nearest member may be a useful lie, or a disaster. Model checking is the act of asking which.
Estimating risk: holdout and concentration
For a fixed predictor , the empirical risk on an i.i.d. test set of size is an unbiased estimator of true risk, with variance shrinking as . For bounded losses, Hoeffding’s inequality gives a tail:
(for loss in ). This is why a test set of a few thousand examples already makes accuracy a stable number — for one fixed . If you selected by looking at the same data, the estimator is no longer unbiased for the selected model’s risk. That is the reason for a held-out set, and the reason a training loss is not a reportable number.