Consistency, Fisher information and the Cramér–Rao bound.
Why is maximum likelihood the default almost everywhere? Because as the sample grows it homes in on the truth, with a Gaussian error whose size the data reveal, and no regular estimator does better. This lesson proves those facts from the score and the Fisher information, derives the three classical tests, and maps exactly where the theory breaks.
What you’ll learn
Define the score and the Fisher information, and prove that the score has mean zero and covariance I(θ)=−E[∇2logp].
Prove consistency of the MLE from the KL divergence and a uniform law of large numbers, and state the conditions it needs.
Derive n(θ^n−θ0)→N(0,I(θ0)−1), prove the Cramér–Rao bound, and explain why superefficiency does not dethrone the MLE.
Derive the Wald, score and likelihood-ratio tests and Wilks' theorem, and recognize the settings where they fail.
Score and Fisher information
DerivationTwo identities
Eθ[s(θ;x)]=∫∇θp(x∣θ)dx=∇θ∫p(x∣θ)dx=0
Differentiate ∫p(x∣θ)dx=1 under the integral sign, using ∇p=p∇logp. The score has mean zero at the true parameter:
∫∇θ2logp(x∣θ)p(x∣θ)dx+∫ss⊤p(x∣θ)dx=0
Differentiate ∫s(θ;x)p(x∣θ)dx=0 once more, by the product rule:
I(θ)=Covθ[s(θ;x)]=−Eθ[∇θ2logp(x∣θ)]
So the information is both the covariance of the score and the expected curvature of the log-likelihood: a sharply peaked log-likelihood means a very informative observation.
Model
Parameter
Fisher information per observation
Bernoulli
p
1/(p(1−p))
Poisson
rate λ
1/λ
Exponential
rate λ
1/λ2
N(μ,σ2)
(μ,σ2)
diag(1/σ2,1/(2σ4))
Logistic regression
w
E[q(1−q)xx⊤], q=σ(w⊤x)
A fair coin is the least informative Bernoulli (I=4 at p=21): outcomes near certainty pin p down faster. In logistic regression, points the model already classifies confidently (q near 0 or 1) carry little information.
The information is also the local geometry of the model. Expanding the log-density to second order, the first-order term vanishes by the mean-zero identity, leaving DKL(pθ∥pθ+δ)=21δ⊤I(θ)δ+o(∥δ∥2): where I is small, nearby parameters give nearly indistinguishable distributions. Under a reparameterization θ=θ(η) with Jacobian J=∂θ/∂η, the information transforms as Iη=J⊤IθJ, which is why the natural gradient I−1∇ℓ does not depend on the parameterization (Mirror Descent & Natural Gradient).
Consistency
Let the data be i.i.d. from p(⋅∣θ0), and write Mn(θ)=n1ℓn(θ) and M(θ)=Eθ0[logp(x∣θ)]. The MLE maximizes Mn, and for each fixed θ the law of large numbers gives Mn(θ)→M(θ). Consistency needs two more ingredients: the limit M must have a unique, well-separated maximum at θ0, and the convergence must be uniform.
DerivationThe truth maximizes the expected log-likelihood
Jensen's inequality for the concave log, integrating over the support of pθ0:
M(θ0)−M(θ)=DKL(pθ0∥pθ)≥0
The gap is a KL divergence, which is zero only when the two distributions coincide. If the model is identifiable (θ=θ0⇒pθ=pθ0), θ0 is the unique maximizer of M.
Split the gap in M into three pieces. The first and third are bounded by the uniform deviation, the middle one by the near-maximizing property:
Pr(θ^n−θ0≥ε)≤Pr(M(θ0)−M(θ^n)≥η)→0
By well-separation, θ^n−θ0≥ε forces M(θ^n)≤M(θ0)−η for some η>0, an event whose probability tends to zero by the first step:
Uniform convergence holds, for instance, when Θ is compact, logp(x∣θ) is continuous in θ, and supθ∣logp(x∣θ)∣ is integrable (a uniform law of large numbers); continuity plus compactness and identifiability then make the maximum well separated. Wald (1949) proved consistency of the MLE under conditions of this kind. When the log-likelihood is concave, as for exponential families in their natural parameters, compactness can be dropped: pointwise convergence of concave functions is automatically uniform on compact sets.
Predict before you look
In the Neyman–Scott design the true variance is σ2=4. As the number of pairs grows without bound, what value does the MLE of σ2 converge to?
Show the answer
2
σ^2=4n1∑i(xi1−xi2)2→42σ2=2σ2=2. More data never helps, because every new pair brings a new unknown mean along with it. The bias-corrected 2σ^2 is consistent.
Asymptotic normality and efficiency
DerivationProof sketch: linearize the score
0=Un(θ^n)=Un(θ0)+∇2ℓn(θ~n)(θ^n−θ0)
With probability tending to one the consistent MLE is an interior stationary point, Un(θ^n)=0. Expand the score around θ0 (mean-value form, row by row, with θ~n between the two):
n(θ^n−θ0)=[−n1∇2ℓn(θ~n)]−1n1Un(θ0)
Rearrange and scale by n:
n1Un(θ0)dN(0,I(θ0)),−n1∇2ℓn(θ~n)pI(θ0)
The score is a sum of i.i.d. terms with mean 0 and covariance I(θ0), so the central limit theorem applies. The bracket converges to I(θ0) by the law of large numbers, consistency and the domination condition:
n(θ^n−θ0)dN(0,I−1II−1)=N(0,I(θ0)−1)
Slutsky's lemma combines the two. Here the "bread" and the "meat" are the same matrix; when the model is wrong they differ, and the sandwich A−1BA−1 survives (When the Model Is Wrong).
In practice the standard errors come from the inverse of the observed information Jn=−∇2ℓn(θ^n) or of nI(θ^n); Efron & Hinkley (1978) argued that the observed version is usually the more relevant one. For a smooth function g, the delta method gives n(g(θ^n)−g(θ0))→N(0,∇g⊤I−1∇g). For a coin, I(p)−1=p(1−p), so the 95% interval is about p^±1.96p^(1−p^)/n; with a flat prior the Bayesian credible interval has nearly the same endpoints, a first instance of the Bernstein–von Mises theorem (Bayesian Inference).
Differentiate EθT=g(θ) under the integral sign. Since the score has mean zero, the result is a covariance:
g′(θ)2≤Varθ(T)Varθ(Un(θ))=Varθ(T)nI(θ)
The Cauchy–Schwarz inequality, with VarθUn=nI(θ), gives the bound:
Varθ(T)=nI(θ)g′(θ)2⟺T−g(θ)∝Un(θ)
Equality requires T−g(θ)=a(θ)Un(θ) almost surely, which forces an exponential family with T as its sufficient statistic (Exponential Families). The sample mean of Poisson counts attains the bound λ/n exactly; most estimators attain it only as n→∞, which is what asymptotic efficiency means.
Wald, score and likelihood-ratio tests
To test H0:θ=θ0 in a d-parameter model, the asymptotics above suggest three statistics. The Wald statistic (Wald, 1943) measures how far the MLE lies from θ0 in units of its standard error; the score statistic (Rao, 1948) measures how steep the log-likelihood is at θ0, and needs no fit under the alternative; the likelihood ratio compares the heights of the log-likelihood:
Under H0 all three converge in distribution to χd2. For a composite null that imposes r restrictions, θ0 is replaced by the restricted MLE and the limit is χr2: Wilks' theorem (Wilks, 1938).
DerivationWilks' theorem for a simple null
ℓn(θ0)=ℓn(θ^)+21(θ0−θ^)⊤∇2ℓn(θ~)(θ0−θ^)
Expand ℓn(θ0) around the MLE, where the gradient vanishes:
Λ=n(θ^−θ0)⊤[−n1∇2ℓn(θ~)]n(θ^−θ0)
Rearrange into a quadratic form in n(θ^−θ0), whose middle matrix converges to I(θ0):
Λdz⊤I(θ0)z∼χd2
With z∼N(0,I−1) the limit, z⊤Iz=I1/2z2 is a sum of d independent squared standard normals. The same expansion shows W−Λ→0 and S−Λ→0 in probability under H0.
Statistic
Value
p-value (χ12)
Wald, in p
0.6⋅0.4/100(0.6−0.5)2=4.17
0.041
Wald, in log-odds η
1/(100⋅0.6⋅0.4)(log1.5)2=3.95
0.047
Score
0.5⋅0.5/100(0.6−0.5)2=4.00
0.046
Likelihood ratio
2[60log0.50.6+40log0.50.4]=4.03
0.045
60 heads in 100 flips, testing H0:p=21. All four reject at 5%, and they agree to first order. The Wald statistic alone changes when the same hypothesis is written on another scale (η=0 instead of p=21), because it measures distance in parameter coordinates. The score and likelihood-ratio statistics are invariant.
Inverting a test gives a confidence region. Profile-likelihood intervals{θ:2[ℓn(θ^)−maxψℓn(θ,ψ)]≤3.84} (nuisance parameters ψ maximized out) inherit the likelihood ratio's invariance and respect the parameter space. Wald intervals θ^±1.96se are cheaper but can be badly asymmetric in coverage, and can even leave the parameter space: a Wald interval for a probability can extend below zero.
Where the asymptotics fail
Failure
Example
What happens instead
True value on the boundary
testing that a variance component is zero (no random effect)
For one boundary parameter, Λ→21χ02+21χ12 (Chernoff, 1954; Self & Liang, 1987). The 5% critical value is 2.71, not 3.84.
Support depends on θ
Uniform(0,θ), MLE maxixi
n(θ−θ^)/θ→Exp(1): error of order 1/n, not 1/n, and Cramér–Rao does not apply.
Singular information, non-identifiability
number of mixture components, neural networks, reduced-rank models
Λ is not χ2, and posterior and BIC asymptotics change (Watanabe, 2009; Bayesian Model Selection).
Parameters growing with n
Neyman–Scott, many fixed effects
The MLE can be inconsistent.
Dimension proportional to n
logistic regression with d/n→κ>0
The MLE overestimates effect sizes, its variance exceeds I−1/n, and Λ tends to a rescaled χ2 (Sur & Candès, 2019). With no signal and κ>21 the data are typically separable and the MLE does not exist.
Each row breaks one assumption of the proofs: an interior parameter, a fixed support, a nonsingular I, a fixed parameter space, or a fixed dimension.
Check your understanding
You test whether a random-effect variance is zero with the likelihood ratio and the usual χ12 critical value 3.84. What is the test's actual size in large samples?
5%, as intended
About 2.5%: the test is conservative
About 10%: the test rejects too often
Undefined, because the likelihood ratio is negative on the boundary
Show the answer
B. About 2.5%: the test is conservative
Under the null, half the time the unconstrained maximum would be a negative variance; the constrained MLE then sits at zero and Λ=0. So Λ→21χ02+21χ12 and Pr(Λ>3.84)→21⋅0.05=0.025. Using the mixture's critical value, 2.71, restores 5% and gains power.
Key takeaways
The score ∇logp has mean zero, and its covariance, the Fisher information, equals the expected negative Hessian of the log-likelihood. Locally, DKL(pθ∥pθ+δ)≈21δ⊤Iδ.
The truth maximizes the expected log-likelihood (the gap is a KL divergence); with identifiability, a well-separated maximum and a uniform law of large numbers the MLE is consistent. When the number of parameters grows with n (Neyman–Scott) it can be inconsistent.
Linearizing the score gives n(θ^n−θ0)→N(0,I−1). Cramér–Rao, VarT≥g′2/(nI), makes this optimal among unbiased estimators; Hájek's convolution theorem makes it optimal among regular ones, superefficiency notwithstanding.
The Wald, score and likelihood-ratio statistics are all asymptotically χr2 under the null (Wilks); they agree to first order, but only the score and likelihood-ratio statistics are invariant to reparameterization.
The theory breaks at boundaries (mixtures of χ2), with parameter-dependent supports (1/n rates), singular models, growing numbers of parameters, and dimensions proportional to n.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Question 1
A fair coin is flipped n=400 times. What is the asymptotic standard deviation of the MLE p^?
0.0025
0.025
0.05
0.25
Show the answer
B.0.025
I(p)=1/(p(1−p))=4 at p=21, so Varp^≈1/(nI)=1/1600 and the standard deviation is 1/40=0.025. Here the asymptotic formula is exact, since Varp^=p(1−p)/n for every n.
Question 2
Which unbiased estimator attains the Cramér–Rao bound exactly, for every sample size?
The sample median, for the mean of a Gaussian
s2=n−11∑i(xi−xˉ)2, for the variance of a Gaussian with unknown mean
The sample mean, for the rate λ of Poisson counts
nn+1maxixi, for θ in Uniform(0,θ)
Show the answer
C. The sample mean, for the rate λ of Poisson counts
Varxˉ=λ/n, and 1/(nI(λ))=λ/n. Equality holds because the score ∑ixi/λ−n is a linear function of xˉ, the exponential-family condition.
Question 3
You test H0:p=21 for a coin, then test the same hypothesis written as η=0 for the log-odds η=log1−pp. Which statistic can give a different value?
The likelihood-ratio statistic
The score statistic
None: equivalent hypotheses always give equal statistics
The Wald statistic
Show the answer
D. The Wald statistic
The Wald statistic measures the distance θ^−θ0 in the chosen coordinates, and a nonlinear change of coordinates distorts it: 4.17 on the p scale versus 3.95 on the log-odds scale for 60 heads in 100. The likelihood ratio compares likelihood heights, which do not depend on labels, and the score statistic is invariant because the score and the information transform with the same Jacobian.
Further reading
A. W. van der Vaart, Asymptotic Statistics (Cambridge University Press, 1998), chapters 5, 8 and 16.
A. Wald, "Note on the consistency of the maximum likelihood estimate," Annals of Mathematical Statistics 20(4), 595–601 (1949).
C. R. Rao, "Information and the accuracy attainable in the estimation of statistical parameters," Bulletin of the Calcutta Mathematical Society 37, 81–91 (1945).
S. S. Wilks, "The large-sample distribution of the likelihood ratio for testing composite hypotheses," Annals of Mathematical Statistics 9(1), 60–62 (1938).
P. Sur & E. J. Candès, "A modern maximum-likelihood theory for high-dimensional logistic regression," Proceedings of the National Academy of Sciences 116(29), 14516–14525 (2019).