The likelihood function or simply likelihood provides a measure of how well a set of population parameters applied to a statistical model describes a sample. Mathematically, it is a specific interpretation of the joint distribution function that the sample's random variables follow, but instead of setting parameters and changing samples, one sets the sample and changes the parameters.
If we consider an iid random sample of size and a model with parameters , the probability of observing a realization of given a specific set of parameters is given by the joint distribution function, which maps1
We can logically invert the relationship to find the probability (likelihood) of observing parameters given a specific observation :
Strictly speaking, these two functions are identical. What changes is which arguments we set and which we allow to vary, which changes the information that the function gives. The likelihood, in essence, asks the question: "Given our specific observation , how confident are we that the process that generated it has parameters under our model?"
For an iid sample, we can call the probability density function of the common distribution . Then, since the likelihood is the joint density function, which itself is just the product of PDFs in an iid set, we can state
Thus evaluating the likelihood amounts to evaluating a product of probability density functions.
More generally, given some statistical model , its likelihood is formally defined as
where is the space of all possible parameters and is some constant for the given . This function allows for comparison between the credibility of different sets of parameters. Higher likelihood means higher credibility. Notably, the ratio of two likelihoods, , provides a relative comparison in which the constant drops out. A formal justification of this credibility interpretation is given by the Wald inequality.
Log-likelihood#
It is common to instead use the log-likelihood, which is simply the logarithm of the likelihood: . The base of the logarithm is usually or 10. This form greatly reduces the range of numbers that are observed in practice, which helps with numerical stability. Analytically, it also turns many products into sums.
The Gradient of the log-likelihood is sometimes called the score function . The negative Hessian is called the observed information matrix .
These functions possess some interesting properties, provided they are sufficiently regular:
- The expected score is zero: .
- The second Bartlett identity holds: . The function (the Covariance of the score) is called the Fisher information matrix (or expected information matrix). This notation is shorthand for each combination of in the covariance.
- The Cramer-Rao inequality holds. In one dimension, and so . In multiple dimension, this generalizes by adding the condition that is positive semidefinite.
Applications#
The likelihood function is generally used in maximum likelihood estimation, which attempts to find the global maximum of in order to find the most realistic parameters for a model. It is also a key component of Bayes' theorem, where it is multiplied by the prior to obtain the posterior.
Footnotes#
-
Actually, this is a bit tricky with continuous variables. For discrete variable, the JDF gives probability. For continuous ones, it's the integral of the JDF that gives the probability, as the JDF gives probability density. Either way, the likelihood interpretation is the same. ↩