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.
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
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 :
Derivation hint: 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:
Derivation hint: independence makes the joint density the product of marginals; "identically distributed" makes each factor use the same . The log-likelihood is
Derivation hint: 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.
The maximum likelihood estimator is any parameter value maximizing the likelihood (equivalently the log-likelihood):
Derivation hint: 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:
Derivation hint: 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).
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:
Derivation hint: 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,
Derivation hint: differentiate the identity twice under the integral sign; the score has mean zero, and its variance equals minus the expected curvature. 3. Asymptotic efficiency: attains the Cramér–Rao lower bound asymptotically — no consistent, asymptotically unbiased estimator has smaller asymptotic variance.
Why It Holds / Derivation
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 .
Derivation hint: 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 :
Derivation hint: 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 :
Derivation hint: 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].
∎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.
Worked Examples
Given: independent coin flips yield heads. Model each flip as .
Step 1 — Likelihood. .
Step 2 — Log-likelihood (drop the constant binomial coefficient):
Derivation hint: take of the Bernoulli likelihood with , ; the binomial coefficient is constant in .
Step 3 — Differentiate and set to zero:
Derivation hint: differentiate [11], clear denominators by multiplying through by , and solve the linear equation.
Step 4 — Confirm a maximum: everywhere, so is the maximizer.
Given: Five measurements (in cm) of a rod: , modeled as i.i.d. .
Step 1 — Log-likelihood:
Derivation hint: take of the product of Gaussian densities and collect terms.
Step 2 — Solve for : gives
Derivation hint: the only -dependent term is the sum of squares; its derivative vanishes when equals the sample mean. Numerically cm.
Step 3 — Solve for : gives
Derivation hint: 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 .
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
Historical Development
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