Tutorials › Generalized Linear Models › Scaled Deviance Is Not a Likelihood-Ratio Test

Quasi-Likelihood Theory · Tutorial 694 of 981

Scaled Deviance Is Not a Likelihood-Ratio Test

Distinguish likelihood-ratio inference from approximate tests based on quasi-deviance, and identify the assumptions required for each.

Advanced 11 min read

What You'll Learn

  • Distinguish a likelihood-ratio statistic from a difference in scaled deviance.
  • Explain why a quasi-likelihood does not specify a sampling likelihood.
  • Derive the local quadratic approximation behind an approximate chi-square test.
  • Identify the information-equality condition needed for that chi-square calibration.
  • Recognize when a sandwich discrepancy changes the limiting reference distribution.
  • Explain why quasi-deviance alone cannot define AIC.

Why the Name “Deviance” Can Mislead

For a likelihood-based generalized linear model, a deviance difference has a precise interpretation: under the usual regularity conditions, it is twice a log-likelihood difference between nested models. In a quasi-likelihood analysis, however, the fitted criterion is built from a mean and a variance function, not necessarily from a probability model for the observations. A quantity may still be called a deviance, and it may still be useful, without being a likelihood-ratio statistic.

The distinction matters for calibration. Wilks’ theorem gives a chi-square reference distribution for a likelihood-ratio statistic under a correctly specified, regular likelihood model and a null hypothesis represented by nested models. The same conclusion does not follow just from subtracting two quasi-deviances. A chi-square approximation can be justified in some settings by a separate local argument, but its assumptions must be checked.

Likelihood Deviance and Quasi-Deviance

Definition: For a model with log-likelihood \(\ell(\theta)\), its likelihood-ratio statistic for comparing a restricted model with a full model is \(2\{\ell(\hat\theta_{\mathrm{full}})-\ell(\hat\theta_{\mathrm{restricted}})\}\), where both estimates maximize the likelihood over their respective parameter spaces. In a likelihood-based GLM, the corresponding difference in residual deviances equals this statistic when the same saturated model is used for both fits.

A quasi-likelihood criterion can instead be constructed from a specified mean \(\mu\) and variance function \(V(\mu)\). For one observation \(Y\), one common unscaled convention is

$$ q(Y;\mu)=\int_{Y}^{\mu}\frac{Y-t}{V(t)}\,dt, \qquad \frac{\partial q(Y;\mu)}{\partial\mu}=\frac{Y-\mu}{V(\mu)}. $$

The criterion is useful because its derivative produces a quasi-score. But specifying \(V(\mu)\) and the mean does not, in general, specify the distribution of \(Y\), its mass or density function, or a log-likelihood. A scaled quasi-deviance is commonly formed from a contrast in this criterion, with the scale parameter \(\phi\) used in the variance model. It can measure improvement in the fitted quasi-likelihood criterion; that fact alone does not make it an exact likelihood-ratio statistic.

Worked Example: The Same Difference Has Two Interpretations

Suppose \(Y_1=2\) and \(Y_2=8\) are independent Poisson observations. Compare a restricted model with one common mean to a full model with a separate mean for each observation. The restricted maximum-likelihood estimate is \(\hat\mu=5\); the full estimates are \(2\) and \(8\).

For a Poisson model, the deviance of the restricted fit against the saturated fit is

$$ D=2\sum_{i=1}^2\left\{Y_i\log\left(\frac{Y_i}{\hat\mu}\right)-(Y_i-\hat\mu)\right\}. $$

The two linear terms sum to zero, since \((2-5)+(8-5)=0\). Therefore

$$ D=2\{2\log(2/5)+8\log(8/5)\} =2\{-1.832581+3.760029\} \approx 3.8549. $$

Here the full fit is saturated, so its residual deviance is zero. The deviance reduction is \(3.8549\). Because an actual Poisson likelihood has been specified, the likelihood-ratio statistic is also

$$ 2\{\ell_{\mathrm{full}}-\ell_{\mathrm{restricted}}\} =2\{2\log(2/5)+8\log(8/5)\} \approx 3.8549. $$

