Maximum Likelihood Estimation
Canonical reference: Casella & Berger, Statistical Inference ref/casella-berger
Maximum likelihood is the most widely used method of point estimation: choose the parameter value under which the observed data are most probable. For an iid sample from a density or mass function , the likelihood function is the joint density viewed as a function of with the data held fixed:
The likelihood is not a probability distribution over ; it need not integrate to anything in particular. is the maximum likelihood estimator, its realized value the maximum likelihood estimate (both abbreviated MLE). The maximization runs over the parameter space only, and the range of the MLE therefore coincides with the range of the parameter.
Log-likelihood, score, and information
Because the logarithm is strictly increasing, and its logarithm are maximized at the same point, and the log-likelihood is almost always easier to work with:
When is differentiable, interior candidates for the MLE solve the likelihood equations, for each component. The gradient is the score. Two cautions: a zero score is necessary, not sufficient — roots can be minima, saddle points, or local maxima — and a maximum on the boundary of need not have zero score at all, so boundaries are checked separately.
The Fisher information in one observation is
where the second form requires regularity conditions (differentiation and integration interchangeable). An iid sample of size carries ; for a parameter vector, is the matrix with entries per observation. Larger information means a sharper likelihood and a smaller achievable variance: the Cramér–Rao bound states that an unbiased estimator of satisfies . The observed information (more generally the negative Hessian at ) is the curvature actually seen in the sample and is the usual basis for standard errors in software output.
Worked example: Bernoulli trials
For iid trials with successes,
so the score is zero at , and throughout confirms a maximum. The boundary cases matter: if or the log-likelihood is monotone and still holds, but only because and belong to the parameter space.
With and : , and both the observed and expected information at equal , giving
Invariance. If is the MLE of , then is the MLE of for any function (for non-one-to-one , via the induced likelihood ). On the example above, the MLE of the log-odds is simply — no refitting. Invariance also gives the normal-theory results in one step: the MLE of is , whose variance component is biased but beats on MSE.
Large-sample properties
Under regularity conditions (identified model, smooth likelihood, the true interior to , and dominance conditions that let the log-likelihood converge uniformly), the MLE has the properties that make it the default:
- Consistency: .
- Asymptotic normality and efficiency: , so the asymptotic variance attains the Cramér–Rao bound. In the vector case the limiting covariance matrix is .
- Practical inference: standard errors come from the diagonal of the inverse observed (or expected) information matrix, yielding Wald intervals and tests as in the Bernoulli example.
The Taylor expansion behind the second property also explains the standard errors: expanded around gives , where the numerator is asymptotically normal by the central limit theorem and the denominator converges to . None of this promises finite-sample optimality: in small samples other estimators can dominate, and the properties assume the model family is correctly specified (sandwich or robust standard errors are the usual remedy when only the variance calculation is in doubt).
Computing the MLE
Closed-form solutions exist for textbook families but are the exception in latent-variable modeling. The standard numerical routes:
- Newton–Raphson: iterate ; fast locally, but needs first and second derivatives and a good start.
- Fisher scoring: replace the observed Hessian by its expectation ; equivalent to iteratively reweighted least squares in generalized linear models.
- EM: for models with latent variables or missing data; derivative-free and guaranteed to increase the likelihood at every iteration, at the price of slower convergence.
- General-purpose optimizers (quasi-Newton methods such as BFGS) when derivatives are expensive; multiple starts are prudent whenever the likelihood may be multimodal.
Failure modes
- Multiple roots and local maxima. The likelihood equations can have several solutions; the global maximum is not distinguished by the score being zero. Analyze the likelihood before trusting one optimization run.
- Boundary maxima. At a boundary solution the score is nonzero and the usual asymptotic normal approximation centered at with information-based SEs does not apply directly.
- Flat or nearly flat likelihoods. Weakly identified parameters produce estimates that are numerically unstable: small changes in the data can move the MLE dramatically. Inspecting the curvature (the observed information) is the diagnostic.
- Nonidentification. If different parameter values give the same distribution of the data, no estimator can separate them — identification precedes estimation in the workflow.
- Unbounded likelihoods. Some families, notably normal mixtures, have no finite global maximum (a component can collapse onto one observation with variance shrinking to zero); see EM for the standard example.