Algorithm Search⌘K

Theoremcore

Wilks' theorem

Also called Wilks' phenomenon.

Under regularity and a true null, twice the log likelihood ratio tends to a chi-squared law with degrees of freedom equal to the number of constrained parameters.

Wilks' theorem gives the large-sample null distribution of the likelihood ratio test. If the null hypothesis fixes rr of the kk parameters of a regular model, or more generally restricts the parameter to a smooth surface of dimension k−rk - r, then twice the log of the maximized likelihood ratio converges in distribution to χr2\chi^2_r when the null is true. The limit does not depend on the model, on the true parameter or on the parameters left free, which is why one table serves every likelihood ratio test. The theorem fails at the edges of its conditions: on the boundary of the parameter space, and when a parameter is not identified under the null.

Statement

Let X1,…,XnX_1, \dots, X_n be iid with density f(x;θ)f(x; \theta), θ∈Θ⊆Rk\theta \in \Theta \subseteq \mathbb R^k. Let ℓ(θ)=∑ilog⁡f(Xi;θ)\ell(\theta) = \sum_i \log f(X_i; \theta) be the log-likelihood, Un(θ)=∇ℓ(θ)U_n(\theta) = \nabla \ell(\theta) the score of the sample and I(θ)I(\theta) the Fisher information of one observation. Let θ^\hat\theta maximize ℓ\ell over Θ\Theta and θ^0\hat\theta_0 maximize ℓ\ell over the null set Θ0\Theta_0. The likelihood ratio statistic is

Λn=2(ℓ(θ^)−ℓ(θ^0))=−2log⁡sup⁡θ∈Θ0L(θ;X)sup⁡θ∈ΘL(θ;X).\Lambda_n = 2\left(\ell(\hat\theta) - \ell(\hat\theta_0)\right) = -2\log\frac{\sup_{\theta \in \Theta_0} L(\theta; X)}{\sup_{\theta \in \Theta} L(\theta; X)}.

Conditions. Let θ0\theta_0 be the true value.

  1. Θ\Theta is an open subset of Rk\mathbb R^k.
  2. Θ0\Theta_0 is a smooth submanifold of dimension k−rk - r, with 1≤r≤k1 \le r \le k. Concretely, near θ0\theta_0 there are an open set H⊆Rk−rH \subseteq \mathbb R^{k-r} and a twice continuously differentiable map g:H→Θg: H \to \Theta with Θ0=g(H)\Theta_0 = g(H) near θ0\theta_0, θ0=g(η0)\theta_0 = g(\eta_0), and a k×(k−r)k \times (k - r) Jacobian J=Dg(η0)J = Dg(\eta_0) of full rank k−rk - r. The case r=kr = k is a simple null, Θ0={θ0}\Theta_0 = \{\theta_0\}.
  3. θ0\theta_0 is an interior point of Θ\Theta, and η0\eta_0 is an interior point of HH.
  4. The model is regular at θ0\theta_0, as needed for the asymptotic normality of the MLE: the model is identifiable, the support of ff does not depend on θ\theta, log⁡f(x;θ)\log f(x; \theta) has three continuous derivatives in θ\theta that are bounded near θ0\theta_0 by a function M(x)M(x) with Eθ0M(X)<∞E_{\theta_0} M(X) < \infty, and I(θ0)I(\theta_0) is finite and positive definite.
  5. θ^\hat\theta and θ^0\hat\theta_0 are consistent for θ0\theta_0 under θ0\theta_0.

Theorem (Wilks, 1938). Under conditions 1 to 5, when θ0∈Θ0\theta_0 \in \Theta_0 is true,

Λn→dχr2(n→∞).\Lambda_n \xrightarrow{d} \chi^2_r \qquad (n \to \infty).

So the test that rejects when Λn≥χr,1−α2\Lambda_n \ge \chi^2_{r, 1-\alpha}, the upper α\alpha point of χr2\chi^2_r, has size that tends to α\alpha. The size is only near α\alpha for finite nn.

In plain words

You fit a model twice: once with all its knobs free, and once with some knobs held at the values the null claims. The free fit is always at least as good. The question is whether it is better by more than chance would allow. The theorem says how much better it gets by chance alone, when the null is true and the sample is large. The gain, measured on a log scale and doubled, behaves like a sum of squares of independent bell-curve draws, one for each knob that the null held fixed. It does not matter what the model is or what the other knobs are. So the same table works for every such comparison, provided the model is smooth and the held values are not at an edge of what is allowed.

