Tutorials › Statistical Theory II - Mathematical Statistics and Statistical Inference › Why the Score Statistic Is Asymptotically Chi-Square

Wald, Score, and Likelihood-Ratio Tests · Tutorial 881 of 970

Why the Score Statistic Is Asymptotically Chi-Square

See how Fisher information standardizes a null score into a quadratic form with an asymptotic chi-square distribution.

Advanced 12 min read

What You'll Learn

  • State regularity conditions for the score statistic’s chi-square limit
  • Derive the efficient score when nuisance parameters are estimated under the null
  • Explain how Fisher information standardizes the score
  • Connect a standardized normal vector’s squared length to a chi-square variable
  • Calculate score statistics in Bernoulli, normal, and multivariate normal models
  • Recognize errors from unstandardized scores or incorrect information matrices

Why a Score Statistic Needs Standardization

A score measures how rapidly the log-likelihood changes when a parameter moves away from its null value. Under the null hypothesis, that score is centered near zero, but its scale depends on how much information the data contain. A score of a given size is more surprising when the likelihood is sharply concentrated than when it is relatively flat.

The score test accounts for that scale by dividing its quadratic magnitude by Fisher information. The asymptotic reason this works is precise: under regularity conditions, a standardized score is approximately a standard normal vector. The squared length of a standard normal vector has a chi-square distribution. With nuisance parameters, the relevant scale is the information remaining for the tested parameter after accounting for the nuisance parameters.

Definition: For a parameter vector \(\theta\), the score is the gradient of the log-likelihood, \(U_n(\theta)=\partial\ell_n(\theta)/\partial\theta\). The Fisher information per observation is \(i(\theta)=E_\theta[U_1(\theta)U_1(\theta)^T]\), when the score has mean zero and this expectation exists. For \(n\) independent observations, the total Fisher information is \(n i(\theta)\).

Score Test With Nuisance Parameters

Consider independent, identically distributed observations from a regular parametric model with parameter \((\psi,\lambda)\). The tested parameter \(\psi\) has dimension \(q\), and \(\lambda\) is a nuisance parameter of dimension \(r\). The null hypothesis is \(H_0:\psi=\psi_0\); the nuisance parameter is not fixed by that hypothesis. Write the per-observation Fisher information at the true null parameter \((\psi_0,\lambda_0)\) in blocks:

$$ i= \begin{pmatrix} i_{\psi\psi} & i_{\psi\lambda}\\ i_{\lambda\psi} & i_{\lambda\lambda} \end{pmatrix}. $$

Assume \(i_{\lambda\lambda}\) is nonsingular. The information relevant to testing \(\psi\), after allowing for estimation of \(\lambda\), is the Schur complement \(i_{\psi\psi\cdot\lambda}=i_{\psi\psi}-i_{\psi\lambda}i_{\lambda\lambda}^{-1}i_{\lambda\psi}\). Under the null, fit \(\lambda\) subject to \(\psi=\psi_0\), obtaining the restricted maximum likelihood estimator \(\tilde\lambda\). The score test uses the score for \(\psi\) at this restricted fit and the corresponding efficient information.

Definition: The score statistic for \(H_0:\psi=\psi_0\), using expected information, is
$$ T_n=U_{\psi,n}(\psi_0,\tilde\lambda)^T \left[n\,\hat i_{\psi\psi\cdot\lambda}\right]^{-1} U_{\psi,n}(\psi_0,\tilde\lambda), $$
where \(\hat i_{\psi\psi\cdot\lambda}\) estimates the efficient information per observation at the restricted fit. Under the regularity conditions below, \(T_n\xrightarrow{d}\chi^2_q\) when \(H_0\) is true.

For this limit, suppose the true parameter is an interior point of an open parameter space; the model has a common dominating measure; the log density is sufficiently differentiable; and differentiation under the integral is valid so that the score has mean zero and its covariance equals Fisher information. Assume finite, positive-definite Fisher information, a central limit theorem for the score, and a law of large numbers for the likelihood Hessian. Also assume the restricted estimator is consistent, has the usual first-order likelihood expansion, and the estimated efficient information converges in probability to \(i_{\psi\psi\cdot\lambda}\), which is positive definite. These conditions rule out, among other things, boundary parameters and singular information.

Worked Examples

Worked Example: Bernoulli Success Probability

Let \(X_1,\ldots,X_n\) be independent Bernoulli observations with success probability \(p\), and test \(H_0:p=p_0\), where \(0<p_0<1\). There is no nuisance parameter. If \(S=\sum_{i=1}^n X_i\), the log-likelihood, score, and Fisher information are

