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.
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:
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:
The Likelihood Ratio Statistic
The likelihood ratio test statistic is defined as:
Visualizing \( \Lambda \) on the Likelihood Curve
The Log-Likelihood Ratio
In practice we work with the log-likelihood ratio, which is more convenient and connects directly to Wilks' theorem:
where \( \ell(\theta) = \ln L(\theta) \) is the log-likelihood function.
Wilks' Theorem: The Main Result
The \( \chi^2 \) Distribution
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
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 \).
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 \).
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).
Parameters: \(p+1\) coefficients, \( \sigma^2 \)
Parameters: \(p-q+1\) coefficients, \( \sigma^2 \)
Regularity Conditions for Wilks' Theorem
Common Mistakes
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?