Score test explained

Score test should not be confused with Test score.

In statistics, the score test assesses constraints on statistical parameters based on the gradient of the likelihood function—known as the score—evaluated at the hypothesized parameter value under the null hypothesis. Intuitively, if the restricted estimator is near the maximum of the likelihood function, the score should not differ from zero by more than sampling error. While the finite sample distributions of score tests are generally unknown, they have an asymptotic χ2-distribution under the null hypothesis as first proved by C. R. Rao in 1948,[1] a fact that can be used to determine statistical significance.

Since function maximization subject to equality constraints is most conveniently done using a Lagrangean expression of the problem, the score test can be equivalently understood as a test of the magnitude of the Lagrange multipliers associated with the constraints where, again, if the constraints are non-binding at the maximum likelihood, the vector of Lagrange multipliers should not differ from zero by more than sampling error. The equivalence of these two approaches was first shown by S. D. Silvey in 1959,[2] which led to the name Lagrange multiplier test that has become more commonly used, particularly in econometrics, since Breusch and Pagan's much-cited 1980 paper.[3]

The main advantage of the score test over the Wald test and likelihood-ratio test is that the score test only requires the computation of the restricted estimator.[4] This makes testing feasible when the unconstrained maximum likelihood estimate is a boundary point in the parameter space. Further, because the score test only requires the estimation of the likelihood function under the null hypothesis, it is less specific than the likelihood ratio test about the alternative hypothesis.[5]

Single-parameter test

The statistic

Let

L

be the likelihood function which depends on a univariate parameter

\theta

and let

x

be the data. The score

U(\theta)

is defined as
U(\theta)=\partiallogL(\theta\midx)
\partial\theta

.

The Fisher information is[6]

I(\theta)=-\operatorname{E}\left[\left.

\partial2
\partial\theta2

logf(X;\theta)\right|\theta\right],

where ƒ is the probability density.

The statistic to test

l{H}0:\theta=\theta0

is

S(\theta0)=

2
U(\theta
0)
I(\theta0)

which has an asymptotic distribution of

2
\chi
1
, when

l{H}0

is true. While asymptotically identical, calculating the LM statistic using the outer-gradient-product estimator of the Fisher information matrix can lead to bias in small samples.[7]

Note on notation

Note that some texts use an alternative notation, in which the statistic

S*(\theta)=\sqrt{S(\theta)}

is tested against a normal distribution. This approach is equivalent and gives identical results.

As most powerful test for small deviations

\left(\partiallogL(\theta\midx)
\partial\theta
\right)
\theta=\theta0

\geqC

where

L

is the likelihood function,

\theta0

is the value of the parameter of interest under the null hypothesis, and

C

is a constant set depending on the size of the test desired (i.e. the probability of rejecting

H0

if

H0

is true; see Type I error).

The score test is the most powerful test for small deviations from

H0

. To see this, consider testing

\theta=\theta0

versus

\theta=\theta0+h

. By the Neyman–Pearson lemma, the most powerful test has the form
L(\theta0+h\midx)
L(\theta0\midx)

\geqK;

Taking the log of both sides yields

logL(\theta0+h\midx)-logL(\theta0\midx)\geqlogK.

The score test follows making the substitution (by Taylor series expansion)

logL(\theta0+h\midx)logL(\theta0\midx)+h x \left(

\partiallogL(\theta\midx)
\partial\theta
\right)
\theta=\theta0

and identifying the

C

above with

log(K)

.

Relationship with other hypothesis tests

If the null hypothesis is true, the likelihood ratio test, the Wald test, and the Score test are asymptotically equivalent tests of hypotheses.[8] [9] When testing nested models, the statistics for each test then converge to a Chi-squared distribution with degrees of freedom equal to the difference in degrees of freedom in the two models. If the null hypothesis is not true, however, the statistics converge to a noncentral chi-squared distribution with possibly different noncentrality parameters.

Multiple parameters

A more general score test can be derived when there is more than one parameter. Suppose that

\widehat{\theta}0

is the maximum likelihood estimate of

\theta

under the null hypothesis

H0

while

U

and

I

are respectively, the score vector and the Fisher information matrix. Then
T(\widehat{\theta}
U
0)

I-1(\widehat{\theta}0)U(\widehat{\theta}0)\sim

2
\chi
k

asymptotically under

H0

, where

k

is the number of constraints imposed by the null hypothesis and

U(\widehat{\theta}0)=

\partiallogL(\widehat{\theta
0

\midx)}{\partial\theta}

and

I(\widehat{\theta}0)=-\operatornameE\left(

\partial2logL(\widehat{\theta
0

\midx)}{\partial\theta\partial\theta'}\right).

This can be used to test

H0

.

The actual formula for the test statistic depends on which estimator of the Fisher information matrix is being used.[10]

Special cases

In many situations, the score statistic reduces to another commonly used statistic.[11]

In linear regression, the Lagrange multiplier test can be expressed as a function of the F-test.[12]

When the data follows a normal distribution, the score statistic is the same as the t statistic.

When the data consists of binary observations, the score statistic is the same as the chi-squared statistic in the Pearson's chi-squared test.

See also

Further reading

Notes and References

  1. C. Radhakrishna . Rao . Large sample tests of statistical hypotheses concerning several parameters with applications to problems of estimation . . 44 . 1 . 1948 . 50–57 . 10.1017/S0305004100023987 . 1948PCPS...44...50R .
  2. S. D. . Silvey . The Lagrangian Multiplier Test . . 30 . 2 . 1959 . 389–407 . 2237089 . 10.1214/aoms/1177706259. free .
  3. T. S. . Breusch . Trevor S. Breusch . A. R. . Pagan . Adrian Pagan . The Lagrange Multiplier Test and its Applications to Model Specification in Econometrics . . 47 . 1 . 1980 . 239–253 . 10.2307/2297111 . 2297111 .
  4. Book: Ludwig . Fahrmeir . Thomas . Kneib . Stefan . Lang . Brian . Marx . Regression : Models, Methods and Applications . limited . Berlin . Springer . 2013 . 978-3-642-34332-2 . 663–664 .
  5. Book: Kennedy, Peter . A Guide to Econometrics . Cambridge . MIT Press . Fourth . 1998 . 0-262-11235-3 . 68 .
  6. Lehmann and Casella, eq. (2.5.16).
  7. Russel . Davidson . James G. . MacKinnon . Small sample properties of alternative forms of the Lagrange Multiplier test . . 12 . 3–4 . 1983 . 269–275 . 10.1016/0165-1765(83)90048-4 .
  8. Book: Engle, Robert F. . Handbook of Econometrics . Intriligator, M. D. . Griliches, Z. . Elsevier . 1983 . II . 796–801 . Wald, Likelihood Ratio, and Lagrange Multiplier Tests in Econometrics . 978-0-444-86185-6 .
  9. Book: Burzykowski. Andrzej Gałecki, Tomasz. Linear mixed-effects models using R : a step-by-step approach. 2013. Springer. New York, NY. 978-1-4614-3899-1.
  10. Web site: Taboga. Marco. Lectures on Probability Theory and Mathematical Statistics. statlect.com. 31 May 2022.
  11. Book: Cook . T. D. . DeMets . D. L. . 2007 . Introduction to Statistical Methods for Clinical Trials . Chapman and Hall . 978-1-58488-027-1 . 296–297 .
  12. Walter . Vandaele . Wald, likelihood ratio, and Lagrange multiplier tests as an F test . . 1981 . 8 . 4 . 361–365 . 10.1016/0165-1765(81)90026-4 .