Tutorials › Generalized Linear Models › Likelihood-Ratio Tests For Multinomial Effects

Multinomial Logit Models · Tutorial 501 of 981

Likelihood-Ratio Tests For Multinomial Effects

Compare a full multinomial logit model with a nested reduced model, calculate the test statistic and degrees of freedom, and interpret the chi-square test.

Intermediate 12 min read

What You'll Learn

  • Define a likelihood-ratio test for nested baseline-category logit models.
  • Calculate the likelihood-ratio statistic from maximized log-likelihoods.
  • Count the degrees of freedom for removing a predictor with category-specific coefficients.
  • Apply the chi-square reference test under regularity conditions.
  • Recognize when nesting, model fit, or regularity problems undermine the test.

Why Compare Nested Multinomial Models?

A predictor in a baseline-category logit model can have a different coefficient for each nonbaseline response category. To ask whether the predictor contributes to the model, the relevant null hypothesis is therefore usually a joint one: all its category-specific coefficients are zero. A likelihood-ratio test compares the best fit allowed by that null hypothesis with the best fit of the larger model.

The comparison is useful because it assesses the predictor’s contribution to the model as a whole, on the likelihood scale. The test does not ask whether each separate coefficient is significant, and its degrees of freedom depend on both the number of response categories and the number of predictor parameters being removed.

Models, Likelihoods, and the Test Statistic

Let the response have \(J\) categories, with category \(J\) as the baseline. For observation \(i\), a baseline-category logit model specifies \(\log\{P(Y_i=j)/P(Y_i=J)\}=x_i^\mathsf{T}\beta_j\) for \(j=1,\ldots,J-1\). The resulting category probabilities are positive and sum to one. For grouped data with counts \(y_{ij}\) and total \(m_i\), the likelihood is the product of the multinomial probabilities across independent groups; for individual observations, it is the corresponding product of category probabilities. In either case, let \(\ell\) denote the log-likelihood.

Definition: A nested likelihood-ratio test compares a full model with a reduced model whose parameter space is contained in the full model’s parameter space. Fit both models by maximum likelihood to the same response observations (or groups). If their maximized log-likelihoods are \(\hat\ell_F\) and \(\hat\ell_R\), respectively, the likelihood-ratio statistic is $$ G^2=2(\hat\ell_F-\hat\ell_R). $$

Because every parameter value allowed by the reduced model is allowed by the full model, maximizing over the full parameter space cannot give a smaller likelihood. Thus \(G^2\geq 0\). A large value means that the reduced model fits substantially worse relative to the full model, after accounting for the difference in their numbers of parameters through the reference distribution.

Degrees of freedom for removing a predictor: Suppose the predictor contributes \(q\) independent design columns and has a separate coefficient for each of the \(J-1\) nonbaseline categories. Testing that all those coefficients are zero imposes \((J-1)q\) restrictions. The likelihood-ratio test therefore has \((J-1)q\) degrees of freedom under the regularity conditions below. If the restrictions are dependent or the model is rank-deficient, use the rank of the restrictions, not a naive column count.

Worked Example: Testing a Continuous Predictor

Suppose an outcome has three categories, with category 3 as the baseline. A full model includes an intercept and age, with a separate age slope for categories 1 and 2. The reduced model removes age but keeps both intercepts. On the same data, suppose maximum-likelihood fitting gives \(\hat\ell_F=-102.40\) and \(\hat\ell_R=-107.005\).

Age contributes \(q=1\) coefficient to each of \(J-1=2\) logits. The null hypothesis imposes \(2\times1=2\) restrictions. The statistic is \(G^2=2\{-102.40-(-107.005)\}=2(4.605)=9.21\).

The reference distribution is \(\chi^2_2\), so the upper-tail p-value is \(P(\chi^2_2\geq9.21)=\exp(-9.21/2)=\exp(-4.605)\approx0.0100\). At the 0.05 level, reject the null that both age slopes are zero. This is evidence that the full model improves fit; it does not say that the effect has a particular practical size.

Why the Chi-Square Reference Distribution Applies

The chi-square calibration is asymptotic: it is justified by regular likelihood theory as the amount of independent information grows. A standard form of Wilks’ theorem says that, under the null hypothesis, twice the difference between the full and reduced maximized log-likelihoods converges in distribution to a chi-square random variable whose degrees of freedom equal the number of independent restrictions.

Theorem (Wilks’ theorem, nested-model form): Suppose the true parameter is in the reduced model and is an interior point of a correctly specified, identifiable, finite-dimensional model. Assume the log-likelihood is sufficiently smooth near that parameter, the Fisher information is finite and nonsingular, and the maximum-likelihood estimators are consistent and have the usual root-\(n\) asymptotic behavior. For a reduced model defined by \(r\) independent smooth restrictions, under standard regularity conditions, $$ 2(\hat\ell_F-\hat\ell_R)\xrightarrow{d}\chi^2_r. $$ For the baseline-category predictor test above, \(r=(J-1)q\) when those restrictions are independent.

