Tutorials › Generalized Linear Models › Comparing Tests for a Joint Poisson Regression Effect

Wald Score and Likelihood-Ratio Tests · Tutorial 281 of 981

Comparing Tests for a Joint Poisson Regression Effect

Learn to calculate and compare all three tests for a joint Poisson regression effect, and understand why their finite-sample results can differ.

Intermediate 10 min read

What You'll Learn

  • State a joint null hypothesis for several Poisson regression coefficients and identify its degrees of freedom.
  • Calculate the joint score statistic using the restricted fit.
  • Calculate the joint Wald statistic using the unrestricted fit and its covariance matrix.
  • Derive a likelihood-ratio statistic by comparing restricted and unrestricted Poisson fits.
  • Interpret different test statistics and p-values without treating them as contradictory.

Why Compare the Tests for a Joint Poisson Effect?

In a Poisson regression, a coefficient describes how a covariate changes the log of the expected count or rate. Often the scientific question concerns several covariates together: for example, whether two treatment indicators contribute anything beyond an intercept. The joint null hypothesis sets both coefficients to zero, and the Wald, score, and likelihood-ratio tests each compare that null with the same alternative.

The tests use different information. The Wald test evaluates the unrestricted estimate and its covariance; the score test evaluates the slope and information at the restricted fit; the likelihood-ratio test compares the two maximized log-likelihoods. Under standard regularity conditions they have the same limiting chi-square distribution under the null, but their finite-sample statistics need not agree.

Definition: For a Poisson regression parameterized by nuisance parameter \(\alpha\) and a \(q\)-dimensional coefficient vector \(\boldsymbol{\beta}\), consider \(H_0:\boldsymbol{\beta}=\boldsymbol{0}\) against \(H_1:\boldsymbol{\beta}\ne\boldsymbol{0}\). The joint Wald statistic is the squared covariance-standardized distance of \(\hat{\boldsymbol{\beta}}\) from zero. The score statistic uses the score and its efficient information under \(H_0\). The likelihood-ratio statistic is \(G^2=2\{\ell(\hat{\alpha},\hat{\boldsymbol{\beta}})-\ell(\tilde{\alpha},\boldsymbol{0})\}\), where tildes denote restricted maximum-likelihood estimates.

When the model is identifiable, the true parameter is an interior point, the relevant information is nonsingular, and the sample grows under the null with fixed parameter dimension, each statistic has an asymptotic \(\chi^2_q\) distribution. The same degrees of freedom apply to the joint test because there are \(q\) independent restrictions. In a finite sample, the chi-square p-values are approximations; they do not imply that the three observed statistics must match.

Set Up the Joint Test

Suppose independent observations satisfy \(Y_i\sim\operatorname{Poisson}(\mu_i)\), with \(\log(\mu_i)=\alpha+\beta_1x_{i1}+\beta_2x_{i2}\). The joint test of no covariate effect is \(H_0:\beta_1=\beta_2=0\). For this two-restriction test, the reference distribution is \(\chi^2_2\). A useful comparison keeps the null hypothesis, data, and reference distribution fixed, and changes only which fitted model supplies the statistic.

Worked Example: Identifying the Restrictions and Degrees of Freedom

Suppose a count model has an intercept, a treatment indicator, and a baseline covariate: \(\log(\mu_i)=\alpha+\beta_1x_{i1}+\beta_2x_{i2}\). The scientific question is whether treatment and the baseline covariate have any effect.

The null is \(H_0:\beta_1=\beta_2=0\), while the alternative allows at least one coefficient to be nonzero. The null imposes two independent restrictions, so the asymptotic reference distribution is \(\chi^2_2\). This is a joint conclusion: rejection supports an effect from at least one of the two terms, not necessarily from both.

A Four-Cell Poisson Example

Consider four independent counts, one for each combination of two covariates coded \(-1\) and \(+1\). Let \(x_1\) index rows and \(x_2\) index columns, and use the additive log-mean model \(\log(\mu)=\alpha+\beta_1x_1+\beta_2x_2\). There are no offsets. The observed counts are:

