Log inStart free
LESSON 2.21 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Maximum likelihood and MAP estimation

Watch coin flips pick the most likely bias, with and without a prior.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 2.21 · ESTIMATE BAY7 HEADS · 3 TAILS IN 10 FLIPS
01
Stage 1 of 6 · Flip the coin
The coin lands heads 7 times in 10 flips. Its bias θ is unknown.
Explain it simply

Each square is one flip of the same coin. A filled square is heads, and an empty one is tails. You see 7 heads and 3 tails. The coin's bias, θ, is its chance of heads. You can't see θ, so you estimate it from the flips.

A row of 10 squares, one per flip: 7 heads and 3 tails. The θ axis below runs from 0 to 1 and is still empty.

flips, likelihoodguess θ, priornegative log-likelihoodestimates, posterior
00.20.40.60.81θflipsh = 7 · t = 3 · n = 10HHHTHHHTTH00.20.40.60.81θflipsh = 7 · t = 3 · n = 10HHHTHHHTTH
Toy: one coin, true bias 0.7 (the estimates never see it) · the first n of 50 seeded flips
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
P(H)=θ,P(T)=1−θP(\text{H}) = \sy{th}{param}{\theta}, \qquad P(\text{T}) = 1 - \sy{th}{param}{\theta}
h=7 heads,t=3 tails,n=10h = 7\ \text{heads}, \quad t = 3\ \text{tails}, \quad n = 10

Each flip lands heads with chance θ and tails with chance 1 − θ.

Common mix-ups

MYTHL(θ) is the probability that the bias is θ.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 7 heads in 10 flips, does θ = 0.9 score higher than θ = 0.5?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.