Score test

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.

[4] This makes testing feasible when the unconstrained maximum likelihood estimate is a boundary point in the parameter space.

[citation needed] 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.

be the likelihood function which depends on a univariate parameter

is defined as The Fisher information is[6] where ƒ is the probability density.

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 that some texts use an alternative notation, in which the statistic

is tested against a normal distribution.

This approach is equivalent and gives identical results.

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

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

is true; see Type I error).

By the Neyman–Pearson lemma, the most powerful test has the form Taking the log of both sides yields The score test follows making the substitution (by Taylor series expansion) and identifying the

[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.

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

is the maximum likelihood estimate of

are respectively, the score vector and the Fisher information matrix.

is the number of constraints imposed by the null hypothesis and and This can be used to test

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

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

[clarification needed] 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.