Maximum Likelihood Estimation

Statistics
Introduced by
R. A. Fisher
Year
1922
Type
Parametric point estimator

What does it do?

Maximum Likelihood Estimation (MLE) is a general parametric method for estimating the unknown parameters of a statistical model by finding the parameter values under which the observed data are most probable (for discrete data) or most likely in the density sense (for continuous data).

R. A. Fisher formalised the method in his 1922 paper in the Philosophical Transactions of the Royal Society, and it is now a central estimation principle in statistics. It underlies logistic regression, generalised linear models, structural equation modeling and many other parametric inference procedures.

The intuition behind the method

Suppose you observe some data and you have a model with one or more unknown parameters — for example, the mean and variance of a normal distribution. MLE asks: which parameter values would have made this particular dataset most likely to arise? You search over all possible parameter values and pick the ones that give the observed data the highest probability (or probability density). It is like turning the probability question around: instead of asking 'given these parameters, how probable is the data?', you ask 'given this data, which parameters best explain it?'

History

The principle is associated with R. A. Fisher, whose 1922 paper 'On the mathematical foundations of theoretical statistics' in the Philosophical Transactions of the Royal Society treats maximum likelihood and introduces sufficiency, consistency and efficiency. The asymptotic theory, including the Cramér–Rao inequality, was developed by Cramér (1946) and Rao (1945). The expectation-maximisation (EM) algorithm, introduced by Dempster, Laird and Rubin (1977), extended MLE to models with latent variables and missing data.

When to use it

Choose MLE when you can write an explicit density or mass function for the data-generating process and the observations are independent, or when their dependence structure can be written down. It is the standard estimator for linear and generalised linear models, parametric survival models (for example Weibull or exponential models; Cox proportional hazards models are instead fitted by a partial-likelihood approach), mixed-effects models, factor analysis, structural equation models and discrete-choice models. Its main assumptions are: (1) the assumed model family is correctly specified; (2) the observations are independent, or the dependence is modelled; (3) the parameter is identifiable; (4) the true parameter lies in the interior of the parameter space. The large-sample results are less reliable in small samples or when the likelihood surface is poorly behaved; in such cases the estimates and their standard errors should be interpreted with care. For hypothesis testing, the likelihood ratio test compares nested models, the Wald test uses only the unrestricted fit, and the Lagrange multiplier (score) test uses only the restricted fit; the three are asymptotically equivalent. REML is a restricted variant used mainly to estimate variance components in mixed models, and is not a general small-sample bias correction. If genuine prior information about the parameters is available, Bayesian MAP estimation extends MLE by adding a prior.

Limitations and considerations

  • Depends on correct specification: if the assumed density family is wrong, the MLE can be inconsistent, and the standard errors and tests built on it are unreliable.
  • Finite-sample bias: the MLE is asymptotically unbiased but can be biased in small samples; the MLE of the variance σ² in a normal model is biased downward.
  • Numerical difficulty in complex models: high-dimensional or multimodal likelihood surfaces can cause non-convergence or convergence to a local maximum.
  • No mechanism for prior knowledge: parameters are treated as fixed unknowns, so substantive prior information cannot enter the estimate without moving to a Bayesian or penalised approach.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Asymptotically efficient: under the regularity conditions above, it attains the Cramér–Rao lower bound in large samples.
  • Invariance: if θ̂ is the MLE of θ, then g(θ̂) is the MLE of g(θ) for any function g, so transformed parameters need no separate estimation.
  • One principle across models: the same likelihood-based procedure applies to linear models, GLMs, survival analysis, SEM and time-series models, provided the density is specified.
  • Built-in uncertainty: the inverse of the observed or expected Fisher information gives the asymptotic covariance matrix, from which standard errors, confidence intervals and Wald tests follow.
  • Widely implemented: it is available in standard statistical software; users should check each package's documentation for the exact estimator and output.

Applications

  • Estimating coefficients in logistic regression, Poisson regression and other generalised linear models.
  • Fitting parametric survival models; Cox proportional hazards models are instead fitted by a related partial-likelihood approach rather than the full likelihood.
  • Parameter estimation in structural equation modeling (SEM) and confirmatory factor analysis.
  • Discrete-choice econometric models, such as probit and multinomial logit, in economics and transportation research.
  • Training hidden Markov models and other probabilistic graphical models, typically via the EM algorithm when latent variables are present.
  • Estimating variance components in mixed-effects and multilevel models, usually via REML.

How it works

How it works

1

Write down the likelihood function L(θ | x₁, …, xₙ), the joint probability (or density) of the n observations, viewed as a function of the unknown parameter θ rather than of the data. If the observations are independent and identically distributed, the joint density factorises into the product of the n individual densities f(xᵢ | θ).

Formula
L(\theta \mid x_1,\ldots,x_n) = \prod_{i=1}^{n} f(x_i \mid \theta)
2