\(x_2=+1\)\(x_2=-1\)
\(x_1=+1\)6040
\(x_1=-1\)4530

We test \(H_0:\beta_1=\beta_2=0\), so \(q=2\). The unrestricted model fits the four observed means exactly: \(60\times30=40\times45\), which makes the four log-counts additive in \(x_1\) and \(x_2\). The fitted coefficients are \(\hat{\beta}_1=\tfrac12\log(4/3)\) and \(\hat{\beta}_2=\tfrac12\log(3/2)\). The unrestricted intercept is \(\hat{\alpha}=\tfrac14\log(60\cdot40\cdot45\cdot30)\), and the restricted fit has common fitted mean \(\tilde{\mu}=(60+40+45+30)/4=43.75\).

Derivation: For independent Poisson counts with means \(\mu_i\), the log-likelihood, omitting terms that do not depend on the parameters, is \(\ell=\sum_i\{y_i\log(\mu_i)-\mu_i\}\). Under the null in this example, all four means equal \(\mu\), so \(\ell_0(\mu)=(\sum_i y_i)\log(\mu)-4\mu\). Differentiating gives \(\sum_i y_i/\mu-4=0\), hence \(\tilde{\mu}=\sum_i y_i/4=43.75\). Under the unrestricted fit \(\hat{\mu}_i=y_i\). Subtracting the two maximized log-likelihoods therefore gives \(G^2=2\sum_i y_i\log(y_i/\tilde{\mu})\); the linear terms cancel because both fits have total fitted count 175.

Calculate the Score, Wald, and Likelihood-Ratio Statistics

For the score test, use the restricted fit. The design vector is \((1,x_1,x_2)^\mathsf{T}\). Since the four covariate combinations are balanced, both covariates sum to zero. The intercept score is zero at the restricted estimate, while the two slope-score components are the signed count contrasts:

$$ \boldsymbol{U}_{\beta}(\tilde{\alpha},\boldsymbol{0}) = \begin{pmatrix}60+40-45-30\\60-40+45-30\end{pmatrix} = \begin{pmatrix}25\\35\end{pmatrix}. $$

At the restricted fit, the Poisson information matrix is \(\tilde{\mu}X^\mathsf{T}X\). The intercept is orthogonal to both slope columns, and the two slope columns are orthogonal to each other. Each slope-information entry is \(4(43.75)=175\). Thus the efficient information for \(\boldsymbol{\beta}\), after accounting for the intercept, is \(175I_2\).

$$ S=\boldsymbol{U}_{\beta}^{\mathsf{T}}(175I_2)^{-1}\boldsymbol{U}_{\beta} =\frac{25^2+35^2}{175} =\frac{1850}{175} =10.5714. $$

For two degrees of freedom, the chi-square upper-tail probability is \(\exp(-S/2)\). Here the score-test p-value is \(\exp(-10.5714/2)\approx0.00506\).

For the Wald test, use the unrestricted coefficient estimates and their covariance matrix. The expected information at the unrestricted fit, with rows ordered as \((1,x_1,x_2)\), is

$$ I(\hat{\alpha},\hat{\boldsymbol{\beta}}) = \begin{pmatrix} 175&25&35\\ 25&175&5\\ 35&5&175 \end{pmatrix}. $$

Removing the nuisance intercept by taking the Schur complement gives the information for the two coefficients:

$$ I_{\beta\beta\cdot\alpha} = \begin{pmatrix}175&5\\5&175\end{pmatrix} -\frac{1}{175} \begin{pmatrix}25\\35\end{pmatrix} \begin{pmatrix}25&35\end{pmatrix} = \begin{pmatrix}1200/7&0\\0&168\end{pmatrix}. $$

The corresponding covariance estimate is the inverse of this matrix. Therefore

