Skip to content
BIASED

Maximum likelihood

Block 1 of 7~2 min

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 pp. 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:

L(p)=p7(1−p)3.L(p) = p^7 (1 - p)^3 .

In general, let x1,…,xnx_1, \dots, x_n be an i.i.d. sample from a pmf or density pθp_\theta. The likelihood is

L(θ)=∏i=1npθ(xi).L(\theta) = \prod_{i=1}^n p_\theta(x_i) .

It is the joint probability of the data, read the other way round: the data are fixed and θ\theta varies.

LL is not a distribution over θ\theta. For the coin, ∫01p7(1−p)3 dp=1/1320\int_0^1 p^7(1-p)^3\,dp = 1/1320, not 11. Its size alone says little: L(0.7)≈0.0022L(0.7) \approx 0.0022 is small only because any particular sequence of ten flips is unlikely. Ratios carry the meaning. L(0.5)/L(0.7)≈0.44L(0.5)/L(0.7) \approx 0.44, so a fair coin explains the data about half as well as p=0.7p = 0.7. To talk about the probability of pp itself we need a prior, the subject of the topic Bayesian inference.

The maximum likelihood estimate (MLE) is the value with the largest likelihood:

θ^=arg⁡max⁡θL(θ).\hat\theta = \arg\max_\theta L(\theta) .

Answers are saved on the server and tied to this browser until you sign in.