STATISTICS GRADUATE LEVEL • HYPOTHESIS TESTING

Likelihood Ratio Tests & Wilks' Theorem — Likelihood ratio tests and Wilks' theorem (intro)

A unified framework for hypothesis testing grounded in the ratio of maximized likelihoods.

Historical Context & Motivation

The development of rigorous hypothesis testing in the early twentieth century was driven by a fundamental question: given a statistical model, how can we systematically determine whether a simpler explanation (the null hypothesis) is adequate, or whether the data demand a more complex model? Before the likelihood ratio test (LRT) was formalized, practitioners relied on ad hoc procedures or tests tailored to specific distributions, lacking a unifying principle. The LRT emerged from the broader maximum likelihood revolution, providing a test construction method that applies whenever a likelihood function can be written down, regardless of the particular parametric family involved.

1900–1912
Foundations of Likelihood
Karl Pearson introduces the χ² goodness-of-fit test (1900), and R.A. Fisher begins developing the concept of likelihood as the central object for statistical inference, setting the stage for likelihood-based test construction.
1928
Neyman–Pearson Lemma
Jerzy Neyman and Egon Pearson publish their foundational lemma, proving that the simple likelihood ratio is the most powerful test for simple-versus-simple hypotheses, establishing optimality of ratio-based test statistics.
1938
Wilks' Asymptotic Result
Samuel S. Wilks proves that, under regularity conditions and H₀, −2 log Λ converges in distribution to a chi-squared random variable, providing the large-sample null distribution needed for practical use of the LRT.
1940s–1960s
Generalization & Multivariate Extensions
Researchers extend LRT methodology to multivariate settings, contingency tables, and mixed models. The LRT becomes a workhorse of applied statistics, connecting disparate tests under one roof.
Modern Era
Computational & High-Dimensional Challenges
With advances in computing, LRTs are routinely applied in complex models (GLMs, mixed effects, latent variable models), while new research addresses settings where classical Wilks' theorem fails—boundary hypotheses and high-dimensional regimes.

The central question that Wilks' theorem addresses is eminently practical: once we compute the likelihood ratio statistic, how do we obtain a p-value without resorting to simulation or exact distribution theory for every specific model? By establishing a universal asymptotic reference distribution, Wilks converted the LRT from a powerful but case-by-case technique into a general-purpose testing framework applicable across parametric statistics.

Core Principles & Definitions

The likelihood ratio test is built on a deceptively simple idea: compare how well the data are explained under the null hypothesis versus the full (unrestricted) model. The comparison takes the form of a ratio of maximized likelihoods, and the resulting statistic encodes precisely how much explanatory power is lost when we impose the null constraints. To set the stage, we define the key objects and then identify the principles that make the LRT so broadly useful.

1

Parametric Likelihood

Given data x and a model with parameter θ ∈ Θ, the likelihood function L(θ | x) = f(x | θ) measures the plausibility of each parameter value. The MLE θ̂ maximizes L over the full parameter space Θ.
2

Null & Alternative Parameter Spaces

The null hypothesis H₀ restricts θ to a subspace Θ₀ ⊂ Θ, while H₁ allows θ to range over all of Θ. The dimensionality difference dim(Θ) − dim(Θ₀) = r determines the degrees of freedom in Wilks' theorem.
3

The Likelihood Ratio Statistic Λ

Λ = sup_{θ∈Θ₀} L(θ) / sup_{θ∈Θ} L(θ). Since Θ₀ ⊂ Θ, we always have 0 ≤ Λ ≤ 1. Values of Λ near 0 indicate the null model fits much worse than the unrestricted model, providing evidence against H₀.
4

Wilks' Theorem (Asymptotic Null Distribution)

Under H₀ and regularity conditions, −2 log Λ →d χ²(r) as n → ∞, where r = dim(Θ) − dim(Θ₀). This universal chi-squared calibration lets us compute approximate p-values without deriving exact distributions.
5

Regularity Conditions

Wilks' theorem requires identifiability, an interior null parameter point, a smooth (twice-differentiable) log-likelihood, and that the Fisher information matrix is positive definite. These conditions mirror those needed for MLE asymptotic normality.
KEY TAKEAWAY
Think of the likelihood ratio test like a model-comparison fuel gauge. The unrestricted MLE represents the best possible fit (a full tank), while the restricted MLE is the best fit under H₀ (a partial fill). The ratio Λ tells you what fraction of the tank remains after imposing the null constraints. If the gauge drops too low—as judged by the chi-squared reference distribution—you conclude the null's restrictions are incompatible with the data. Wilks' theorem gives you the calibration markings on the gauge, telling you where "too low" begins for any sample size that is large enough.

Visual Explanation

The diagram shows the two optimization steps of the LRT. The unrestricted MLE θ̂ maximizes the likelihood over the full parameter space Θ (left), while the restricted MLE θ̂₀ maximizes only over the null subspace Θ₀ (right). Their ratio Λ is then transformed via −2 log(·) into a test statistic whose null distribution is asymptotically χ²(r) by Wilks' theorem.

The diagram above captures the logical flow of the LRT procedure. You begin by fitting the model twice: once without constraints (obtaining θ̂ and the maximized likelihood L(θ̂)) and once under the null hypothesis (obtaining θ̂₀ and L(θ̂₀)). Because the null space Θ₀ is a subset of Θ, the restricted maximum can never exceed the unrestricted one, guaranteeing that Λ lies in [0, 1]. Taking −2 log Λ converts values near 1 (small evidence against H₀) to values near 0, and values near 0 (strong evidence against H₀) to large positive numbers. Wilks' theorem then tells us that this transformed statistic, under H₀ and with a large enough sample, behaves like a chi-squared random variable whose degrees of freedom equal the number of restrictions imposed by the null.

Mathematical Framework

We now formalize the likelihood ratio test and state Wilks' theorem with its regularity conditions. Let X₁, X₂, …, Xₙ be i.i.d. random variables from a distribution with density or mass function f(x | θ), where θ ∈ Θ ⊆ ℝᵖ. The null hypothesis H₀: θ ∈ Θ₀ restricts the parameter to a subset Θ₀ of dimension p − r, where r is the number of independent constraints.

LIKELIHOOD RATIO STATISTIC
Λ(x) = sup{θ ∈ Θ₀} L(θ | x) / sup{θ ∈ Θ} L(θ | x) = L(θ̂₀ | x) / L(θ̂ | x)
L(θ | x) = ∏ᵢ f(xᵢ | θ) is the likelihood; θ̂ is the unrestricted MLE; θ̂₀ is the MLE under H₀. Since Θ₀ ⊆ Θ, we have 0 ≤ Λ ≤ 1.
LOG-LIKELIHOOD RATIO TEST STATISTIC
−2 log Λ = −2 [ ℓ(θ̂₀) − ℓ(θ̂) ] = 2 [ ℓ(θ̂) − ℓ(θ̂₀) ]
ℓ(θ) = log L(θ) is the log-likelihood. The statistic −2 log Λ is always ≥ 0 and measures the log-likelihood drop when the null constraints are imposed.
WILKS' THEOREM
Under H₀ and regularity conditions: −2 log Λ →_d χ²(r) as n → ∞
r = dim(Θ) − dim(Θ₀) is the number of independent restrictions imposed by H₀. The convergence is in distribution, and →d denotes convergence in distribution. Regularity conditions include: (1) θ₀ lies in the interior of Θ; (2) the Fisher information matrix I(θ) is positive definite; (3) standard smoothness of f(x | θ).

The proof sketch of Wilks' theorem rests on a second-order Taylor expansion of the log-likelihood around the unrestricted MLE θ̂. Near θ̂, the log-likelihood is approximately quadratic: ℓ(θ) ≈ ℓ(θ̂) − ½(θ − θ̂)ᵀ I(θ̂)(θ − θ̂), where I(θ̂) is the observed information matrix. Substituting both θ̂ and θ̂₀ into this expansion, one can show that −2 log Λ reduces asymptotically to a quadratic form in a normal vector, which by definition is chi-squared. The dimension r emerges because the null constrains exactly r components (or r independent linear combinations) of the parameter, and the remaining p − r components are free under both hypotheses and cancel in the difference.