Products of many small probabilities are numerically unstable and awkward to differentiate, so the likelihood is usually replaced by the log-likelihood ℓ(θ) = Σ ln f(xᵢ | θ). The logarithm is strictly increasing, so ℓ(θ) and L(θ) have the same maximiser and no information is lost.

Formula
\ell(\theta) = \ln L(\theta \mid \mathbf{x}) = \sum_{i=1}^{n} \ln f(x_i \mid \theta)
3

The MLE is found by setting the score, the first derivative of the log-likelihood, equal to zero and solving for θ. For simple models this gives a closed-form solution, such as the sample mean for a Gaussian mean. For most models the equations are solved numerically, for example by Newton–Raphson or quasi-Newton optimisers. With a single parameter, a negative second derivative at the solution indicates a maximum. With several parameters the check is that the Hessian matrix of second derivatives is negative definite, and a root of the score equations is not guaranteed to be the global maximum.

Formula
\frac{\partial\, \ell(\theta)}{\partial\,\theta} = 0 \quad \Longrightarrow \quad \hat{\theta}_{\mathrm{MLE}}
4

Under regularity conditions (smoothness of the density, identifiability of the model, and independent observations), the MLE is consistent, asymptotically unbiased and asymptotically efficient. Its sampling distribution is approximately normal in large samples: √n(θ̂ − θ₀) converges in distribution to a normal law whose variance is the inverse of I(θ₀), the Fisher information for a single observation, which is the asymptotic efficiency bound. In a finite sample, the covariance matrix of θ̂ is therefore approximately I(θ₀)⁻¹/n. Software commonly uses this result to report standard errors, confidence intervals and Wald tests.

Formula
\sqrt{n}\,(\hat{\theta}_{\mathrm{MLE}} - \theta_0) \xrightarrow{d} \mathcal{N}\!\left(0,\; \mathcal{I}(\theta_0)^{-1}\right)

Common pitfalls

  • Trusting a well-converged fit from a misspecified model: convergence shows that the optimiser stopped, not that the model is right. Check goodness-of-fit and residual diagnostics before interpreting coefficients.
  • Accepting a stationary point as the global maximum: in complex models, inspect the likelihood or fit from several starting values, and check that the Hessian is negative definite at the solution.
  • Relying on asymptotic standard errors in small or sparse samples: for logistic regression with rare events, for example, penalised approaches such as Firth's method are used instead.
  • Reading the likelihood as a probability: L(θ | x) is a function of θ, not a probability distribution over θ, and in general it does not integrate to one.

Frequently asked questions

How does MLE differ from least squares estimation?

Ordinary least squares (OLS) minimises the sum of squared residuals and requires no distributional assumption beyond uncorrelated errors with constant variance. MLE maximises the likelihood given an explicit distributional assumption. Crucially, when the errors are normally distributed, OLS and MLE yield identical coefficient estimates for linear regression — but MLE additionally estimates the error variance and generalises naturally to non-normal outcomes (e.g., logistic or Poisson regression) where OLS is inappropriate.

What is the Fisher information, and why does it matter?

The Fisher information I(θ) is the expected value of the squared score function, equivalently the negative expected second derivative of the log-likelihood. It measures how much information the data carry about θ: high information means the likelihood is sharply peaked and the MLE will be precise. The Cramér–Rao inequality states that no unbiased estimator can have variance smaller than 1/I(θ), and the MLE achieves this bound asymptotically. In practice, the inverse of the observed information matrix provides the asymptotic covariance matrix of the MLE, and its square roots are the reported standard errors.

Is MLE the same as MAP (maximum a posteriori) estimation?

MAP estimation is the Bayesian analogue of MLE. While MLE maximises the likelihood L(θ | x), MAP maximises the posterior p(θ | x) ∝ L(θ | x) · p(θ), where p(θ) is a prior distribution over the parameters. When the prior is flat (uniform), MAP and MLE coincide. MAP can be interpreted as a regularised form of MLE: for example, a Gaussian prior on regression coefficients corresponds to ridge (L2) regularisation.

When should I prefer Bayesian estimation over MLE?

Bayesian estimation is preferable when you have genuine prior knowledge that should constrain inference, when sample sizes are small enough that the prior has meaningful influence, or when you need full posterior distributions rather than point estimates and asymptotic intervals. MLE is typically preferred when priors are unavailable or hard to justify, when computational simplicity matters, or when asymptotic sample sizes are met — because in large samples Bayesian posteriors concentrate at the MLE anyway.

Related methods

Sources

  1. Fisher, R. A. (1922). On the mathematical foundations of theoretical statistics. Philosophical Transactions of the Royal Society of London, Series A, 222, 309–368.

    Open DOI reference
  2. Casella, G., & Berger, R. L. (2002). Statistical Inference (2nd ed.). Duxbury Press / Cengage Learning.

    ISBN: 978-0534243128