Proof

We prove the case of one parameter with a simple null, k=r=1k = r = 1 and Θ0={θ0}\Theta_0 = \{\theta_0\}, in full, using the asymptotic normality of the MLE. Then we sketch the general case and give a precise source.

The scalar case. Then θ^0=θ0\hat\theta_0 = \theta_0. Consistency and condition 3 put θ^\hat\theta in an open interval around θ0\theta_0 with probability tending to 1, and there ℓ′(θ^)=0\ell'(\hat\theta) = 0. On this event, Taylor's theorem with the Lagrange remainder gives a point θ∗\theta^* between θ0\theta_0 and θ^\hat\theta with

ℓ(θ0)=ℓ(θ^)+ℓ′(θ^)(θ0−θ^)+12ℓ′′(θ∗)(θ0−θ^)2=ℓ(θ^)+12ℓ′′(θ∗)(θ^−θ0)2.\ell(\theta_0) = \ell(\hat\theta) + \ell'(\hat\theta)(\theta_0 - \hat\theta) + \tfrac12 \ell''(\theta^*)(\theta_0 - \hat\theta)^2 = \ell(\hat\theta) + \tfrac12 \ell''(\theta^*)(\hat\theta - \theta_0)^2.

So

Λn=−ℓ′′(θ∗)/nI(θ0)⋅(nI(θ0) (θ^−θ0))2.\Lambda_n = \frac{-\ell''(\theta^*)/n}{I(\theta_0)} \cdot \left(\sqrt{n I(\theta_0)}\,(\hat\theta - \theta_0)\right)^2.

For the first factor, −ℓ′′(θ0)/n-\ell''(\theta_0)/n is a mean of iid terms with expectation I(θ0)I(\theta_0), so it converges in probability to I(θ0)I(\theta_0) by the law of large numbers. By condition 4 and the mean value theorem, ∣ℓ′′(θ∗)−ℓ′′(θ0)∣/n≤∣θ∗−θ0∣⋅1n∑iM(Xi)|\ell''(\theta^*) - \ell''(\theta_0)|/n \le |\theta^* - \theta_0| \cdot \frac1n\sum_i M(X_i), which is op(1)⋅Op(1)=op(1)o_p(1) \cdot O_p(1) = o_p(1). So the first factor converges in probability to 1. For the second factor, nI(θ0)(θ^−θ0)→N(0,1)\sqrt{n I(\theta_0)}(\hat\theta - \theta_0) \to N(0, 1) in distribution by the asymptotic normality of the MLE, so its square converges to χ12\chi^2_1 by the continuous mapping theorem. By Slutsky's theorem, the product converges to χ12\chi^2_1. The event where ℓ′(θ^)=0\ell'(\hat\theta) = 0 fails has probability tending to 0, so it does not change the limit. □\square

The general case (sketch). Write Zn=Un(θ0)/nZ_n = U_n(\theta_0)/\sqrt n, which converges to N(0,I)N(0, I) with I=I(θ0)I = I(\theta_0) by the central limit theorem. The same Taylor argument, now in kk dimensions, gives

2(ℓ(θ^)−ℓ(θ0))=Zn⊤I−1Zn+op(1).2\left(\ell(\hat\theta) - \ell(\theta_0)\right) = Z_n^\top I^{-1} Z_n + o_p(1).

Under the null, the restricted model is a regular model in η∈H\eta \in H with score J⊤Un(g(η))J^\top U_n(g(\eta)) and information J⊤IJJ^\top I J at η0\eta_0. Applied to it, the same argument gives

2(ℓ(θ^0)−ℓ(θ0))=Zn⊤J(J⊤IJ)−1J⊤Zn+op(1).2\left(\ell(\hat\theta_0) - \ell(\theta_0)\right) = Z_n^\top J (J^\top I J)^{-1} J^\top Z_n + o_p(1).

Subtract, and put Yn=I−1/2ZnY_n = I^{-1/2} Z_n, which converges to N(0,Ik)N(0, I_k):

Λn=Yn⊤(Ik−P) Yn+op(1),P=I1/2J(J⊤IJ)−1J⊤I1/2.\Lambda_n = Y_n^\top (I_k - P)\,Y_n + o_p(1), \qquad P = I^{1/2} J (J^\top I J)^{-1} J^\top I^{1/2}.