That equality is a likelihood identity, not a property of every quantity called a deviance. If the same numerical contrast is divided by a quasi-likelihood scale estimate \(\phi=2\), it becomes \(3.8549/2\approx1.9274\). This scaled value is not the likelihood-ratio statistic for the Poisson model just fitted. In a quasi-likelihood analysis it would need its own justification and calibration.

When a Chi-Square Approximation Can Be Justified

A local quadratic argument explains both why a chi-square approximation can sometimes work and why it is not automatic. The result below concerns a fixed-dimensional, regular nested comparison. It is an asymptotic result, not a claim of an exact finite-sample distribution.

Theorem: Let \(q_n(\theta)=\sum_{i=1}^n q_i(\theta)\) be a twice differentiable criterion, with \(\theta\in\mathbb{R}^p\). Suppose the null value \(\theta_0\) is interior to the full parameter space and satisfies \(C\theta_0=c\), where \(C\) has rank \(r\). Assume: the unrestricted and restricted maximizers are consistent and within \(O_p(n^{-1/2})\) of \(\theta_0\); the negative Hessian divided by \(n\) converges locally in probability to a positive-definite matrix \(A\); the score satisfies \(n^{-1/2}\nabla q_n(\theta_0)\xrightarrow{d}N(0,B)\); and a uniform second-order Taylor expansion holds in \(n^{-1/2}\)-neighbourhoods of \(\theta_0\). For fixed \(\phi>0\), the statistic \(T_n=2\{q_n(\hat\theta_{\mathrm{full}})-q_n(\hat\theta_{\mathrm{restricted}})\}/\phi\) has a chi-square limit with \(r\) degrees of freedom if \(B=\phi A\). Without that information-equality condition, its limit is generally a weighted sum of chi-square variables, not \(\chi^2_r\).

Proof. Write \(Z_n=n^{-1/2}\nabla q_n(\theta_0)\), so \(Z_n\xrightarrow{d}N(0,B)\). For a bounded local displacement \(h\), the assumed Taylor expansion gives

$$ q_n(\theta_0+h/\sqrt n)-q_n(\theta_0) =h'Z_n-\frac12 h'Ah+o_p(1). $$

The unrestricted quadratic expression is maximized at \(h=A^{-1}Z_n\), with gain \(\frac12 Z_n'A^{-1}Z_n\). Under the null, the restricted local displacements satisfy \(Ch=0\). Maximizing the same quadratic subject to this linear constraint gives the gain

$$ \frac12 Z_n'A^{-1}Z_n -\frac12(CA^{-1}Z_n)'(CA^{-1}C')^{-1}(CA^{-1}Z_n). $$

Thus the unrestricted gain minus the restricted gain is

$$ \frac12(CA^{-1}Z_n)'(CA^{-1}C')^{-1}(CA^{-1}Z_n)+o_p(1). $$

Let \(M=CA^{-1}C'\), which is positive definite because \(A\) is positive definite and \(C\) has rank \(r\). The limiting covariance of \(CA^{-1}Z_n\) is \(CA^{-1}BA^{-1}C'\). After multiplying the gain difference by \(2/\phi\), if \(B=\phi A\) this covariance is \(\phi M\). The resulting quadratic form is then the sum of squares of \(r\) independent standard normal variables, hence has a \(\chi^2_r\) distribution. If \(B\ne\phi A\), standardizing by \(M\) instead yields a quadratic form whose eigenvalues need not all equal one; its limit is generally a weighted sum of independent \(\chi^2_1\) variables. This proves the claim. \(\square\)

In a correctly specified quasi-mean and variance model with independent observations, the information equality in the theorem can hold. For example, if the variance is \(\phi V(\mu)\) and the quasi-score contribution is \((Y-\mu)(\partial\mu/\partial\theta)/V(\mu)\), its variance is \(\phi\) times the corresponding expected negative derivative of the score. This gives \(B=\phi A\) under the stated regularity conditions. If the variance model is wrong, or the dependence structure is not accounted for, the score covariance \(B\) need not match the curvature \(A\). The robust, or sandwich, covariance then reflects that mismatch; a scaled criterion difference does not automatically remove it.

Worked Example: A Variance Mismatch Changes the Limit

Consider a one-parameter null test with one restriction, so \(r=1\). Suppose the local criterion curvature is \(A=1\), the scale used in the statistic is \(\phi=1\), but the limiting score variance is \(B=4\). The theorem’s quadratic approximation gives

$$ T_n \ \dot\sim\ \frac{Z^2}{A},\qquad Z\sim N(0,B), \qquad\text{so}\qquad T_n\ \dot\sim\ 4\chi^2_1. $$

Indeed, \(Z=2W\) for \(W\sim N(0,1)\), and \(Z^2/A=4W^2\). The statistic is not asymptotically \(\chi^2_1\). Treating it as one would give the wrong reference distribution. The discrepancy occurs because the score variance is not equal to the scale times the criterion curvature: \(B=4\), whereas \(\phi A=1\).

Why Quasi-Likelihood Does Not Supply AIC

AIC is based on a maximized log-likelihood, conventionally written \(-2\ell(\hat\theta)+2k\) for a model with \(k\) estimated parameters under the standard formulation. A quasi-likelihood criterion is not generally a log density and does not assign probabilities to observed data. Consequently, substituting a quasi-likelihood value for \(\ell\) does not produce ordinary AIC. A criterion for comparing quasi-likelihood models would require a separately defined justification; it cannot be obtained merely by naming a quasi-deviance or adding a parameter-count penalty.

Worked Example: Mean and Variance Do Not Determine a Likelihood

At mean \(2\), a Poisson random variable has variance \(2\). Now define another random variable \(Y\) by \(P(Y=0)=1/4\), \(P(Y=2)=1/2\), and \(P(Y=4)=1/4\). Its moments are

$$ E[Y]=0(1/4)+2(1/2)+4(1/4)=2, \qquad E[Y^2]=0+4(1/2)+16(1/4)=6, \qquad \operatorname{Var}(Y)=6-2^2=2. $$

The two distributions have the same mean and variance at this mean, but they assign different probabilities to an observation of zero: the second distribution assigns probability \(1/4\), while the Poisson distribution assigns \(e^{-2}\approx0.1353\). Their likelihood contributions for that observation are therefore different. A mean-variance specification alone cannot tell us which contribution to use, so it cannot determine a maximized log-likelihood or an AIC value.

Common Pitfall: Applying Wilks’ Theorem by Vocabulary

  • Wrong reasoning: “The statistic is a difference in scaled deviances, so Wilks’ theorem says it is chi-square.”
  • Correction: Wilks’ theorem applies to a likelihood-ratio statistic under a regular likelihood model. For a quasi-deviance contrast, establish an appropriate local limit and check the score-variance/criterion-curvature condition, or use an inference procedure whose covariance and calibration account for the estimating equation.
  • Wrong reasoning: “A quasi-deviance is a log-likelihood up to a constant, so it can be used for AIC.”
  • Correction: That equivalence requires an actual likelihood representation. A mean and variance function generally do not specify a sampling distribution, so quasi-likelihood alone does not provide the likelihood needed for AIC.

The practical conclusion is not that deviance differences are useless. They summarize improvement in a fitted criterion and, under appropriate assumptions, can support approximate tests. The important distinction is between an exact likelihood identity and a statistic whose reference distribution follows from an additional asymptotic argument. State which one is being used, and do not infer likelihood-based model-selection properties from quasi-likelihood alone.

Check Your Understanding

Use the distinctions in this tutorial to answer the following questions.

  1. What makes a deviance difference a likelihood-ratio statistic in a likelihood-based GLM?
  2. In the local quadratic result, what relationship between score variance and criterion curvature gives a \(\chi^2_r\) limit?
  3. If the limiting score variance is \(B\ne\phi A\), why is a \(\chi^2_r\) calibration not automatic?
  4. Why can two distributions with the same mean and variance still have different likelihoods?
  5. What additional ingredient does AIC require that a quasi-likelihood specification need not provide?
Clinical Biostats