DECISION RULE
Reject H₀ at significance level α if −2 log Λ > χ²_{r, 1−α}
χ²r, 1−α is the (1 − α) quantile of the chi-squared distribution with r degrees of freedom. Equivalently, the p-value is P(χ²(r) ≥ observed −2 log Λ).

The Chi-Squared Reference Distribution

Understanding how the asymptotic chi-squared distribution arises—and what the degrees of freedom r represent—is essential for correctly applying the LRT. In practice, the degrees of freedom count the number of free parameters "lost" when we move from the full model to the null model. For example, testing whether three means are all equal (H₀: μ₁ = μ₂ = μ₃) versus unrestricted means imposes r = 2 independent constraints, so −2 log Λ is compared to χ²(2). The following diagram illustrates chi-squared densities for several values of r and shows how the rejection region shifts.

Chi-squared densities for r = 1, r = 3, r = 5, and r = 8. The dashed red line marks the critical value for r = 5 at α = 0.05. More restrictions (higher r) shift the distribution rightward, requiring larger observed statistics to reject H₀.

As seen in the diagram, the shape of the chi-squared distribution depends heavily on the degrees of freedom r. When r = 1 (a single restriction, such as testing whether one parameter equals a specified value), the density is a steeply decreasing curve concentrated near zero. As r increases, the density becomes more symmetric and bell-shaped, with its mode shifting to the right at r − 2. This behavior has a practical consequence: tests with many restrictions (large r) require correspondingly large values of −2 log Λ to achieve significance, reflecting the fact that it becomes increasingly unlikely for all restrictions to be binding simultaneously by chance alone.

Selected chi-squared critical values for common significance levels
Degrees of Freedom (r)χ² Critical Value (α = 0.05)χ² Critical Value (α = 0.01)
13.8416.635
25.9919.210
37.81511.345
511.07015.086
1018.30723.209

Worked Example: Testing a Normal Mean

Suppose we observe X₁, X₂, …, Xₙ i.i.d. ~ N(μ, σ²), where both μ and σ² are unknown. We wish to test H₀: μ = μ₀ versus H₁: μ ≠ μ₀. The full parameter space is Θ = {(μ, σ²) : μ ∈ ℝ, σ² > 0} (dim = 2), and the null parameter space is Θ₀ = {(μ₀, σ²) : σ² > 0} (dim = 1), so r = 2 − 1 = 1. Let us work through this with concrete numbers: n = 25, X̄ = 5.4, s² = 4.0, and μ₀ = 5.0.

Likelihood Ratio Test for a Normal Mean (σ² Unknown)
1
Step 1 — Write the Log-LikelihoodThe log-likelihood for the normal model is ℓ(μ, σ²) = −(n/2) log(2π) − (n/2) log(σ²) − (1/(2σ²)) Σ(xᵢ − μ)². We can decompose the sum of squares: Σ(xᵢ − μ)² = Σ(xᵢ − X̄)² + n(X̄ − μ)² = (n − 1)s² + n(X̄ − μ)².
2
Step 2 — Find the Unrestricted MLEMaximizing ℓ over all (μ, σ²) yields θ̂ = (X̄, σ̂²) where σ̂² = (1/n)Σ(xᵢ − X̄)² = (n − 1)s²/n. Numerically, σ̂² = (24 × 4.0)/25 = 3.84. The maximized log-likelihood is ℓ(θ̂) = −(n/2) log(2π) − (n/2) log(σ̂²) − n/2.
3
Step 3 — Find the Restricted MLE (under H₀)Under H₀: μ = μ₀ = 5.0, we maximize ℓ only over σ². This gives σ̂₀² = (1/n)Σ(xᵢ − μ₀)² = (1/n)[(n − 1)s² + n(X̄ − μ₀)²] = [(24)(4.0) + 25(0.4)²]/25 = [96 + 4]/25 = 4.00. The maximized log-likelihood under H₀ is ℓ(θ̂₀) = −(n/2) log(2π) − (n/2) log(σ̂₀²) − n/2.
4
Step 4 — Compute −2 log Λ−2 log Λ = −2[ℓ(θ̂₀) − ℓ(θ̂)] = −2{−(n/2) log(σ̂₀²) − (−(n/2) log(σ̂²))} = n × log(σ̂₀² / σ̂²). Substituting: −2 log Λ = 25 × log(4.00 / 3.84) = 25 × log(1.04167) = 25 × 0.04082 = 1.020.
−2 log Λ = 1.020
5
Step 5 — Compare to χ²(1) Critical ValueAt α = 0.05, the critical value is χ²₁,₀.₉₅ = 3.841. Since 1.020 < 3.841, we fail to reject H₀. The data do not provide sufficient evidence at the 5% level to conclude that μ differs from 5.0. For reference, the p-value is P(χ²(1) ≥ 1.020) ≈ 0.312.
p-value ≈ 0.312 — do not reject H₀.
💡 Connection to the t-Test
In the special case of testing a single normal mean with unknown variance, −2 log Λ is a monotone function of the squared t-statistic t² = n(X̄ − μ₀)² / s². For n = 25, t² = 25 × 0.16 / 4.0 = 1.0. The LRT rejection region is equivalent to |t| > t₂₄,₀.₉₇₅, recovering the familiar two-sided t-test. This illustrates how the LRT, applied mechanically, often recovers classical tests as special cases.

