In statistics and machine learning, what is the difference between probability and likelihood, and what is the idea behind maximum likelihood estimation (MLE)? If you toss a coin 10 times and get 7 heads, what is the MLE of its heads probability?

Probability and statistics, Maximum likelihood
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you understand the basic principle used to fit most probabilistic models in machine learning (ML).

Key idea

Probability assumes a fixed model parameter (such as coin heads probability p) and asks how often a dataset occurs; likelihood holds the observed dataset fixed and scores how plausible different values of p are. Maximum likelihood estimation (MLE) picks the parameter p^ that makes the observed data most plausible.

Steps

  1. Contrast probability and likelihood: before tossing the coin, assuming p=0.5 lets you ask what the probability of getting 7 heads in 10 tosses is. After seeing 7 heads in 10 tosses, the data are fixed and you vary p to ask which heads probability best explains those 7 heads.
  2. Build the coin likelihood intuitively: each head is more plausible when p is larger, and each tail is more plausible when 1−p is larger, so the likelihood combines p seven times and (1−p) three times.
  3. Compare candidate guesses intuitively: a fair coin (p=0.5) typically gives around 5 heads and a very biased coin (p=0.9) typically gives 9 heads, whereas p=0.7 matches the observed 7 out of 10 best.
  4. State the MLE answer: the sample proportion p^MLE=7/10=0.7 maximises the likelihood and matches everyday common sense (formal calculus derivations for MLE come later).

Common mistakes

How long your answer should be

Under 2 minutes (4–5 sentences): contrast probability vs likelihood, then give the 7-out-of-10 coin answer.

Read this

Previous in Probability and statistics: Does E[X+Y]=E[X]+E[Y] need X and Y to be independent? What about Var(X+Y)=Var(X)+Var(Y)?
Next in Probability and statistics: Can a probability density function take values greater than 1?