Likelihood


Likelihood

Given a statistical probability mass function or density, say \( f(x, \theta) \), where \( \theta \) is an unknown parameter, the likelihood is \( f \) viewed as a function of \( \theta \) for a fixed, observed value of \( x \).


Interpretations of likelihoods

The likelihood has the following properties:

  1. Ratios of likelihood values measure the relative evidence of one value of the unknown parameter to another.
  2. Given a statistical model and observed data, all of the relevant information contained in the data regarding the unknown parameter is contained in the likelihood.
  3. If \( \{X_i\} \) are independent random variables, then their likelihoods multiply. That is, the likelihood of the parameters given all of the \( X_i \) is simply the product of the individual likelihoods.

Example


Example continued


Plotting likelihoods


pvals <- seq(0, 1, length = 1000)
plot(pvals, dbinom(3, 4, pvals) / dbinom(3, 4, 3/4), type = "l", frame = FALSE, lwd = 3, xlab = "p", ylab = "likelihood / max likelihood")
plot of chunk unnamed-chunk-1

Maximum likelihood


Some results


Example


lambda <- seq(0, .2, length = 1000)
likelihood <- dpois(5, 94 * lambda) / dpois(5, 5)
plot(lambda, likelihood, frame = FALSE, lwd = 3, type = "l", xlab = expression(lambda))
lines(rep(5/94, 2), 0 : 1, col = "red", lwd = 3)
lines(range(lambda[likelihood > 1/16]), rep(1/16, 2), lwd = 2)
lines(range(lambda[likelihood > 1/8]), rep(1/8, 2), lwd = 2)
plot of chunk unnamed-chunk-2