The likelihood
The topic Estimators: bias and variance taught us to judge an estimator once someone hands it to us: its bias, its variance, its MSE, whether it is consistent. It did not say where estimators come from. The share of successes for a probability and the sample mean for a mean look natural, but a new model needs a recipe. Maximum likelihood is that recipe: choose the parameter under which the observed data are most probable.
Take the coin with an unknown probability of heads . In 10 independent flips it shows 7 heads and 3 tails. By independence, the probability of this particular sequence is a product of ten factors:
In general, let be an i.i.d. sample from a pmf or density . The likelihood is
It is the joint probability of the data, read the other way round: the data are fixed and varies.
is not a distribution over . For the coin, , not . Its size alone says little: is small only because any particular sequence of ten flips is unlikely. Ratios carry the meaning. , so a fair coin explains the data about half as well as . To talk about the probability of itself we need a prior, the subject of the topic Bayesian inference.
The maximum likelihood estimate (MLE) is the value with the largest likelihood: