Harman Patil (Editor)

Score (statistics)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, the score, score function, efficient score or informant indicates how sensitive a likelihood function L ( θ ; X ) is to its parameter θ . Explicitly, the score for θ is the gradient of the log-likelihood with respect to θ .

Contents

The score plays an important role in several aspects of inference. For example:

  • in formulating a test statistic for a locally most powerful test;
  • in approximating the error in a maximum likelihood estimate;
  • in demonstrating the asymptotic sufficiency of a maximum likelihood estimate;
  • in the formulation of confidence intervals;
  • in demonstrations of the Cramér–Rao inequality.
  • The score function also plays an important role in computational statistics, as it can play a part in the computation of maximum likelihood estimates.

    Definition

    The score or efficient score is the gradient (the vector of partial derivatives), with respect to some parameter θ , of the logarithm (commonly the natural logarithm) of the likelihood function (the log-likelihood). If the observation is X and its likelihood is L ( θ ; X ) , then the score V can be found through the chain rule:

    V V ( θ , X ) = θ log L ( θ ; X ) = 1 L ( θ ; X ) L ( θ ; X ) θ .

    Thus the score V indicates the sensitivity of L ( θ ; X ) (its derivative normalized by its value). Note that V is a function of θ and the observation X , 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, or at the maximum likelihood estimate of θ ), in which case the result is a statistic.

    In older literature, the term "linear score" may be used to 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 L ( θ ; X ) = f ( X + θ ) . The "linear score" is then defined as

    V l i n e a r = X log f ( X )

    Mean

    Under some regularity conditions, the expected value of V with respect to the observation x , given the true parameter θ , written E ( V θ ) , is zero. To see this rewrite the likelihood function L as a probability density function L ( θ ; x ) = f ( x ; θ ) . Then:

    E ( V θ ) = + f ( x ; θ ) θ log L ( θ ; X ) d x = + θ log L ( θ ; X ) f ( x ; θ ) d x = + 1 f ( x ; θ ) f ( x ; θ ) θ f ( x ; θ ) d x = + f ( x ; θ ) θ d x


    If certain differentiability conditions are met (see Leibniz integral rule), the integral may be rewritten as

    θ + f ( x ; θ ) d x = θ 1 = 0.

    It is worth restating the above result in words: the expected value of the score 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 as the number of repeat samples approached infinity.

    Variance

    The variance of the score is known as the Fisher information and is written I ( θ ) . Because the expectation of the score is zero, this may be written as

    I ( θ ) = E { [ θ log L ( θ ; X ) ] 2 | θ } .

    Note that the Fisher information, as defined above, 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.

    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 L is

    L ( θ ; A , B ) = ( A + B ) ! A ! B ! θ A ( 1 θ ) B ,

    so the score V is

    V = 1 L L θ = A θ B 1 θ .

    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 V is

    E ( V ) = n θ θ n ( 1 θ ) 1 θ = n n = 0.

    We can also check the variance of V . We know that A + B = n (so Bn − A) and the variance of A is nθ(1 − θ) so the variance of V is

    var ( V ) = var ( A θ n A 1 θ ) = var ( A ( 1 θ + 1 1 θ ) ) = ( 1 θ + 1 1 θ ) 2 var ( 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 = Y log ( p ) + ( 1 Y ) ( log ( 1 p ) )

    where p is the probability in the model to be estimated and S is the score.

    Scoring algorithm

    The scoring algorithm is an iterative method for numerically determining the maximum likelihood estimator.

    References

    Score (statistics) Wikipedia