Lably
Skip to content

Likelihood-ratio test

Statistical test that compares goodness of fit

  • 5 min read
  • 3 chapters

Related on Lably

Through Statistics, Statistical hypothesis test and Mathematical optimization

The likelihood-ratio test, also known as Wilks test, is the oldest of the three classical approaches to hypothesis testing, together with the Lagrange multiplier test and the Wald test. In fact, the latter two can be conceptualized as approximations to the likelihood-ratio test, and are asymptotically equivalent. In the case of comparing two models each of which has no unknown parameters, use of the likelihood-ratio test can be justified by the Neyman–Pearson lemma. The lemma demonstrates that the test has the highest power among all competitors.

Definition

General

Suppose that we have a statistical model with parameter space Θ. A null hypothesis is often stated by saying that the parameter θ lies in a specified subset Θ0 of Θ. The alternative hypothesis is thus that θ lies in the complement of Θ0, i.e. in Θ∖Θ0, which is denoted by Θ0c. The likelihood ratio test statistic for the null hypothesis H0:θ∈Θ0 is given by:

λLR=−2ln⁡[supθ∈Θ0L(θ)supθ∈ΘL(θ)]

where the quantity inside the brackets is called the likelihood ratio. Here, the sup notation refers to the supremum. As all likelihoods are positive, and as the constrained maximum cannot exceed the unconstrained maximum, the likelihood ratio is bounded between zero and one and the likelihood ratio test statistic between 0 and infinity.

Often the likelihood-ratio test statistic is expressed as a difference between the log-likelihoods λLR=−2[ℓ(θ0)−ℓ(θ^)] where ℓ(θ^)≡ln⁡[supθ∈ΘL(θ)] is the logarithm of the maximized likelihood function L, and ℓ(θ0) is the maximal value in the special case that the null hypothesis is true (but not necessarily a value that maximizes L for the sampled data) and θ0∈Θ0 and θ^∈Θ denote the respective arguments of the maxima and the allowed ranges they're embedded in. Multiplying by −2 ensures mathematically that (by Wilks' theorem) λLR converges asymptotically to being χ²-distributed if the null hypothesis happens to be true. The finite-sample distributions of likelihood-ratio statistics are generally unknown.

The likelihood-ratio test requires that the models be nested – i.e. the more complex model can be transformed into the simpler model by imposing constraints on the former's parameters. Many common test statistics are tests for nested models and can be phrased as log-likelihood ratios or approximations thereof: e.g. the Z-test, the F-test, the G-test, and Pearson's chi-squared test; for an illustration with the one-sample t-test, see below.

If the models are not nested, then instead of the likelihood-ratio test, there is a generalization of the test that can usually be used: for details, see relative likelihood.

Case of simple hypotheses

A simple-vs.-simple hypothesis test has completely specified models under both the null hypothesis and the alternative hypothesis, which for convenience are written in terms of fixed values of a notional parameter θ:

H0:θ=θ0,H1:θ=θ1. In this case, under either hypothesis, the distribution of the data is fully specified: there are no unknown parameters to estimate. For this case, a variant of the likelihood-ratio test is available:

Λ(x)=L(θ0∣x)L(θ1∣x).

Some older references may use the reciprocal of the function above as the definition. Thus, the likelihood ratio is small if the alternative model is better than the null model.

The likelihood-ratio test provides the decision rule as follows:

  • If Λ>c, do not reject H0;
  • If Λ<c, reject H0;
  • If Λ=c, reject H0 with probability q.

The values c and q are usually chosen to obtain a specified significance level α, via the relation qPr(Λ=c∣H0)+Pr(Λ<c∣H0)=α. The Neyman–Pearson lemma states that this likelihood-ratio test is the most powerful among all level α tests for this case.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics