Definitioncore
Score function
Also called score vector, gradient of the log-likelihood.
The gradient of the log-likelihood with respect to the parameter. Under regularity it has mean zero, and its variance is the Fisher information.
The score function is the derivative, or for a vector parameter the gradient, of the log-likelihood with respect to the parameter. It tells how fast the log-likelihood changes when the parameter moves. At the true parameter value it is a random variable with mean zero, and its variance is the Fisher information. Setting it to zero gives the likelihood equation of maximum likelihood estimation, and it is the main object behind the Cramér-Rao bound, the score test and Fisher scoring.
Definition
Let be iid with density or mass function , , with open and differentiable in for every .
Score of one observation.
For this is .
Score of the sample. With ,
For a fixed , is a random vector, a function of the data. For fixed data, is a function of the parameter. Both readings are used, and the context says which.
Fisher information. is the information of one observation, a matrix for vector , and is the information of the sample.
Observed information. , minus the Jacobian of the score. It is a random matrix, and under the conditions below .
Properties
The properties below hold under the regularity conditions on the Cramér-Rao bound page: the support does not depend on , and can be differentiated under the integral sign (once for (a), twice for (c)).
(a) Mean zero. .
Proof. .
The mean is zero only when the score and the distribution use the same . For , is in general not zero; this is why the score detects a wrong parameter value.
(b) Variance is the information. By (a), , and for the sample , because the terms are iid with mean zero.
(c) Information identity. . Differentiate once more, and use . The Fisher information matrix page gives the details.
(d) Covariance with an estimator. If has and can be differentiated under the integral, then . With the Cauchy-Schwarz inequality this gives the Cramér-Rao bound.
(e) It depends on the data only through a sufficient statistic. If (factorization theorem), then , a function of .
(f) Change of parameter. If with Jacobian , the score in is , and the information becomes .
(g) Large samples. By the central limit theorem, converges in distribution to under . This is the step behind the asymptotic normality of the MLE and the null distribution of the score test. Under , the sequence is a sum of iid mean-zero terms, so it is a martingale in .
(h) Likelihood equation. An interior maximum of the likelihood solves . Newton's method on this equation uses ; Fisher scoring replaces by .
Examples and non-examples
Bernoulli. , so and . The score is an affine function of , which is why attains the Cramér-Rao bound.
Poisson, on the sample . , so with .
| observed | expected | ||
|---|---|---|---|
The score is positive below the maximum likelihood estimate and negative above it. At the observed and expected information agree, which holds for every Poisson sample.
Normal with both parameters. For ,
On , with and : at , the component is ; at , the component is . The component is zero at , the maximum likelihood estimate with divisor , not at .
Exponential. For rate , , so and .
Exponential families. In natural form , : the score is the sufficient statistic minus its mean.
Non-example: a support that moves. For Uniform, on the support, so for every in . Its mean is . The support depends on , the derivative does not pass under the integral, and properties (a) to (d) fail. The likelihood is maximized at , where it is not differentiable, and the likelihood equation has no solution.
Non-example: several roots. For the Cauchy location model, . With two observations and , has the three roots and ; at these are and . The root at is a local minimum of the likelihood. A zero of the score is not always a maximum.
Pitfalls
- Score in the parameter, not in the data. In machine learning, "score" often means , the gradient with respect to the data point, used in score matching and diffusion models. That is a different object; this page is about .
- Sign and scale. Some texts define the score with for the full sample, others per observation, and some divide by . The mean zero property holds in all of them; the variance scales accordingly.
- The information identity needs two derivatives under the integral. When only the first exists, is still the information, but may differ from it.
Related definitions
- Fisher information matrix: the covariance matrix of the score.
- Maximum likelihood estimation: solves the likelihood equation ; Fisher scoring and Newton's method solve it numerically.
- Score test: compares with its null variance ; for a binomial proportion, inverting it gives the Wilson score interval.
- Cramér-Rao bound: the covariance of an unbiased estimator with the score gives a lower bound on its variance.
References
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 7.3.2 (the derivative of the log-likelihood in the Cramér-Rao inequality and the information identity) and Section 10.3.2 (other large-sample tests, including the score test)
- E. L. Lehmann and George Casella, Theory of Point Estimation, second edition, Springer, 1998, Chapter 2, Section 2.5 (the information inequality) and Chapter 6 (likelihood equations)
- R. A. Fisher, Theory of statistical estimation, Mathematical Proceedings of the Cambridge Philosophical Society 22(5), 1925, pages 700 to 725, the amount of information and the derivative of the log-likelihood
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 1WBGCK Edit this page History Report an error Markdown