The matrix PP is symmetric and P2=PP^2 = P, so it is the orthogonal projection onto the column space of I1/2JI^{1/2} J, which has dimension k−rk - r. Then Ik−PI_k - P is a projection of rank rr, and for Y∼N(0,Ik)Y \sim N(0, I_k) the quadratic form Y⊤(Ik−P)YY^\top (I_k - P) Y is a sum of rr squares of independent standard normals, that is χr2\chi^2_r. The continuous mapping theorem and Slutsky's theorem finish the argument. A complete proof of this form, under weaker conditions (differentiability in quadratic mean), is in van der Vaart (1998), Chapter 16. Wilks (1938) proved the case where Θ0\Theta_0 fixes rr coordinates of θ\theta.

Consequences

  • Degrees of freedom count constraints. The number rr is dim⁡Θ−dim⁡Θ0\dim\Theta - \dim\Theta_0: the number of free parameters lost under the null. For the multinomial with mm cells and fully specified cell probabilities, r=m−1r = m - 1, and the likelihood ratio statistic is the G-statistic 2∑jOjlog⁡(Oj/Ej)2\sum_j O_j \log(O_j/E_j). For independence in an a×ba \times b table, r=(a−1)(b−1)r = (a - 1)(b - 1), as for the chi-squared test of independence.
  • A model-free calibration. The limit does not depend on the nuisance parameters. This is the property that the alias "Wilks' phenomenon" names, and it also holds for some nonparametric likelihoods, such as the empirical likelihood.
  • Equivalence with the Wald and score statistics. The same expansion shows that the Wald statistic and the score statistic both equal Yn⊤(Ik−P)Yn+op(1)Y_n^\top(I_k - P)Y_n + o_p(1) under the null. So the three tests have the same χr2\chi^2_r limit and differ by op(1)o_p(1).
  • Local power. Under alternatives θn=θ0+h/n\theta_n = \theta_0 + h/\sqrt n, the statistic converges to a noncentral χr2(δ)\chi^2_r(\delta), where δ\delta is the squared length of the component of I1/2hI^{1/2}h orthogonal to the column space of I1/2JI^{1/2}J. This gives approximate power and sample sizes.
  • Deviance and model choice. In generalized linear models, differences of deviance between nested models are likelihood ratio statistics, and Wilks' theorem calibrates them. The penalty 2k2k of the Akaike information criterion comes from the same expansion.

How fast the limit is reached. The theorem only says that the size tends to α\alpha. Two exact computations show how far it can be for small nn.

For a binomial count with p0=1/2p_0 = 1/2, Λn=2[Klog⁡(K/(np0))+(n−K)log⁡((n−K)/(n(1−p0)))]\Lambda_n = 2[K\log(K/(np_0)) + (n - K)\log((n - K)/(n(1 - p_0)))], and the exact probability of Λn≥3.8415\Lambda_n \ge 3.8415 under the null is a finite sum:

nn 10 20 50 100 1000
exact size, p0=0.5p_0 = 0.5 0.1094 0.0414 0.0649 0.0569 0.0537

The size moves above and below 0.05 because KK is discrete, and it settles slowly.

For a normal mean with unknown variance, Λn=nlog⁡(1+T2/(n−1))\Lambda_n = n\log(1 + T^2/(n - 1)), where TT is the Student t statistic. This is an exact monotone function of ∣T∣|T|, so the exact size of the nominal 5% test is P(∣tn−1∣≥(n−1)(e3.8415/n−1))P(|t_{n-1}| \ge \sqrt{(n - 1)(e^{3.8415/n} - 1)}):

nn 3 5 10 20 50 200
exact size 0.1502 0.0979 0.0703 0.0593 0.0536 0.0509
E0ΛnE_0\Lambda_n 1.8411 1.4019 1.1725 1.0803 1.0308 1.0076
size of Λn/E0Λn\Lambda_n / E_0\Lambda_n 0.0485 0.0497 0.0499 0.0500 0.0500 0.0500

The last row is the Bartlett correction (Bartlett, 1937): divide Λn\Lambda_n by its null mean, which has the form r(1+b/n+O(n−2))r(1 + b/n + O(n^{-2})). Here T2/(n−1)T^2/(n - 1) is a ratio A/BA/B of independent χ12\chi^2_1 and χn−12\chi^2_{n-1} variables, so E0Λn=n(ψ(n/2)−ψ((n−1)/2))=1+32n+O(n−2)E_0\Lambda_n = n\left(\psi(n/2) - \psi((n - 1)/2)\right) = 1 + \tfrac{3}{2n} + O(n^{-2}), with ψ\psi the digamma function. Under regularity, the corrected statistic has a χr2\chi^2_r law with error O(n−2)O(n^{-2}) instead of O(n−1)O(n^{-1}). The corrected sizes in the table are computed for each nn; the O(n−2)O(n^{-2}) rate is the general theorem.

