In statistics, the informant or score is the gradient of the log-likelihood function with respect to the parameter vector. Evaluated at a particular value of the parameter vector, the score indicates the steepness of the log-likelihood function and thereby the sensitivity to infinitesimal changes to the parameter values. If the log-likelihood function is continuous over the parameter space, the score will vanish at a local maximum or minimum; this fact is used in maximum likelihood estimation to find the parameter values that maximize the likelihood function. Since the score is a function of the observations, which are subject to sampling error, it lends itself to a test statistic known as score test in which the parameter is held at a particular value. Further, the ratio of two likelihood functions evaluated at two distinct parameter values can be understood as a definite integral of the score function.
Definition The score is the gradient (the vector of partial derivatives) of logℒ(θ;x), the natural logarithm of the likelihood function, with respect to an m-dimensional parameter vector θ.
s(θ;x)≡∂logℒ(θ;x)∂θ This differentiation yields a (1×m) row vector at each value of θ and x, and indicates the sensitivity of the likelihood (its derivative normalized by its value). In older literature, "linear score" may refer to the score with respect to infinitesimal translation of a given density. This convention arises from a time when the primary parameter of interest was the mean or median of a distribution. In this case, the likelihood of an observation is given by a density of the form ℒ(θ;X)=f(X+θ). The "linear score" is then defined as
slinear=∂∂Xlogf(X)
Properties
Mean While the score is a function of θ, it also depends on the observations 𝐱=(x1,x2,…,xT) at which the likelihood function is evaluated, and in view of the random character of sampling one may take its expected value over the sample space. Under certain regularity conditions on the density functions of the random variables, the expected value of the score, evaluated at any parameter value θ, is zero. To see this, rewrite the likelihood function ℒ as a probability density function ℒ(θ;x)=f(x;θ), and denote the sample space 𝒳. Then:
E(s∣θ)=∫𝒳f(x;θ)∂∂θlogℒ(θ;x)dx=∫𝒳f(x;θ)1f(x;θ)∂f(x;θ)∂θdx=∫𝒳∂f(x;θ)∂θdx The assumed regularity conditions allow the interchange of derivative and integral (see Leibniz integral rule), hence the above expression may be rewritten as
∂∂θ∫𝒳f(x;θ)dx=∂∂θ1=0. Note that the value of the score, evaluated at the true parameter value θ∗, is zero. It is worth restating the above result in words: the expected value of the score, at any parameter value θ is zero. Thus, if one were to repeatedly sample from some distribution, and repeatedly calculate the score, then the mean value of the scores would tend to zero asymptotically.
Variance
The variance of the score, Var(s(θ))=E(s(θ)s(θ)𝖳), can be derived from the above expression for the expected value.
0=∂∂θ𝖳E(s∣θ)=∂∂θ𝖳∫𝒳∂logℒ(θ;X)∂θf(x;θ)dx=∫𝒳∂∂θ𝖳{∂logℒ(θ;X)∂θf(x;θ)}dx=∫𝒳{∂2logℒ(θ;X)∂θ∂θ𝖳f(x;θ)+∂logℒ(θ;X)∂θ∂f(x;θ)∂θ𝖳}dx=∫𝒳∂2logℒ(θ;X)∂θ∂θ𝖳f(x;θ)dx+∫𝒳∂logℒ(θ;X)∂θ∂f(x;θ)∂θ𝖳dx=∫𝒳∂2logℒ(θ;X)∂θ∂θ𝖳f(x;θ)dx+∫𝒳∂logℒ(θ;X)∂θ∂logℒ(θ;X)∂θ𝖳f(x;θ)dx=E(∂2logℒ(θ;X)∂θ∂θ𝖳)+E(∂logℒ(θ;X)∂θ[∂logℒ(θ;X)∂θ]𝖳) Hence the variance of the score is equal to the negative expected value of the Hessian matrix of the log-likelihood.
E(s(θ)s(θ)𝖳)=−E(∂2logℒ∂θ∂θ𝖳) The latter is known as the Fisher information and is written ℐ(θ). Note that the Fisher information is not a function of any particular observation, as the random variable X has been averaged out. This concept of information is useful when comparing two methods of observation of some random process.
Examples
Bernoulli process Consider observing the first n trials of a Bernoulli process, and seeing that A of them are successes and the remaining B are failures, where the probability of success is θ. Then the likelihood ℒ is
ℒ(θ;A,B)=(A+B)!A!B!θA(1−θ)B, so the score s is
s=∂logℒ∂θ=1ℒ∂ℒ∂θ=Aθ−B1−θ. We can now verify that the expectation of the score is zero. Noting that the expectation of A is nθ and the expectation of B is n(1 − θ) [recall that A and B are random variables], we can see that the expectation of s is
E(s)=nθθ−n(1−θ)1−θ=n−n=0. We can also check the variance of s. We know that A + B = n (so B = n − A) and the variance of A is nθ(1 − θ) so the variance of s is
var(s)=var(Aθ−n−A1−θ)=var(A(1θ+11−θ))=(1θ+11−θ)2var(A)=nθ(1−θ).
Binary outcome model For models with binary outcomes (Y = 1 or 0), the model can be scored with the logarithm of predictions
S=Ylog(p)+(1−Y)(log(1−p)) where p is the probability in the model to be estimated and S is the score.
Applications
Scoring algorithm
The scoring algorithm is an iterative method for numerically determining the maximum likelihood estimator.
Score test
Note that s is a function of θ and the observation 𝐱=(x1,x2,…,xT), so that, in general, it is not a statistic. However, in certain applications, such as the score test, the score is evaluated at a specific value of θ (such as a null-hypothesis value), in which case the result is a statistic. 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. In 1948, C. R. Rao first proved that the square of the score divided by the information matrix follows an asymptotic χ2-distribution under the null hypothesis. Further note that the likelihood-ratio test is given by
−2[logℒ(θ0)−logℒ(θ̂)]=2∫θ0θ̂dlogℒ(θ)dθdθ=2∫θ0θ̂s(θ)dθ which means that the likelihood-ratio test can be understood as the area under the score function between θ0 and θ̂.
… excerpt ends here. Continue reading the full article.