Strengths, Limitations & Comparison with Other Tests

The LRT is one member of a trio of asymptotically equivalent testing procedures in regular parametric models: the likelihood ratio test, the Wald test, and the score (Lagrange multiplier) test. All three are based on the maximum likelihood framework, and under H₀ with regularity conditions, each yields a test statistic that converges to the same χ²(r) distribution. However, they differ in computational requirements, finite-sample behavior, and sensitivity to parametrization, making each more convenient in different settings.

Comparison of the three asymptotically equivalent testing paradigms
FeatureLikelihood Ratio TestWald TestScore Test
RequiresBoth θ̂ and θ̂₀ (two optimizations)Only θ̂ (unrestricted MLE)Only θ̂₀ (restricted MLE)
Parametrization invarianceYes — Λ is invariant to reparametrizationNo — depends on the scale of θYes — based on the score, which transforms correctly
Finite-sample behaviorGenerally well-behaved; often closest to exact testsCan be liberal (reject too often) in small samplesTends to be conservative in small samples
Computational costTwo full MLE fitsOne full MLE fit + information matrixOne restricted MLE fit + score evaluation
When preferredModel comparison, nested models, moderate nUnrestricted MLE easy, restricted MLE hardRestricted MLE easy, unrestricted MLE hard (e.g., testing for additional variables)
KEY TAKEAWAY
The LRT, Wald test, and score test are like three roads to the same summit. They all converge asymptotically, but each starts from a different base camp. The LRT examines the terrain at both the restricted and unrestricted peaks. The Wald test stands only at the unrestricted peak and asks, 'Is the null far below me?' The score test stands at the restricted peak and asks, 'Is the slope urging me to move away?' For large samples, all three reach the same verdict; for small samples, the LRT often provides the most reliable finite-sample behavior.

A key limitation of the LRT arises when Wilks' regularity conditions are violated. Common situations include testing a parameter on the boundary of the parameter space (e.g., H₀: σ² = 0 in a variance-components model), testing in the presence of nuisance parameters that exist only under the alternative (as in mixture models), and high-dimensional settings where the number of parameters grows with n. In these cases, −2 log Λ may converge to a mixture of chi-squared distributions, a non-standard distribution, or may not converge at all, and specialized theory or simulation-based calibration is needed.

Connections to Advanced Theory

The likelihood ratio test occupies a central position in the broader architecture of statistical inference. Its connections extend in several directions: toward information-theoretic model selection, toward Bayesian testing, and toward modern high-dimensional statistics. Understanding these links helps contextualize why the LRT has endured as a core technique, and where researchers have needed to go beyond it.

Classical LRT vs. advanced extensions and alternatives
Classical LRT / Wilks' TheoremAdvanced Extensions
−2 log Λ → χ²(r) under H₀Bartlett correction: multiply −2 log Λ by a factor c(n) to improve the χ² approximation in finite samples
Fixed-dimensional parameter (dim Θ constant)High-dimensional LRT: when p/n → γ ∈ (0, 1), the test statistic requires a different normalization and converges to a normal distribution (random matrix theory results)
Interior null parameter pointBoundary testing: Self & Liang (1987) show −2 log Λ can converge to a mixture such as ½χ²(0) + ½χ²(1) when H₀ places θ on the boundary of Θ
Model comparison via hypothesis test (p-value)Information criteria (AIC, BIC): AIC = −2ℓ(θ̂) + 2p can be viewed as a penalized version of the LRT statistic, shifting from hypothesis testing to model selection
Frequentist frameworkBayesian model comparison via Bayes factors, which are integrated (rather than maximized) likelihood ratios—replacing point estimation with full posterior computation

A particularly elegant connection is between the LRT and the Akaike Information Criterion (AIC). When comparing two nested models, AIC penalizes the larger model's log-likelihood by its additional number of parameters. The LRT asks whether the improvement in log-likelihood is "large enough" relative to a χ² threshold, while AIC asks whether it is large enough to offset the penalty for model complexity. Both are rooted in the same likelihood machinery, but AIC is designed for prediction whereas the LRT is designed for inference about parameters. As you advance in your study of statistics, you will see that these connections—between testing, estimation, and model selection—form an interconnected web that underlies modern data analysis.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the likelihood ratio Λ must always satisfy 0 ≤ Λ ≤ 1. What does a value of Λ very close to 1 imply about the null hypothesis? What does a value near 0 imply?
PROBLEM 2BASIC CALCULATION
You are testing H₀ against H₁ using a likelihood ratio test. You compute the maximized log-likelihoods: ℓ(θ̂) = −142.3 and ℓ(θ̂₀) = −146.7. The null hypothesis imposes r = 3 restrictions. Compute the LRT statistic −2 log Λ and determine whether you reject H₀ at α = 0.05. (Use χ²₃,₀.₉₅ = 7.815.)
PROBLEM 3INTERMEDIATE
Let X₁, …, Xₙ be i.i.d. Poisson(λ). Derive the likelihood ratio statistic for testing H₀: λ = λ₀ versus H₁: λ ≠ λ₀. Express −2 log Λ in terms of n, X̄, and λ₀. Then evaluate numerically for n = 50, X̄ = 4.6, λ₀ = 4.0, and determine the test outcome at α = 0.05.
PROBLEM 4APPLIED
A researcher fits a logistic regression model with 8 predictors (Model 1: ℓ₁ = −187.4) and a reduced model with 5 of those predictors (Model 0: ℓ₀ = −192.6). She wants to test H₀: the three omitted predictors have coefficients equal to zero. Perform the LRT, state the degrees of freedom, and give the test decision at α = 0.01.
PROBLEM 5CRITICAL THINKING
Consider a random-effects model where the null hypothesis is H₀: σ²_u = 0 (the random-effect variance is zero). The parameter σ²_u lies on the boundary of the parameter space under H₀. Explain why Wilks' theorem does not apply in its standard form here, describe what the actual asymptotic distribution of −2 log Λ looks like, and discuss how you would correctly calibrate the test.

Summary

The likelihood ratio test provides a universal, principled method for comparing a null model to a richer alternative by forming the ratio Λ = L(θ̂₀) / L(θ̂) of maximized likelihoods. The transformed statistic −2 log Λ measures the log-likelihood cost of imposing the null constraints, and Wilks' theorem establishes that, under H₀ and standard regularity conditions, this statistic converges in distribution to χ²(r) as n → ∞, where r = dim(Θ) − dim(Θ₀) is the number of restrictions imposed by the null hypothesis.

The LRT is parametrization-invariant and often recovers classical tests (t-tests, F-tests, χ² tests) as special cases. It is asymptotically equivalent to the Wald test and the score test, but frequently exhibits superior finite-sample performance. Care must be taken when regularity conditions fail—particularly in boundary testing and high-dimensional settings—where the χ² approximation may break down, requiring modified distributional results or simulation-based calibration.

Varsity Tutors • Statistics Graduate Level • Likelihood Ratio Tests & Wilks' Theorem