Tightness

The boundary. Let X1,…,XnX_1, \dots, X_n be iid N(μ,1)N(\mu, 1) with Θ=[0,∞)\Theta = [0, \infty), and test μ=0\mu = 0. Then μ^=max⁡(Xˉ,0)\hat\mu = \max(\bar X, 0) and Λn=nXˉ2 1{Xˉ>0}\Lambda_n = n\bar X^2\,\mathbf 1\{\bar X > 0\}. Under the null nXˉ∼N(0,1)\sqrt n\bar X \sim N(0, 1), so Λn\Lambda_n is 0 with probability 1/21/2 and χ12\chi^2_1 with probability 1/21/2, exactly, for every nn. The limit is the mixture 12χ02+12χ12\tfrac12\chi^2_0 + \tfrac12\chi^2_1, not χ12\chi^2_1. Using the χ12\chi^2_1 cut 3.84153.8415 gives size 0.0250.025. The correct 5% cut is χ1,0.902=2.7055\chi^2_{1, 0.90} = 2.7055. Chernoff (1954) found the general form: on the boundary, the limit is the distance of a normal vector to a cone. Self and Liang (1987) gave the mixtures of chi-squared laws for variance components and other common cases. Condition 1 or 3 fails here.

A parameter not identified under the null. Test one normal component against a mixture of two, or no change against a change at an unknown time. Under the null, the location of the second component, or the time of change, does not appear in the model. Condition 4 fails, the statistic is the supremum of a random process over this parameter, and its limit is not χ2\chi^2. For a normal mixture whose second mean can be any real number, the likelihood ratio statistic is not even bounded in probability. Davies (1977) gave bounds for the tail of such suprema.

The number of parameters grows. If the model has a nuisance parameter for each pair of observations (the Neyman-Scott problem), the MLE is not consistent and the chi-squared limit fails. Condition 5 fails.

Misspecification. If the true distribution is not in the model, the limit is a weighted sum of independent χ12\chi^2_1 variables, with weights from the sandwich of the information and the variance of the score. The plain χr2\chi^2_r reference is then wrong.

Discreteness and small samples. The tables above show sizes from 0.04 to 0.15 for a nominal 0.05. For small nn, use an exact test, a Bartlett correction or a parametric bootstrap of Λn\Lambda_n.

History

Neyman and Pearson proposed the likelihood ratio criterion in 1928. Samuel S. Wilks proved in 1938, in a three-page note in the Annals of Mathematical Statistics, that −2log⁡λ-2\log\lambda has a limiting chi-squared distribution with as many degrees of freedom as the hypothesis fixes parameters. Wald (1943) extended the theory and proved the asymptotic equivalence of the likelihood ratio test with his own test. Chernoff (1954) treated the boundary case, Bartlett (1937) had already proposed the scale correction for a test of equal variances, and Lawley (1956) gave the general form of the correction. Self and Liang (1987) and Davies (1977, 1987) worked out the main nonstandard cases.

References

  1. S. S. Wilks, The large-sample distribution of the likelihood ratio for testing composite hypotheses, Annals of Mathematical Statistics 9(1) (1938), pages 60 to 62, the chi-squared limit with h degrees of freedom for h fixed parameters
  2. A. W. van der Vaart, Asymptotic Statistics, Cambridge University Press, 1998, Chapter 16 (likelihood ratio tests, the chi-squared limit for smooth hypotheses and the case of a boundary)
  3. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 10.3.1 (the asymptotic distribution of the likelihood ratio test statistic)
  4. E. L. Lehmann and Joseph P. Romano, Testing Statistical Hypotheses, third edition, Springer, 2005, Part II (large-sample theory), the chapters on likelihood ratio, Wald and Rao score tests in quadratic mean differentiable families
  5. Steven G. Self and Kung-Yee Liang, Asymptotic properties of maximum likelihood estimators and likelihood ratio tests under nonstandard conditions, Journal of the American Statistical Association 82(398) (1987), pages 605 to 610, the mixture of chi-squared laws when the true value is on the boundary
  6. Robert B. Davies, Hypothesis testing when a nuisance parameter is present only under the alternative, Biometrika 64(2) (1977), pages 247 to 254, the failure of the chi-squared limit when a parameter is not identified under the null

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/H9N9RF/text.yaml