Likelihood-Ratio, Wald, and Score Tests
Anchor (Master): Lehmann & Romano 2005 Testing Statistical Hypotheses (3rd ed., Springer) Ch. 12 (the large-sample theory of likelihood-ratio, Wald, and Rao score tests) and §3.2 (the GLRT relative to the Neyman-Pearson optimum); Casella & Berger 2002 Statistical Inference §8.2-§8.3, §10.3
Intuition Beginner
You have fit a model to data and you want to ask a yes-or-no question about it: is the true value of some quantity equal to a specific number, or not? You need a single number — a test statistic — that is small when the data agree with the claim and large when they argue against it. This unit is about three general recipes for building that number, recipes that work for almost any model.
Picture the log-likelihood as a hill. Its peak sits over the best-fit value, the one the data prefer most. The claim you are testing points to one particular spot on the horizontal axis. The three recipes all measure, in different ways, how far that claimed spot is from the peak.
The first recipe compares heights: how much lower is the hill at the claimed spot than at its peak? A big drop means the claim fits much worse than the best fit, so you reject it. The second recipe measures horizontal distance: how far is the claimed spot from the peak, scaled by how sharply the hill curves? The third recipe measures slope: how steep is the hill at the claimed spot? At the true peak the slope is flat, so a steep slope at the claim is evidence against it.
These three views — the drop in height, the horizontal distance, and the slope — are three windows onto the same hill, and they usually agree.
Visual Beginner
Figure: a single hill-shaped curve, the log-likelihood, plotted against candidate parameter values. Its peak sits above the best-fit value. A dashed line marks the claimed value being tested. Three measurements are drawn. A vertical arrow shows the drop in height from the peak down to the curve at the claim: the likelihood-ratio view. A horizontal arrow shows the gap from the claim to the peak: the Wald view. A short tangent at the claim shows the slope there: the score view. The flatter the hill, the smaller all three; the sharper the hill, the larger they grow for the same gap.
log-likelihood
| . peak (best fit)
| / \
| / ^ \ height drop = likelihood-ratio view
| slope --> / | \
| (tangent)/ | \
| ./ | \
| /|<-----+ \ horizontal gap = Wald view
| / | claimed \
+-------------------------------> parameter value
^ ^
claimed peak
value (MLE)
Worked example Beginner
A bakery claims its loaves average grams. You weigh loaves and the model is a bell-shaped spread around an unknown true average, with the spread estimated from the data. Your data give a sample average of grams and a sample standard deviation of grams. You want to test the claim "the true average is ."
Step 1. Find the best fit. The best-fit average is simply the sample average, grams. The hill peaks there.
Step 2. Measure the horizontal gap (the Wald view). The claimed value sits grams below the peak. To make this a fair, unit-free number you divide by the standard error, which is the standard deviation divided by the square root of the count: grams. The scaled gap is .
Step 3. Read off the slope view. Here the slope at the claimed value points the same way: the steeper the hill is at , the stronger the push away from it. For this bell-shaped model the slope measurement, scaled the same way, also comes out near , because the hill is close to a clean parabola.
Step 4. Read off the height-drop view. Comparing the height at the peak to the height at gives a drop whose scaled size again lands near for a sample this clean.
What this tells us. A scaled gap of about is on the large side — it would happen by chance only a few times in a hundred if the claim were true — so the data lean against the -gram claim. The lesson is that all three recipes converted the same -gram discrepancy into nearly the same verdict. They are three readings of one hill.
Check your understanding Beginner
Formal definition Intermediate+
Let be i.i.d. from , , with likelihood , log-likelihood , score , and (when it exists) MLE , all as in 45.01.04. Test against , where .
Definition (generalized likelihood-ratio statistic). The generalized likelihood-ratio (GLR) statistic is
where is the MLE constrained to (the restricted MLE) and is the unrestricted MLE. By construction , and small — the null fit far worse than the best fit — is evidence against . The generalized likelihood-ratio test (GLRT) rejects when for a constant chosen to give the desired level. The equivalent log form is the statistic , on which the test rejects for large values. When is simple, , and the GLRT is the Neyman-Pearson likelihood-ratio test of 45.02.01 with the alternative density replaced by its maximized version.
Definition (Wald statistic). Suppose (scalar, for definiteness; the vector case replaces the square by a quadratic form). The Wald statistic standardizes the gap between the MLE and the null by an estimate of the MLE's standard error:
where is the Fisher (or observed) information 45.01.05, the curvature of that fixes the scale. The test rejects for large . Only the unrestricted MLE and the information at it are needed; the model is fit once, under .
Definition (score / Rao / Lagrange-multiplier statistic). With the same , the score statistic evaluates the score at the null and standardizes it by the information at the null:
The test rejects for large . Because at an interior unrestricted maximum, measures how far the null is from satisfying the likelihood equations; it needs the fit only under (no unrestricted maximization), which is its computational advantage. In a constrained problem the score at the restricted MLE is proportional to the Lagrange multiplier of the constraint, giving the test its "Lagrange-multiplier" name.
Counterexamples to common slips
- The GLRT is not the Neyman-Pearson test for composite alternatives. When is composite the GLRT replaces by a maximized likelihood; this need not be most powerful at any single alternative, and the Neyman-Pearson optimality of
45.02.01does not transfer. The GLRT is a general-purpose recipe, not an optimum. - Wald is not invariant to reparametrization; the GLRT is. Testing by Wald can give a different answer than testing for a nonlinear , because the quadratic form changes. The GLR statistic is unchanged by any reparametrization, since suprema of are coordinate-free.
- The score test uses information at the null, the Wald test at the MLE. Swapping them is a common error. Using inside , or inside , breaks the construction's logic (slope-at-null versus distance-from-null) even though the two informations are close when the hypotheses are close.
Key theorem with proof Intermediate+
The signature finite-sample fact is that for the normal location and scale problems the GLRT is an exact, computable test: the GLR statistic is a monotone function of a familiar pivot, so its exact null distribution is known without any large-sample approximation. This is what makes the trinity constructional before it is asymptotic [Casella & Berger §8.2.1].
Theorem (exact GLRT for a normal variance). Let be i.i.d. with both parameters unknown, and test against . Write for the unrestricted variance MLE and . Then the GLR statistic is
a function of the single quantity alone, where . Under , , so the GLRT — reject when — has an exact null distribution, and the rejection region is for constants determined by the level.
Proof. Under the parameter space is , and the unrestricted MLE is by 45.01.04, giving
Under , is fixed and only is free; the restricted MLE is (the mean MLE does not depend on ), so
Forming the ratio, the factors cancel and
the displayed expression. Setting , the map rises on and falls on , peaking at with value ; it is therefore a strictly unimodal function of . Hence is exactly a two-sided region in the statistic . By Cochran's theorem , so under () the statistic exactly, and are chosen from the quantiles to give size (for instance , for the equal-tail version).
Bridge. This exact reduction builds toward the asymptotic theory of 45.04.09: the same statistic , which is finite-sample-exact here through the pivot, has under regularity a common limiting null distribution (Wilks) that appears again in every regular testing problem, and the equal-tail cutoffs are the finite-sample ancestor of that limit. This is exactly the Neyman-Pearson logic of 45.02.01 lifted to a composite problem: where the simple-vs-simple lemma thresholds , the GLRT thresholds the maximized ratio , so the likelihood ratio remains the privileged object and the GLRT generalises the most-powerful test to nested composite hypotheses. The central insight is that the GLR statistic collapses onto a low-dimensional pivot — here the chi-squared variable — whenever the model has the exponential/normal structure, which is the foundational reason the trinity is computable in closed form before any limit is taken. Putting these together, the Wald and score statistics, which curve-fit the same hill at the MLE and at the null respectively, agree with to leading order, and the bridge is that all three are quadratic forms in the score standardized by the information, an identity made exact in the normal case and asymptotic in general.
Exercises Intermediate+
Advanced results Master
The geometry of the trinity: distance, slope, and ratio of one log-likelihood
Three measurements of the gap between the null and the maximum read off the same log-likelihood surface. The likelihood-ratio statistic is the vertical drop in from the unrestricted maximum to the constrained maximum. The Wald statistic is the squared horizontal distance from to measured in the Riemannian metric supplied by the information 45.01.05. The score statistic is the squared length of the gradient of at , again in the information metric. When is exactly quadratic the three agree identically (Exercise 7); in general they are the same number computed by three approximations to the curve — secant drop, tangent-at-the-top, tangent-at-the-null. The information metric is the common standardizer that makes each scale-free and removes the dependence on units of , and it is the reason the three statistics share an asymptotic distribution once the curvature is estimated consistently.
Nested hypotheses, degrees of freedom, and the deviance
For nested models with , the GLR statistic compares two fits differing in free parameters, and is the deviance difference between the constrained and the full model [Casella & Berger §8.2.1]. The exact normal-variance and normal-mean cases above reduce to functions of and pivots, but the deviance organizes the general nested comparison: in exponential-family generalized linear models, where is the model deviance, and the analysis-of-deviance table is the likelihood analogue of analysis of variance. The integer — the codimension of — is the number that becomes the degrees of freedom of the common limiting null distribution; the finite-sample constructions of this unit are the cases where that limit is attained exactly.
Pearson versus deviance: two members of the trinity for goodness of fit
The multinomial goodness-of-fit problem exhibits two of the three constructions side by side. The likelihood-ratio statistic is the deviance (Exercise 5); the score statistic is Pearson's , obtained by standardizing each cell residual by its null variance and ignoring the off-diagonal correlations, which the multinomial information accounts for through the constraint . A Taylor expansion of about gives , so the two agree to second order and diverge only in cells with large relative residuals — is more sensitive to cells where , to cells where . Both are referred to the same reference (with estimated parameters), the asymptotic content of 45.04.09, but their finite-sample behaviour differs, and the choice between them is a recurring applied question.
The score test's structural advantage and the union-intersection bridge
The score statistic requires only the restricted fit , never the unrestricted MLE, which is decisive when the alternative model is hard to fit but the null is simple — adding a parameter to a fitted model and asking whether it is needed, the Lagrange-multiplier test of econometrics [Rao 1948]. Dually, the Wald test requires only the unrestricted fit, convenient when many nulls are to be tested against one fitted model. The GLRT requires both fits and is the most computationally expensive but the only reparametrization-invariant member (Exercise 8). The GLRT also connects to the union-intersection construction: a composite null written as an intersection yields a test rejecting when any component likelihood ratio is extreme, which for the normal linear model recovers the - and -based GLRTs and ties the trinity to the confidence-set duality that organizes the chapter.
Synthesis. The central insight is that the likelihood-ratio, Wald, and score statistics are three readings of a single log-likelihood surface — the drop in height, the squared distance to the maximum, and the squared slope at the null — each standardized by the information metric, and this single geometric picture is exactly what makes them coincide for a quadratic log-likelihood and agree to first order in general. The foundational reason the likelihood ratio is privileged is the same one that drives 45.02.01: thresholding a maximized ratio generalises the Neyman-Pearson most-powerful test from simple-versus-simple to nested composite hypotheses, and the GLRT inherits the coordinate-freeness that the ratio enjoys while the Wald form does not. Putting these together, the normal-variance and normal-mean GLRTs reduce to exact and pivots, the multinomial deviance and Pearson's realize the LR and score members for goodness of fit, and all of these appear again in the asymptotic theory of 45.04.09, where the codimension becomes the degrees of freedom of the common chi-squared limit. The score test's null-only fit is dual to the Wald test's alternative-only fit, and the bridge is the information matrix 45.01.05, the Riemannian metric whose role as the common standardizer is what turns three different finite-sample constructions into one asymptotically pivotal family and what carries this optimality into the dual confidence sets of the chapter.
Full proof set Master
Proposition 1 (GLR statistic bounds and the log form). For any , , and , with iff a constrained maximizer is also an unrestricted maximizer.
Proof. Since , , and both suprema are nonnegative as suprema of a nonnegative function, so the ratio lies in (the denominator is positive whenever the data have positive likelihood somewhere). Taking logarithms, , hence . Equality holds iff , i.e. the constrained maximum equals the global maximum, which happens iff some attains .
Proposition 2 (exact GLRT for a normal mean, variance unknown, reduces to the -statistic). Let be i.i.d. with both unknown, and test . Then is a strictly decreasing function of where and , and under , , so the GLRT is the two-sided -test.
Proof. The unrestricted MLE is with , giving . Under the mean is fixed at and the variance MLE is , giving . The ratio is
Using , write . Since and , we get , a strictly decreasing function of , hence of . Therefore . Under , independent of (Cochran), so . The GLRT is the exact two-sided -test.
Proposition 3 (the score is centered and information-scaled under the null). Under the usual regularity conditions permitting differentiation under the integral, and , so the score statistic is a squared standardized score with null mean equal to its dimension.
Proof. For a single observation, for all ; differentiating under the integral, , the mean-zero score identity. Summing over the i.i.d. sample, . Differentiating the identity once more gives , i.e. , the two equivalent forms of the per-observation information; over the sample 45.01.05. Thus has null mean and identity covariance, so has , its dimension.
Proposition 4 (Pearson's is the multinomial score statistic). For the multinomial goodness-of-fit problem with null fully specified, the score statistic for equals Pearson's with .
Proof. Parametrize by with . The log-likelihood is , with score components for . The Fisher information for the multinomial is , with inverse . A direct computation of at — substituting and the inverse — collapses, after using , to . Writing gives . The Lagrange-multiplier form makes the same computation transparent: imposing as a constraint, the multiplier is proportional to the standardized residual vector, whose squared information-norm is .
Proposition 5 (exact unimodality of the variance GLRT region). The map on is strictly increasing on , strictly decreasing on , with maximum ; consequently in the normal-variance problem is an interval complement with .
Proof. Take logarithms: , so , which is positive for , zero at , negative for . Hence strictly increases then strictly decreases, with a unique maximum . For the superlevel set is an open interval straddling (by strict unimodality and ), so its complement . Since with under , the cutoffs translate to two-tailed critical values.
Connections Master
The asymptotic theory of these three statistics
45.04.09is the direct continuation: under regularity and an interior null of codimension , , , and each converge in null distribution to (Wilks' theorem) and are first-order equivalent, with the finite-sample and pivots of this unit's normal cases as the exact instances. That unit supplies the limit; this unit supplies the constructions and the exact special cases it specializes.The maximum-likelihood machinery
45.01.04is the substrate every statistic is built on: the GLRT needs both the restricted and unrestricted MLEs, the Wald test needs the unrestricted MLE and the information at it, and the score test needs only the score at the null, which vanishes at the unrestricted MLE by the likelihood equations. The exponential-family moment-matching identity of that unit is what makes the normal, Poisson, and multinomial statistics here collapse to closed form.The Neyman-Pearson lemma
45.02.01is the optimality benchmark the GLRT generalizes: the simple-vs-simple lemma thresholds the likelihood ratio and is most powerful, while the GLRT thresholds the maximized ratio for composite nested hypotheses, retaining the likelihood ratio as the privileged object but trading exact optimality for general applicability.Fisher information and the Cramér-Rao bound
45.01.05provide the standardizing metric: the Wald statistic uses and the score statistic uses , the two information evaluations whose equivalence under the null (the mean-zero, information-covariance score identity) makes all three statistics asymptotically pivotal. The information's role as the Riemannian metric on the parameter space is what gives the trinity its distance-slope-ratio geometry.
Historical & philosophical context Master
The three constructions entered the literature within fifteen years of one another, each from a different motivation. The generalized likelihood-ratio principle was set out by Jerzy Neyman and Egon Pearson in 1928 as the natural extension of their most-powerful-test program to composite hypotheses, and its large-sample chi-squared null distribution was established by Samuel S. Wilks in 1938 [Wilks 1938] (Ann. Math. Statist. 9, 60-62), the result now bearing his name. Abraham Wald introduced the test based on the maximum-likelihood estimator and its asymptotic variance in 1943 [Wald 1943] (Trans. Amer. Math. Soc. 54, 426-482), as part of his broader decision-theoretic and large-sample program. C. R. Rao introduced the score test in 1948 [Rao 1948] (Proc. Cambridge Phil. Soc. 44, 50-57), motivated by the wish to test a hypothesis using only the fit under the null; the same statistic was rediscovered in econometrics as the Lagrange-multiplier test, where the score at the restricted estimate is read as the multiplier of the constraint.
The recognition that the three are first-order equivalent — distinct finite-sample statistics sharing one asymptotic null law — is due to the post-war large-sample theory codified by Erich Lehmann and later by Lehmann and Joseph Romano, whose Testing Statistical Hypotheses gives the modern treatment of the trinity and its equivalences [Lehmann & Romano §12.4]. The persistence of all three in practice reflects genuine differences: the likelihood-ratio statistic is reparametrization-invariant but needs two fits, the Wald statistic needs one fit at the alternative but is coordinate-dependent, and the score statistic needs one fit at the null and is the tool of choice when the alternative is hard to estimate. Pearson's chi-squared statistic of 1900, predating all three, turns out to be the multinomial score statistic, a historical convergence that Rao's 1948 framework made explicit.
Bibliography Master
@book{casellaberger2002statistical,
author = {Casella, George and Berger, Roger L.},
title = {Statistical Inference},
edition = {2nd},
publisher = {Duxbury},
year = {2002}
}
@book{lehmannromano2005testing,
author = {Lehmann, Erich L. and Romano, Joseph P.},
title = {Testing Statistical Hypotheses},
edition = {3rd},
series = {Springer Texts in Statistics},
publisher = {Springer},
year = {2005}
}
@article{wilks1938large,
author = {Wilks, Samuel S.},
title = {The large-sample distribution of the likelihood ratio for testing composite hypotheses},
journal = {The Annals of Mathematical Statistics},
volume = {9},
number = {1},
pages = {60--62},
year = {1938}
}
@article{wald1943tests,
author = {Wald, Abraham},
title = {Tests of statistical hypotheses concerning several parameters when the number of observations is large},
journal = {Transactions of the American Mathematical Society},
volume = {54},
number = {3},
pages = {426--482},
year = {1943}
}
@article{rao1948large,
author = {Rao, C. Radhakrishna},
title = {Large sample tests of statistical hypotheses concerning several parameters with applications to problems of estimation},
journal = {Proceedings of the Cambridge Philosophical Society},
volume = {44},
number = {1},
pages = {50--57},
year = {1948}
}
@article{neymanpearson1928use,
author = {Neyman, Jerzy and Pearson, Egon S.},
title = {On the use and interpretation of certain test criteria for purposes of statistical inference},
journal = {Biometrika},
volume = {20A},
pages = {175--240, 263--294},
year = {1928}
}