$$ W= \hat{\boldsymbol{\beta}}^\mathsf{T} I_{\beta\beta\cdot\alpha} \hat{\boldsymbol{\beta}} = \frac{1200}{7}\left\{\frac12\log(4/3)\right\}^2 +168\left\{\frac12\log(3/2)\right\}^2 \approx 10.4518. $$

Its \(\chi^2_2\) p-value is \(\exp(-10.4518/2)\approx0.00538\). This calculation uses the unrestricted estimate and covariance; substituting the restricted information from the score calculation would not give the Wald statistic.

Finally, the likelihood-ratio statistic follows from the likelihood derivation above:

$$ \begin{aligned} G^2 &=2\left\{60\log(60/43.75)+40\log(40/43.75) +45\log(45/43.75)+30\log(30/43.75)\right\}\\ &\approx 10.6311. \end{aligned} $$

The likelihood-ratio p-value is \(\exp(-10.6311/2)\approx0.00491\). Thus, at the 0.01 level all three tests reject. At the 0.005 level, only the likelihood-ratio test rejects for these data: the score p-value is just above 0.005, and the Wald p-value is also above it. This is a genuine finite-sample difference, not a change in the hypothesis or degrees of freedom.

Why the Statistics Differ

The score statistic asks how strongly the likelihood initially points away from the null, measured using information at the restricted fit. The Wald statistic measures the unrestricted estimate’s distance from the null using covariance at the unrestricted fit. The likelihood-ratio statistic measures the total gain in maximized log-likelihood. These are distinct calculations, so finite-sample differences are expected; their asymptotic equivalence does not make their observed values identical.

Worked Example: Interpreting the Joint Result

Use the fitted coefficients and covariance from the four-cell example. Since the covariates range from \(-1\) to \(+1\), changing \(x_1\) across its two levels multiplies the fitted mean by \(\exp(2\hat{\beta}_1)=4/3\); changing \(x_2\) across its levels multiplies it by \(\exp(2\hat{\beta}_2)=3/2\).

The standard errors are \(\sqrt{7/1200}\approx0.0764\) for \(\hat{\beta}_1\) and \(\sqrt{1/168}\approx0.0772\) for \(\hat{\beta}_2\). The individual Wald z-statistics are approximately \(0.14384/0.0764=1.88\) and \(0.20273/0.0772=2.63\), respectively. The joint tests at the 0.01 level reject the two-coefficient null, but that does not establish that each coefficient is individually nonzero. The separate z-statistics address separate hypotheses; they do not replace the specified joint test.

Common Mistakes

  • Using the wrong fit for a statistic. The score test uses the restricted fit and its efficient information; the Wald test uses the unrestricted estimate and covariance.
  • Using one degree of freedom because there is one scientific question. The reference degrees of freedom are determined by the number of independent restrictions. Here there are two.
  • Assuming asymptotic equivalence means identical results. The three procedures can produce different finite-sample statistics and p-values. Near a chosen significance threshold, report the test and its numerical result rather than claiming the methods must agree.
  • Reading a joint rejection as evidence that every coefficient matters. A joint test rejects the hypothesis that all tested coefficients are zero; it does not identify which coefficients drive the result.
Key takeaway: For a joint Poisson regression effect, calculate each statistic from the fit it belongs to, use the number of restrictions for the chi-square reference distribution, and interpret any finite-sample disagreement in light of the reported statistics and p-values.

Check Your Understanding

Answer these questions using the definitions and calculations above.

  1. In a joint test of three Poisson regression coefficients, what is the asymptotic chi-square degrees of freedom, assuming the restrictions are independent?
  2. Why does the score statistic use information from the restricted fit?
  3. For the four-cell example, what restricted mean is fitted under the null, and how is it obtained?
  4. At the 0.005 level, which of the three tests rejects in the four-cell example?
  5. What does rejection of \(H_0:\beta_1=\beta_2=0\) establish, and what does it not establish about the two coefficients individually?
Clinical Biostats