01 / 21
\(\Theta_0\) \(\Theta\)

Likelihood Ratio Tests
& Wilks' Theorem

A foundational framework for hypothesis testing that compares how well data fit under a restricted versus unrestricted model using the likelihood function.

Statistics Graduate Level

What Is a Likelihood Function?

Given observed data \( \mathbf{x} = (x_1, \dots, x_n) \), the likelihood function treats the joint density as a function of the parameter \( \theta \) rather than the data:

$$ L(\theta) = L(\theta \mid \mathbf{x}) = \prod_{i=1}^{n} f(x_i \mid \theta) $$

The Core Idea: Comparing Two Fits

Suppose we want to test \( H_0: \theta \in \Theta_0 \) against \( H_1: \theta \in \Theta \). We compare the best fit under the null to the best fit overall:

Restricted MLE
\( \hat{\theta}_0 = \arg\max_{\theta \in \Theta_0} L(\theta) \): the best parameter value allowed under \( H_0 \).
Unrestricted MLE
\( \hat{\theta} = \arg\max_{\theta \in \Theta} L(\theta) \): the overall best parameter value with no restrictions.

The Likelihood Ratio Statistic

The likelihood ratio test statistic is defined as:

$$ \Lambda(\mathbf{x}) = \frac{\sup_{\theta \in \Theta_0} L(\theta \mid \mathbf{x})}{\sup_{\theta \in \Theta} L(\theta \mid \mathbf{x})} = \frac{L(\hat{\theta}_0)}{L(\hat{\theta})} $$
1
\( 0 \le \Lambda \le 1 \) always, since \( \Theta_0 \subseteq \Theta \).
2
\( \Lambda \approx 1 \): the null model fits almost as well as the full model: fail to reject \( H_0 \).
3
\( \Lambda \approx 0 \): the null model fits much worse: evidence against \( H_0 \).

Visualizing \( \Lambda \) on the Likelihood Curve

\(\theta\) \(L(\theta)\) \(\hat{\theta}\) \(L(\hat{\theta})\) \(\hat{\theta}_0\) \(L(\hat{\theta}_0)\) gap \(\Theta_0\)

The Log-Likelihood Ratio

In practice we work with the log-likelihood ratio, which is more convenient and connects directly to Wilks' theorem:

$$ -2 \ln \Lambda = -2 \bigl[ \ell(\hat{\theta}_0) - \ell(\hat{\theta}) \bigr] = 2 \bigl[ \ell(\hat{\theta}) - \ell(\hat{\theta}_0) \bigr] $$

where \( \ell(\theta) = \ln L(\theta) \) is the log-likelihood function.

Wilks' Theorem: The Main Result

$$ -2 \ln \Lambda \xrightarrow{d} \chi^2_r \quad \text{as } n \to \infty $$
1
\( r = \dim(\Theta) - \dim(\Theta_0) \): the difference in the number of free parameters between the full and null models.
2
Under \( H_0 \): the distribution holds when the null hypothesis is true and regularity conditions are satisfied.
3
Asymptotic: this is a large-sample result. It requires \( n \to \infty \), standard regularity conditions (identifiability, interior point, etc.).

The \( \chi^2 \) Distribution

\(-2\ln\Lambda\) density 0 2 4 6 8 \(r = 1\) \(r = 2\) \(r = 5\) 3.84 rejection region (r=1)

Wald vs LRT vs Score

Wald Test LRT Score (Rao) Test
Requires Unrestricted MLE only Both MLEs Restricted MLE only
Statistic \( \frac{(\hat{\theta} - \theta_0)^2}{\widehat{\text{Var}}} \) \( -2\ln\Lambda \) \( \frac{U(\theta_0)^2}{I(\theta_0)} \)
Null distribution \( \chi^2_r \) \( \chi^2_r \) \( \chi^2_r \)
Advantage Only one optimization Often best power No full MLE needed

How to Apply the LRT: Step by Step

1
Write down the hypotheses. Specify \( H_0: \theta \in \Theta_0 \) and the full parameter space \( \Theta \). Compute \( r = \dim(\Theta) - \dim(\Theta_0) \).
2
Find the unrestricted MLE \( \hat{\theta} \) by maximizing \( L(\theta) \) over all of \( \Theta \). Compute \( \ell(\hat{\theta}) \).
3
Find the restricted MLE \( \hat{\theta}_0 \) by maximizing \( L(\theta) \) subject to the constraint \( \theta \in \Theta_0 \). Compute \( \ell(\hat{\theta}_0) \).
4
Compute the test statistic: \( -2\ln\Lambda = 2[\ell(\hat{\theta}) - \ell(\hat{\theta}_0)] \).
5
Compare to \( \chi^2_r \). Reject \( H_0 \) at level \( \alpha \) if \( -2\ln\Lambda > \chi^2_{r,\alpha} \), or compute a p-value.

Example 1: Testing a Normal Mean

Let \( X_1, \dots, X_n \sim N(\mu, \sigma^2) \) with \( \sigma^2 \) known. Test \( H_0: \mu = \mu_0 \) vs \( H_1: \mu \neq \mu_0 \).

1
Full space: \( \Theta = \mathbb{R} \) (dim 1). Null space: \( \Theta_0 = \{\mu_0\} \) (dim 0). So \( r = 1 \).
2
Unrestricted MLE: \( \hat{\mu} = \bar{X} \).
3
Restricted MLE: \( \hat{\mu}_0 = \mu_0 \) (forced).

Example 2: Poisson Rate Test

Let \( X_1, \dots, X_n \sim \text{Poisson}(\lambda) \). Test \( H_0: \lambda = \lambda_0 \) vs \( H_1: \lambda \neq \lambda_0 \). Here \( r = 1 \).

$$ \ell(\lambda) = \left(\sum x_i\right) \ln \lambda - n\lambda - \sum \ln(x_i!) $$
1
Unrestricted MLE: \( \hat{\lambda} = \bar{X} \).
2
LRT statistic: \( -2\ln\Lambda = 2\bigl[n\bar{X}\ln(\bar{X}/\lambda_0) - n(\bar{X} - \lambda_0)\bigr] \).
3
Decision: reject \( H_0 \) at level \( \alpha = 0.05 \) if \( -2\ln\Lambda > \chi^2_{1, 0.05} = 3.841 \).

Example 3: Nested Regression Models

Consider two regression models. The full model has \( p \) predictors and the reduced model drops \( q \) of them (setting those coefficients to zero).

Full Model
\( Y = \beta_0 + \beta_1 X_1 + \cdots + \beta_p X_p + \varepsilon \)
Parameters: \(p+1\) coefficients, \( \sigma^2 \)
Reduced Model
\( Y = \beta_0 + \beta_1 X_1 + \cdots + \beta_{p-q} X_{p-q} + \varepsilon \)
Parameters: \(p-q+1\) coefficients, \( \sigma^2 \)

Regularity Conditions for Wilks' Theorem

1
Identifiability: different parameter values yield different distributions. \( \theta_1 \neq \theta_2 \implies f(\cdot \mid \theta_1) \neq f(\cdot \mid \theta_2) \).
2
Interior point: the true parameter \( \theta_0 \) lies in the interior of \( \Theta_0 \), not on a boundary.
3
Smoothness: the log-likelihood \( \ell(\theta) \) is at least twice continuously differentiable in \( \theta \).
4
Non-singular Fisher information: the matrix \( I(\theta_0) \) must be positive definite.

Common Mistakes

✕ Wrong Degrees of Freedom
Using the total number of parameters instead of the difference \( r = \dim(\Theta) - \dim(\Theta_0) \). Always count the restriction dimension.
✕ Forgetting the Factor of 2
Computing \( -\ln\Lambda \) instead of \( -2\ln\Lambda \). The factor of 2 is essential for the \( \chi^2 \) approximation to hold.
✕ Boundary Parameters
Applying Wilks' theorem when \( H_0 \) places the parameter on a boundary (e.g., \( \text{variance} = 0 \)). The standard \( \chi^2 \) result does not apply here.

Summary: Key Formulas at a Glance

Concept Formula / Definition
Likelihood Ratio \( \Lambda = L(\hat{\theta}_0) / L(\hat{\theta}) \)
Test Statistic \( -2\ln\Lambda = 2[\ell(\hat{\theta}) - \ell(\hat{\theta}_0)] \)
Wilks' Theorem \( -2\ln\Lambda \xrightarrow{d} \chi^2_r \) under \( H_0 \)
Degrees of Freedom \( r = \dim(\Theta) - \dim(\Theta_0) \)
Decision Rule Reject \( H_0 \) if \( -2\ln\Lambda > \chi^2_{r,\alpha} \)

Question 1 of 5

The likelihood ratio statistic \( \Lambda \) always satisfies:

Question 2 of 5

A full model has 6 free parameters and the null model has 4 free parameters. Under Wilks' theorem, \( -2\ln\Lambda \) is compared to which distribution?

Question 3 of 5

For \( X_1, \dots, X_n \sim N(\mu, \sigma^2_{\text{known}}) \), the LRT of \( H_0: \mu = \mu_0 \) reduces to which classical test?

Question 4 of 5

Which of the following would violate the regularity conditions needed for Wilks' theorem?

Question 5 of 5

You compute \( -2\ln\Lambda = 7.2 \) with \( r = 3 \). Given that \( \chi^2_{3, 0.05} = 7.815 \), what is the decision at the \( \alpha = 0.05 \) level?