Tick a section at the top to show it.
Learn by doing, one step at a time
Pick a problem, or press Random set (top) for 10 random steps from the sprints you ticked. Each step asks you for one small thing, and the previous step is shown above it. Wrong answers explain what went wrong, and your working builds up on the right like it would on paper.
Symbols that aren't in the question (they're the course conventions): n = how many data values you have. xi = the i-th data value (x1 = first, x2 = second, …). k or x in a pmf/pdf = a placeholder that becomes xi in the likelihood.
Highlighted = information you've already pulled out of the question. Each step has a pink reference code (like R6). Click it to copy, then paste it into the chat with your question.
Sheet drill
Each card describes a moment in an exam question. Click the line on your formula sheet (left) that you'd use. The sheet has its own score.
The big idea
You saw some data. The distribution has an unknown parameter θ. MLE picks the θ that makes the data you saw most probable. On the chart, that's the top of the hill: the one place the slope is zero.
- Define the RV, name the distribution"Let X = …; X ~ Name(θ)."
- Likelihood as a productL(θ) = ∏ f(xᵢ; θ). pmf if discrete, pdf if continuous.
- Take the log, simplify to sumsℓ(θ) = ln L(θ). Terms without θ are constants.
- Differentiate, set ℓ′(θ) = 0, solveThat solution is θ̂.
- Show it's a maximumℓ″(θ) < 0.
- Plug in the data, give unitsRate → "per hour". Mean → data's units.
Why take the log?
Products are painful to differentiate; sums are easy. ln is strictly increasing, so whatever θ maximises L also maximises ℓ = ln L.
Any factor with no θ in it becomes an additive constant after logging. It vanishes when you differentiate, so write "+ C" (or keep it as −Σ ln xᵢ!) and say it's constant in θ.
Invariance property
If θ̂ is the MLE of θ, then for any function g, the MLE of g(θ) is g(θ̂). No new derivation needed.
If a question says "name the property", the answer is the invariance property of MLEs.
Units
- Rate (events per time, hazard): "per minute", "per hour".
- Mean: same units as the data.
- Probability / proportion: unitless; "per item" can help.
Example 1 · discrete
Each batch has 10 items. Let X = number of defective items in a batch, X ~ Binomial(10, p), with
Over n = 3 batches you see 2, 1, 3.
Likelihood (product)
Same base, so exponents add.
Log-likelihood
The first sum has no p: it's a constant. It plays the same role ln(xᵢ!) plays in a Poisson problem.
Derivative = 0
Maximum check
Both terms are negative for 0 < p < 1, so ℓ is concave and p̂ is a maximum.
Numbers
Σxᵢ = 6, so p̂ = 6/30 = 0.2 defects per item.
Example 2 · continuous
Let X = fraction of a job completed before a timeout, with pdf
You observe n = 3 values: 0.5, 0.8, 0.9.
Likelihood
n copies of θ multiply to θⁿ. People often skip this step.
Log
Derivative = 0
Each xᵢ < 1, so Σ ln xᵢ is negative and θ̂ > 0. Good.
Maximum
Numbers
θ̂ = 3 / 1.0217 ≈ 2.94 (dimensionless, since x is a fraction).
Invariance in action
The mean of this distribution is θ/(θ+1), so its MLE is θ̂/(θ̂+1) = 2.94/3.94 ≈ 0.746.
Common mistakes
- Writing L as a sum instead of a product
- Forgetting n copies of θ make θⁿ, which becomes n ln θ
- Silently dropping the constant term. Say it's constant in θ.
- Skipping the second-derivative check
- Missing units, or the wrong time unit
Plan paragraph template
"I'll define the RV and its distribution, write the likelihood as a product of the pmf/pdf, take the log and simplify to sums, differentiate and set to zero to find θ̂, check the second derivative is negative to confirm a maximum, then substitute the data and state units."
When this feels solid, start a 25-minute timer and do the sprint on paper, no notes.
Decode the question before any maths
The MLE steps are the same every time. What changes is the decoding at the start. Read once, then fill in these six lines on your paper.
| Ask yourself | Look for | Write down |
|---|---|---|
| What's being counted or measured? | "the number of…", "the time until…", "the lifetime of…" | X = … |
| Which distribution? | Usually named (X ~ …), or spotted from keywords | X ~ Name(θ) |
| What's unknown? | The symbol you're asked to find (λ, p, θ…) | Parameter = … |
| Any known constants? | Numbers built into the distribution, not data ("batches of 10") | m = 10, etc. |
| How many observations? | "over 5 minutes", "test 4 units", or count the data | n = … |
| What are the data and units? | The list of numbers, plus "per minute", "hours" | x₁, …, xₙ; units |
The key move: the pmf/pdf is written with a generic letter (k or x). In the likelihood, that letter becomes xᵢ, one copy per observation.
Mix-ups to watch
- n vs. other counts. n is how many numbers are in your data list. "10 items per batch" is a constant, not n.
- k vs. xᵢ. In P[X = k], k is a placeholder. Replace it with xᵢ everywhere.
- Parameter vs. data. You differentiate with respect to the parameter. Anything with an i on it is data: treat it as a number.
- Rate vs. mean. Rate is "per unit"; a mean has the data's units. Found one but asked for the other? Use invariance.
Building the sheet
Write it yourself rather than copying a finished version. Writing it is part of learning it, and you'll know where everything is on exam day.
Then test it: take an unseen question, use only the sheet, and notice where you hesitate. Each hesitation is a line the sheet is missing.
For each distribution below, you can add its pmf/pdf and final MLE so you can check your derivation lands in the right place.
Keyword → distribution
| Wording | Distribution |
|---|---|
| Count of events per time or space ("errors per minute") | Poisson(λ) |
| Time until an event, lifetime, waiting time | Exponential(λ) |
| Number of successes in m fixed trials | Binomial(m, p) |
| Number of trials until the first success | Geometric(p) |
| Single yes/no outcome | Bernoulli(p) |
| Measurement scattered around a centre | Normal(μ, σ²) |