Maximum Likelihood Estimation

Maximum Likelihood Estimation (MLE) is a method of estimating the parameters of a statistical model by choosing the values that make the observed data most probable. Key result: the estimate is the argument that maximizes the likelihood function, . Applies to: parametric inference across statistics, econometrics, machine learning, physics, and genetics. Who/when: systematized by Ronald A. Fisher in 1912–1922, with roots in Gauss and Laplace.

Maximum Likelihood Estimation is a general-purpose procedure for fitting a probability model with unknown parameters to observed data. Given a model that specifies the probability (or density) of the data as a function of parameters , one views this probability — now read as a function of with the data held fixed — as the likelihood, and selects the that maximizes it. It matters because it yields estimators with deep optimality properties (consistency, asymptotic efficiency, and asymptotic normality) that hold under broad conditions, and it unifies a vast range of statistical techniques under a single principle. A surprising fact: many estimators you already know — the sample mean, the ordinary least squares fit, the sample proportion — are all maximum likelihood estimators for appropriate models, even though they were discovered independently and earlier.

The Core Insight

Probability and likelihood use the same formula but read it in opposite directions. Probability fixes the parameter and asks how likely various data are; likelihood fixes the observed data and asks how plausible various parameter values are. MLE says: believe the parameter value under which what you actually saw was least surprising. Because products of probabilities are awkward, we almost always maximize the logarithm of the likelihood — turning products into sums without moving the location of the maximum.

Formal Statement

Likelihood and Log-Likelihood

Let be data with joint probability mass or density function depending on a parameter (possibly a vector). The likelihood function is the joint density read as a function of :

1
⟳simply relabel the joint density, holding the observed fixed and letting vary over the parameter space .

If the observations are independent and identically distributed (i.i.d.) with common density , the likelihood factorizes:

2
⟳independence makes the joint density the product of marginals; "identically distributed" makes each factor use the same .

The log-likelihood is

3
⟳take the natural logarithm of [2]; the logarithm of a product is the sum of logarithms.
Symbols: = unknown parameter(s); = parameter space; = the -th observation; = sample size; = the model's density/mass function; = likelihood; = log-likelihood.

Maximum Likelihood Estimator

The maximum likelihood estimator is any parameter value maximizing the likelihood (equivalently the log-likelihood):

4
⟳ is strictly increasing, so it preserves the location of the maximizer — maximizing and maximizing give the same .

When is differentiable and the maximum is interior to , satisfies the likelihood (score) equation:

5
⟳a smooth interior maximum requires the first derivative to vanish (first-order condition) and the second derivative to be negative (second-order condition for a maximum, not a minimum or inflection).

Asymptotic Properties of the MLE

Under regularity conditions (the true lies in the interior of , the model is identifiable, the support of does not depend on , and is sufficiently smooth), the MLE from i.i.d. observations satisfies:

  1. Consistency: as .
  2. Asymptotic normality:
6
⟳Taylor-expand the score about , apply the Central Limit Theorem to the score and the Law of Large Numbers to the (negative) curvature, then divide.

where is the Fisher information per observation,

7
⟳differentiate the identity twice under the integral sign; the score has mean zero, and its variance equals minus the expected curvature.
  1. Asymptotic efficiency: attains the Cramér–Rao lower bound asymptotically — no consistent, asymptotically unbiased estimator has smaller asymptotic variance.

Why It Holds / Derivation

Sketch of Consistency and Asymptotic Normality

Step 1 — Why the maximizer lands on the truth. Define the normalized log-likelihood . By the Law of Large Numbers this converges to . Step 2 — The truth maximizes the limit. Consider , the Kullback–Leibler divergence, which is and equals only when . Hence uniquely maximizes .
8
⟳apply Jensen's inequality to the concave , using .

Since the empirical objective converges to one maximized at , its maximizer converges to .

