Definitionintro
Likelihood function
Also called likelihood.
The probability or density of the observed data, viewed as a function of the parameter with the data held fixed. Its logarithm is the log-likelihood.
The likelihood function of a statistical model is the probability, or the density, of the data that were actually observed, read as a function of the parameter. The data are held fixed and the parameter varies. It measures how well each parameter value accounts for the observations, and it is the common input of maximum likelihood estimation, the score function, the likelihood ratio test and Bayesian inference. It is not a probability distribution over the parameter.
Definition
Let a model give the data the density or mass function , , with respect to one fixed measure (counting measure for discrete data, Lebesgue measure for continuous data). For an observed value , the likelihood function is the map
The log-likelihood is , with where .
Independent data. If are observations of independent with densities , then
For iid data all equal .
Defined up to a factor. Two likelihood functions and on the same carry the same information about if for all , with free of . Only ratios have meaning, which is why a change of the dominating measure, or a one-to-one change of the data such as a change of units, does not matter: both multiply by a factor free of . Constant factors such as binomial coefficients and are often dropped.
What it is not. is not a density in :
- Its integral over need not be 1, and need not be finite.
- Under a one-to-one reparametrization , the likelihood function of is , with no Jacobian factor. A density in would pick up . So the point that maximizes moves with , , while the mode of a density does not in general.
- A statement such as " is in with likelihood 0.3" has no meaning. Turning into a distribution over needs a prior, through Bayes' theorem: the posterior is proportional to the prior times .
Relative likelihood. When has a finite maximum , the relative likelihood lies in and is free of the constant factor.
The likelihood principle. It states: if two experiments about the same give data and whose likelihood functions are proportional, then the evidence about from and from is the same. Birnbaum (1962) proved that it follows from two principles that most statisticians accept, the sufficiency principle and a conditionality principle (Casella and Berger, Section 6.3.2). Bayesian inference and pure likelihood methods obey it. Methods that use the sampling distribution, such as p-values and unbiasedness, depend on outcomes that were not observed and can violate it, as the second example below shows. Birnbaum's argument and its consequences are still debated; this page states the principle and does not take a side.
Examples and non-examples
Bernoulli data. Five iid Bernoulli trials give 3 successes, in the order . Then
gives the maximum at , where . At , , so explains the data times better than , which is weak evidence. If only the count 3 is recorded, : a constant factor of 10, the same information.
The integral is , not 1, which shows item 1 above. In terms of the odds , , maximized at , as item 2 says.
Proportional likelihoods, different p-values. Lindley and Phillips (1976) took 9 heads and 3 tails and the null value for the head probability, against .
- If the plan was 12 tosses, the count of heads is Binomial and . The one-sided p-value is .
- If the plan was to toss until the third tail, the count of heads is negative binomial and . The p-value is .
The two likelihood functions differ by the factor , so the likelihood principle says the evidence is the same. The p-values differ, and only the second is below 0.05, because they add up the probabilities of outcomes that did not happen, and those depend on the stopping rule.
Normal data. For iid data, by the second equal form on sample variance,
It depends on the data only through , which is a sufficient statistic. For , and , and is largest at , , the divisor- variance .
A discontinuous likelihood function. For iid Uniform data, for , so
For the data above, for and 0 below. It jumps at 14, is largest there, and has no zero derivative, so the score equation does not find the maximum.
Censored data. If a lifetime is only known to exceed , its factor in is , not a density value. Factors of different kinds may be multiplied as long as each is taken with respect to its own fixed measure, since the measures do not depend on .
Non-example: the density at a fixed parameter. for a fixed is the model density, not the likelihood function. The two are the same formula read in two directions.
Non-example: a product in floating point. The product of 1000 density values near is about , far below the smallest positive double, about , so it rounds to 0 for every . Work with , a sum of logs, and with differences of instead of ratios of .
Related definitions
- Maximum likelihood estimation: choose to maximize ; that page has its properties and failures.
- Score function: the gradient of in ; its variance is the Fisher information, see Fisher information matrix.
- Sufficient statistic: is sufficient exactly when depends on only through , up to a factor free of .
- Likelihood ratio test: compares the maximum of over a null set with its maximum over .
- Marginal likelihood: the integral of against a prior, the normalizing constant of the posterior; it is a number for each model, not a function of .
- Method of moments: an estimator that does not use the likelihood function.
References
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 6.3.1 (the likelihood function) and Section 6.3.2 (the formal likelihood principle and Birnbaum's theorem)
- R. A. Fisher, On the mathematical foundations of theoretical statistics, Philosophical Transactions of the Royal Society A 222, 1922, pp. 309 to 368 (the likelihood of a parameter value and its distinction from a probability)
- Allan Birnbaum, On the foundations of statistical inference, Journal of the American Statistical Association 57(298), 1962, pp. 269 to 306 (sufficiency and conditionality imply the likelihood principle)
- D. V. Lindley and L. D. Phillips, Inference for a Bernoulli process (a Bayesian view), The American Statistician 30(3), 1976, pp. 112 to 119 (9 heads and 3 tails under a binomial and a negative binomial stopping rule)
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 T1231X Edit this page History Report an error Markdown