Here is the likelihood argument behind the result. Write the full parameter as \(\theta\in\mathbb R^d\), let \(\theta_0\) be its true null value, and let the reduced model’s local parameter directions form a linear subspace \(S\) of dimension \(d-r\). Under the stated smoothness and information conditions, the local log-likelihood has the quadratic expansion $$ \ell(\theta_0+h/\sqrt n)-\ell(\theta_0) =h^\mathsf{T}Z_n-\tfrac12h^\mathsf{T}Ih+o_p(1), $$ uniformly for bounded \(h\), where \(Z_n\) converges in distribution to \(N(0,I)\) and \(I\) is the positive-definite Fisher information per unit of information. Consistency and root-\(n\) behavior ensure that the relevant maximizers lie in this local region. Maximizing the quadratic over all \(h\) gives \(\tfrac12 Z_n^\mathsf{T}I^{-1}Z_n\); maximizing it over \(h\in S\) gives the same quadratic maximum restricted to that subspace. Their difference, multiplied by two, is the squared length of the component of a standard normal vector orthogonal to the whitened subspace \(I^{1/2}S\). That orthogonal complement has dimension \(r\), so the squared length converges to \(\chi^2_r\). This yields the stated reference distribution. \(\square\)

For multinomial logit regression, regularity requires more than having a numerical optimizer return estimates. The model must be identifiable, the information for the tested parameters must not be singular, and the true probabilities must be in the interior rather than on a boundary. Separation or severe sparsity can prevent ordinary maximum-likelihood estimates from behaving regularly. In such cases, the chi-square approximation may be unreliable.

Worked Example: Removing a Two-Parameter Factor

Consider a four-category response and a full baseline-category logit model containing a three-level treatment factor, coded using two independent contrast columns. The factor has separate coefficients for each nonbaseline category. Suppose \(\hat\ell_F=-183.7\) and, after removing the treatment contrasts while retaining the other terms, \(\hat\ell_R=-189.1\).

There are \(J-1=3\) nonbaseline logits and \(q=2\) treatment columns, so the null imposes \(3\times2=6\) restrictions. The statistic is \(G^2=2\{-183.7-(-189.1)\}=2(5.4)=10.8\).

For six degrees of freedom, the upper-tail probability is approximately \(0.0948\). For example, the even-degree chi-square tail is \(\exp(-10.8/2)\{1+10.8/2+(10.8/2)^2/2\} =\exp(-5.4)(1+5.4+14.58)\approx0.0948\). At the 0.05 level, this comparison does not reject the joint null. It does not establish that treatment has no effect; it indicates that this test does not provide sufficient evidence against that null at the chosen level.

Worked Example: Removing a Three-Column Predictor

Suppose a three-category outcome is modeled using an intercept, a continuous predictor, and a separate three-column spline term in each nonbaseline logit. To test whether the spline term can be removed, compare the full model with the model that omits all spline coefficients. Suppose their maximized log-likelihoods are \(-240.2\) and \(-247.0\), respectively.

There are \(J-1=2\) nonbaseline logits and \(q=3\) spline columns, giving \(r=2\times3=6\) restrictions. Thus \(G^2=2\{-240.2-(-247.0)\}=2(6.8)=13.6\).

The six-degree-of-freedom upper-tail probability is \(\exp(-13.6/2)\{1+13.6/2+(13.6/2)^2/2\} =\exp(-6.8)(1+6.8+23.12)\approx0.0344\). The joint test rejects at the 0.05 level. The conclusion concerns the spline coefficients as a group, conditional on the other terms retained in both models.

Making a Valid Comparison

A likelihood-ratio test answers a precise question only when the reduced model is genuinely nested in the full model and both likelihoods refer to the same data and response specification. When removing a predictor, retain the other terms specified by the scientific comparison. If a factor has \(q\) independent contrast columns, count those columns in every nonbaseline logit. For more general linear restrictions, the degrees of freedom are the rank of the restriction matrix.

The comparison uses ordinary maximized log-likelihoods. Replacing these with penalized likelihoods, or comparing models fitted to different observations, does not give this standard likelihood-ratio test. Also, if a parameter is on a boundary or ordinary identifiability fails, the usual chi-square result need not hold. A small p-value measures incompatibility with the tested restrictions under the model; it is not an estimate of effect size, nor proof that the model is scientifically correct.

Common Mistake

  • Wrong: “The predictor has two columns, so the test has two degrees of freedom.” This counts the predictor parameters in only one logit.
  • Correction: With category-specific coefficients, each predictor column contributes a coefficient to each of the \(J-1\) nonbaseline logits. Count the independent restrictions across all logits: \(r=(J-1)q\).
  • Wrong: “The full model has more parameters, so its likelihood-ratio statistic must be significant.” The full model’s maximized likelihood cannot be smaller, but the chi-square reference distribution determines whether its improvement is unusually large.
Key takeaway: Fit nested full and reduced baseline-category logit models to the same data, compute \(G^2=2(\hat\ell_F-\hat\ell_R)\), and use the number of independent restrictions as the chi-square degrees of freedom. For a predictor with \(q\) category-specific design columns, this is usually \((J-1)q\).

Check Your Understanding

Use the model structure and the regularity conditions, not just the numerical output, to answer these questions.

  1. A five-category response model removes one continuous predictor with a separate slope in every nonbaseline logit. How many restrictions are tested?
  2. What must be true of the full and reduced models for their log-likelihood difference to define this nested-model test?
  3. A four-category response model removes a factor represented by three independent contrast columns. Find the degrees of freedom for the joint test.
  4. If \(\hat\ell_F=-80.3\) and \(\hat\ell_R=-84.8\), calculate \(G^2\). Why can it not be negative when the models are properly nested and fitted by maximum likelihood?
  5. Name one condition under which the usual chi-square reference distribution may be unreliable.
Clinical Biostats