Step 3 — Expand the score equation. Let be the score. By definition . Taylor-expand about :
9
⟳first-order Taylor expansion of the score function around the true parameter; the remainder vanishes faster under regularity.
Step 4 — Rearrange and rescale. Solving and multiplying by :
10
⟳divide [9] by , isolate , and split the factors so numerator and denominator each have a standard limit.
Step 5 — Apply limit theorems. The numerator is a sum of i.i.d. mean-zero score terms, so by the CLT it converges to . The denominator converges by the LLN to . By Slutsky's theorem the ratio converges to , establishing [6].

Ronald Aylmer Fisher | 1890–1962

The British statistician and geneticist Ronald Fisher introduced the term "likelihood" as distinct from probability and developed maximum likelihood into a coherent theory between 1912 and 1922. His 1922 paper "On the Mathematical Foundations of Theoretical Statistics" defined consistency, efficiency, and sufficiency, and introduced what we now call Fisher information. Fisher argued that likelihood, not posterior probability, was the natural vehicle for inference when no prior is available — a stance that anchored the frequentist tradition. He also founded modern experimental design and population genetics, making him arguably the single most influential figure in 20th-century statistics.

Building Intuition

Imagine you find a coin on the ground and flip it 10 times, getting 7 heads. Ask: "For what bias would this exact outcome be least surprising?" If , seven heads is wildly unlikely; if , it's also somewhat unlikely; somewhere in between the probability of "7 of 10 heads" peaks. MLE finds that peak — here at , exactly the observed fraction. The likelihood is not the probability that (that question requires a prior); it is a ranking of parameter values by how well each explains the data you hold in your hand. The log turns the unwieldy product of ten coin-flip probabilities into a clean sum, and setting its derivative to zero locates the peak.

Likelihood of a coin's bias given 7 heads in 10 flips, peaking at p = 0.7

parameter p (coin bias) L(p) peak: p̂ = 0.7 0 0.7 1

Worked Examples

Bernoulli / Binomial Proportion

Given: independent coin flips yield heads. Model each flip as . Step 1 — Likelihood. . Step 2 — Log-likelihood (drop the constant binomial coefficient):
11
⟳take of the Bernoulli likelihood with , ; the binomial coefficient is constant in .
Step 3 — Differentiate and set to zero:
12
⟳differentiate [11], clear denominators by multiplying through by , and solve the linear equation.
Step 4 — Confirm a maximum: everywhere, so is the maximizer.

Normal Distribution with Unknown Mean and Variance

Given: Five measurements (in cm) of a rod: , modeled as i.i.d. . Step 1 — Log-likelihood:
13
⟳take of the product of Gaussian densities and collect terms.
Step 2 — Solve for : gives
14
⟳the only -dependent term is the sum of squares; its derivative vanishes when equals the sample mean.

Numerically cm.

Step 3 — Solve for : gives
15
⟳treat as a single variable, set the partial derivative to zero, and solve; note the divisor is , not .

Numerically the squared deviations from 10.00 are , summing to , so .

Common Misconceptions

Likelihood is not probability of the parameter. is not the probability that takes a given value. Within the frequentist framework is fixed (not random), so it has no probability distribution. The likelihood is the data's density viewed as a function of ; it need not integrate to 1 over , and a "likelihood of 0.3" carries no probabilistic meaning on its own — only ratios of likelihoods are interpretable. The MLE can be biased. Consistency does not imply unbiasedness. The MLE of normal variance, , has expectation — it systematically underestimates. The familiar unbiased estimator uses in the denominator, but that is not the MLE. MLE optimizes likelihood, not unbiasedness, though the bias vanishes as .

When the MLE Behaves Badly

Consider i.i.d. from the uniform . The density is for and otherwise, so the support depends on — violating a key regularity condition. The likelihood is not differentiable at its maximizer; setting a derivative to zero fails entirely. Here the MLE is , found by direct reasoning (smaller gives zero likelihood; among feasible , is largest at the smallest feasible value). This estimator is biased and not asymptotically normal — it converges at rate , not , and its limiting law is exponential, not Gaussian. The lesson: the smooth asymptotic theory of Theorem [6] assumes a fixed support.

Connections

MLE sits at the center of a web of statistical ideas. Under a flat prior, the MLE coincides with the Maximum A Posteriori Estimation mode, linking it to Bayesian Inference. Minimizing the Kullback-Leibler Divergence between the empirical distribution and the model is equivalent to maximizing likelihood, tying MLE to Information Theory. For the Gaussian linear model, MLE reduces exactly to Ordinary Least Squares. The optimality bound it attains is the Cramér-Rao Lower Bound, expressed through Fisher Information. Likelihood ratios drive the Neyman-Pearson Lemma and the Likelihood Ratio Test, and the broader generalization to non-likelihood objectives is M-Estimation.

Real-World Applications

  • Logistic regression (epidemiology, credit scoring): parameters fit by maximizing the Bernoulli likelihood of binary outcomes — there is no closed form, so iterative Newton–Raphson (IRLS) is used.
  • Phylogenetics (RAxML, PhyML software): evolutionary trees and branch lengths inferred by maximizing the likelihood of observed DNA sequences under a substitution model.
  • GPS positioning: receiver location estimated by maximizing the likelihood of measured satellite signal delays given Gaussian timing noise.
  • Hidden Markov Models (speech recognition, bioinformatics): the Baum–Welch algorithm is an Expectation–Maximization procedure that ascends the likelihood of observed sequences.
  • Econometrics (discrete choice, ARCH/GARCH volatility models): Nobel-recognized work by Daniel McFadden and Robert Engle rests on maximum likelihood fitting.
  • Image reconstruction (PET and SPECT medical scanners): the ML-EM algorithm reconstructs tomographic images by maximizing the Poisson likelihood of detected photon counts.
  • Machine learning: training a neural network classifier with cross-entropy loss is exactly maximizing the likelihood of the labels under the model's predicted class probabilities.

Historical Development

  • 1755–1760 — Thomas Bayes & Roger Cotes: early reasoning about inverting probability to infer causes from effects foreshadows likelihood thinking.
  • 1809 — Carl Friedrich Gauss: in Theoria Motus, derives the method of least squares by assuming the arithmetic mean is the most probable value, implicitly using a likelihood argument for the normal error law.
  • 1812 — Pierre-Simon Laplace: develops large-sample (asymptotic) approximations and the central role of the normal distribution in estimation.
  • 1821 — Gauss: the Gauss–Markov framework refines least-squares estimation, later seen as Gaussian MLE.
  • 1912 — Ronald Fisher: as an undergraduate, proposes maximizing the "absolute probability" of the data — his first formulation of the method.
  • 1922 — Fisher: "On the Mathematical Foundations of Theoretical Statistics" coins likelihood, consistency, efficiency, sufficiency, and information; establishes the modern theory.
  • 1925 — Fisher: Statistical Methods for Research Workers popularizes the method among practicing scientists.
  • 1940s — Harald Cramér & C. R. Rao: prove the Cramér–Rao bound, rigorously establishing the asymptotic efficiency Fisher had asserted.
  • 1977 — Dempster, Laird & Rubin: formalize the Expectation–Maximization (EM) algorithm, making MLE tractable for incomplete-data and latent-variable models.

Subtleties & Limits

Several deep issues qualify the clean asymptotic theory. Non-existence and non-uniqueness: likelihoods can be unbounded (e.g., a Gaussian mixture where one component's variance shrinks to zero, sending the likelihood to infinity), so a global maximizer may not exist; one must seek a sensible local maximum instead. High-dimensional regimes: when the number of parameters grows with (the Neyman–Scott problem), the MLE can be inconsistent. Boundary and singular models: when lies on the boundary of or the Fisher information is singular (common in mixtures and neural networks), the standard -normal limit fails and is replaced by more delicate theory (singular learning theory, Watanabe's work). Computation: finding the global maximum of a non-concave likelihood is generally intractable, so practitioners rely on EM, gradient ascent, or Newton methods that find only local optima — quantifying the gap between local and global solutions in models like deep networks remains an active research frontier.

See Also

Cramér-Rao Lower Bound · Fisher Information · Maximum A Posteriori Estimation · Method of Moments · Ordinary Least Squares · Kullback-Leibler Divergence · Sufficient Statistic · Neyman-Pearson Lemma · Expectation Maximization Algorithm

Before this

Where this leads