$$ \ell(p)=S\log p+(n-S)\log(1-p),\qquad U_n(p)=\frac{S-np}{p(1-p)},\qquad I_n(p)=\frac{n}{p(1-p)}. $$

Evaluating both score and information at the null gives

$$ T_n=\frac{U_n(p_0)^2}{I_n(p_0)} =\frac{(S-np_0)^2}{n p_0(1-p_0)}. $$

Under \(H_0\), \(E[S]=np_0\) and \(\operatorname{Var}(S)=np_0(1-p_0)\). Thus the numerator is the squared centered count, and the denominator is its variance. For example, take \(n=100\), \(p_0=0.4\), and observe \(S=46\). Then \(U_n(p_0)=(46-40)/0.24=25\), \(I_n(p_0)=100/0.24=416.67\) (to two decimal places), and \(T_n=25^2/416.67=1.5\). Equivalently, \(T_n=6^2/24=1.5\). The large-sample reference distribution is \(\chi^2_1\).

Worked Example: Normal Mean With Unknown Variance

Let \(X_i\sim N(\mu,\sigma^2)\), independently, with both parameters unknown. Test \(H_0:\mu=\mu_0\), treating \(\sigma^2\) as a nuisance parameter. The score components for one observation are

$$ U_\mu=\frac{x-\mu}{\sigma^2},\qquad U_{\sigma^2}=-\frac{1}{2\sigma^2}+\frac{(x-\mu)^2}{2\sigma^4}. $$

The two components have covariance zero, so \(i_{\mu,\sigma^2}=0\); also \(i_{\mu\mu}=1/\sigma^2\). The efficient information per observation for \(\mu\) is therefore \(1/\sigma^2\). Under the null, the restricted maximum likelihood estimate of \(\sigma^2\) is \(\tilde\sigma^2=n^{-1}\sum_i(X_i-\mu_0)^2\). Hence

$$ T_n= \frac{\left[\sum_i(X_i-\mu_0)/\tilde\sigma^2\right]^2} {n/\tilde\sigma^2} = \frac{\left[\sum_i(X_i-\mu_0)\right]^2}{n\tilde\sigma^2}. $$

For a numerical illustration, take \(n=25\), \(\sum_i(X_i-\mu_0)=10\), and \(\sum_i(X_i-\mu_0)^2=100\). These summaries give \(\tilde\sigma^2=100/25=4\), score \(10/4=2.5\), and information \(25/4=6.25\). Thus \(T_n=2.5^2/6.25=1\), or directly \(10^2/(25\cdot4)=1\). Its asymptotic reference distribution is \(\chi^2_1\).

Worked Example: Two Mean Restrictions

Suppose \(X_i\sim N_2(\mu,I_2)\) independently, where \(I_2\) is the \(2\times2\) identity matrix, and test \(H_0:\mu=(0,0)^T\). For one observation the score for \(\mu\) is \(X_i-\mu\), and its Fisher information is \(I_2\). Thus the total information is \(nI_2\), and the null score is \(\sum_i X_i\).

Take \(n=4\) observations \((1,0)^T,(1,-1)^T,(0,-1)^T,(0,0)^T\). Their sum is \((2,-2)^T\), so

$$ T_n=(2,-2) \left(4I_2\right)^{-1} \begin{pmatrix}2\\-2\end{pmatrix} =\frac{2^2+(-2)^2}{4}=2. $$

There are two tested coordinates, so the asymptotic reference distribution is \(\chi^2_2\), not \(\chi^2_1\). In this particular known-covariance normal model, the statistic has that chi-square distribution exactly under the null; the general score-test result only promises an asymptotic limit.

Why the Chi-Square Limit Holds

The first step is to account for the fact that the nuisance parameter is estimated under the null. Let \(U_{\psi,n}\) and \(U_{\lambda,n}\) denote the two components of the score at the true null parameter. The restricted likelihood expansion gives \(\tilde\lambda-\lambda_0=i_{\lambda\lambda}^{-1}U_{\lambda,n}/n+o_p(n^{-1/2})\). A Taylor expansion of the tested score in \(\lambda\) then yields

Result: Under the stated regularity conditions,
$$ \frac{1}{\sqrt n}U_{\psi,n}(\psi_0,\tilde\lambda) \xrightarrow{d}N_q(0,i_{\psi\psi\cdot\lambda}). $$

Here is the derivation. The derivative of the score \(U_{\psi,n}\) with respect to \(\lambda\), divided by \(n\), converges in probability to \(-i_{\psi\lambda}\). Taylor expansion and the restricted-estimator expansion therefore give

