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 ) and asks how often a dataset occurs; likelihood holds the observed dataset fixed and scores how plausible different values of are. Maximum likelihood estimation (MLE) picks the parameter that makes the observed data most plausible.
Steps
- Contrast probability and likelihood: before tossing the coin, assuming 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 to ask which heads probability best explains those 7 heads.
- Build the coin likelihood intuitively: each head is more plausible when is larger, and each tail is more plausible when is larger, so the likelihood combines seven times and three times.
- Compare candidate guesses intuitively: a fair coin () typically gives around 5 heads and a very biased coin () typically gives 9 heads, whereas matches the observed 7 out of 10 best.
- State the MLE answer: the sample proportion maximises the likelihood and matches everyday common sense (formal calculus derivations for MLE come later).
Common mistakes
- Thinking likelihood is a probability distribution over that must integrate to 1; likelihood is a function of the parameter for fixed data, not a probability of .
- Ignoring small-sample extremes: with only 2 tosses and 2 heads, MLE gives , which overfits unless you add prior beliefs or smoothing.
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
- Dive into Deep Learning: Maximum Likelihood: Section 24.6.1 'The Maximum Likelihood Principle' (especially 24.6.1.1 'The Coin'): introduces MLE with a biased coin example and connects it to negative log-likelihood.
- StatLect: Maximum Likelihood: Sections 'The sample and its likelihood' and 'Maximum likelihood estimator': define the likelihood and how MLE picks the parameter.
Previous in Probability and statistics: Does need and to be independent? What about ?
Next in Probability and statistics: Can a probability density function take values greater than 1?