What the lesson covers
Maximum likelihood picks the parameter value that makes the observed data most probable. Students slide along the likelihood of 7 heads in 10 tosses to find its peak, use the log-likelihood to solve for it and estimate a Poisson rate.
The slides, one by one
1 Maximum likelihood estimation
Which value best explains the data?
A coin lands heads 7 times in 10. What is your best guess for p?
2 The likelihood peaks at the best estimate
L(p) = p^7 (1 - p)^3
Live graph: y = 1000·x⁷·(1 - x)³
\begin{aligned}&\textsf{Slide the point: the peak is at}\\
&p = 0.7\end{aligned}
3 Logs turn products into sums
\ell(p) = 7\ln p + 3\ln(1 - p)
Live graph: y = 2.3026·(7·log10(x) + 3·log10(1 - x))
\begin{aligned}&\ell'(p) = 7/p - 3/(1 - p) = 0\\
&\textsf{gives }\hat p = 0.7\end{aligned}
4 Estimating a Poisson rate
A call centre logs 2, 4, 3, 5 and 1 calls in five minutes. Model the counts as Poisson(λ) and find the maximum likelihood estimate of λ.
→ Write the log-likelihood, differentiate, set to zero
\ell(\lambda) = \textstyle\sum x_i \ln\lambda - n\lambda + \text{const}
\ell'(\lambda) = \dfrac{\sum x_i}{\lambda} - n = 0
\hat\lambda = \dfrac{\sum x_i}{n} = \dfrac{15}{5} = 3
The estimate is λ = 3 calls per minute: the sample mean
5 Quick check
In 120 trials there are 30 successes. The maximum likelihood estimate of p is…
Show the answer
0.25
For binomial data, p̂ = successes ÷ trials = 30 ÷ 120 = 0.25.
6 What to remember
Likelihood: probability of the data given θ
MLE: the θ that maximises it
\begin{aligned}&\textsf{Maximise }\ln L\textsf{: same peak,}\\
&\textsf{easier maths}\end{aligned}
\begin{aligned}&\textsf{Binomial: }\hat p = x/n\textsf{; Poisson:}\\
&\hat\lambda = \bar x\end{aligned}
Challenge: Why does taking the logarithm not change where the maximum is?
Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.
Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.
Questions teachers ask
What is a maximum likelihood estimate?
The value of a parameter that maximises the likelihood L(θ), the probability of the observed data. You usually maximise the log-likelihood instead: for 7 heads in 10 tosses the estimate of p is 7/10 = 0.7.
Are these slides really free?
Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.
Can I change the slides before my lesson?
Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.
Do they work on a classroom projector or an interactive whiteboard?
Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.