$$ U_{\psi,n}(\psi_0,\tilde\lambda) =U_{\psi,n}-i_{\psi\lambda}i_{\lambda\lambda}^{-1}U_{\lambda,n} +o_p(\sqrt n). $$

The joint central limit theorem says that \(n^{-1/2}(U_{\psi,n}^T,U_{\lambda,n}^T)^T\) converges to a mean-zero normal vector with covariance \(i\). The leading term in the displayed expansion is the linear transformation with matrix \((I_q,\,-i_{\psi\lambda}i_{\lambda\lambda}^{-1})\). Its covariance is

$$ \begin{aligned} &\begin{pmatrix}I_q&-i_{\psi\lambda}i_{\lambda\lambda}^{-1}\end{pmatrix} i \begin{pmatrix}I_q\\-i_{\lambda\lambda}^{-1}i_{\lambda\psi}\end{pmatrix}\\ &\qquad=i_{\psi\psi}-i_{\psi\lambda}i_{\lambda\lambda}^{-1}i_{\lambda\psi} =i_{\psi\psi\cdot\lambda}. \end{aligned} $$

The remainder divided by \(\sqrt n\) converges in probability to zero. The central limit theorem and Slutsky’s theorem now give the claimed normal limit. This calculation explains why using only \(i_{\psi\psi}\) can be wrong when the nuisance parameter and tested parameter are not orthogonal: estimating the nuisance parameter changes the score’s limiting covariance. \(\square\)

The final step converts that normal limit into a chi-square limit.

Theorem: Under \(H_0\) and the regularity conditions above, \(T_n\xrightarrow{d}\chi^2_q\).

To prove the theorem, write \(\hat i_{\mathrm{eff}}=\hat i_{\psi\psi\cdot\lambda}\), and let \(i_{\mathrm{eff}}=i_{\psi\psi\cdot\lambda}\). Positive definiteness and consistency imply that \(\hat i_{\mathrm{eff}}^{-1}\xrightarrow{p}i_{\mathrm{eff}}^{-1}\). The previous result says that \(n^{-1/2}U_{\psi,n}(\psi_0,\tilde\lambda)\) converges to a normal vector \(Z\sim N_q(0,i_{\mathrm{eff}})\). Consequently, by Slutsky’s theorem and continuity of the quadratic-form map,

$$ T_n\xrightarrow{d}Z^T i_{\mathrm{eff}}^{-1}Z. $$

Because \(i_{\mathrm{eff}}\) is positive definite, it has a symmetric inverse square root. The vector \(i_{\mathrm{eff}}^{-1/2}Z\) has distribution \(N_q(0,I_q)\), and \(Z^T i_{\mathrm{eff}}^{-1}Z=\lVert i_{\mathrm{eff}}^{-1/2}Z\rVert^2\). By definition, the squared length of \(q\) independent standard normal coordinates has a \(\chi^2_q\) distribution. This proves the limit. \(\square\)

Common Mistake: Squaring the Raw Score

A raw score is not generally on a fixed scale. For example, in the Bernoulli model the score’s variance under the null is \(n/[p_0(1-p_0)]\); it changes with both sample size and the null probability. Squaring the score without dividing by its information does not produce a statistic with a standard chi-square limit. Standardization is essential.

With nuisance parameters, another tempting error is to use the tested block \(i_{\psi\psi}\) as though the nuisance parameter were known. When \(i_{\psi\lambda}\ne0\), that ignores the effect of estimating \(\lambda\). The correction is the efficient information \(i_{\psi\psi\cdot\lambda}\). Finally, the degrees of freedom are \(q\), the dimension of the tested parameter, not the total number of model parameters.

Key takeaway: Under a regular null model, the restricted-fit score is asymptotically normal with covariance equal to the efficient Fisher information. Weighting its quadratic magnitude by the inverse of that information produces a squared standard-normal length, and therefore a \(\chi^2_q\) limit.

Check Your Understanding

Use the derivation and examples to answer the following.

  1. Why does a score statistic need to be scaled by Fisher information rather than simply squared?
  2. For a tested parameter of dimension \(q\), what determines the degrees of freedom of the asymptotic chi-square distribution?
  3. What information matrix replaces \(i_{\psi\psi}\) when nuisance parameters are estimated under the null?
  4. In the normal-mean example, verify the score statistic using both the score-and-information formula and the simplified expression.
  5. Which step in the proof turns a standardized normal vector into a chi-square random variable?
Clinical Biostats