Judging an estimator
1. The question
You ran maximum likelihood or method of moments and got a formula. Is it any good?
Two things can be wrong with it, and they’re tracked separately:
- Bias. Across all the samples you could have drawn, does it centre on the parameter?
- Variance. How much do those answers scatter?
Both are properties of the recipe, not of the sample you happen to hold. A perfect sample run through a biased recipe still gives a biased answer.
2. Bias
Take the expectation of your estimator, subtract the true parameter, see what’s left. Zero means unbiased. Anything else is the bias, and it’s usually an expression in and rather than a number.
2.1 How you actually compute it
It’s algebra, not simulation. Nobody ran experiments to find these; they’re derived once on paper and exact for every .
Two tools carry the linear cases:
- Linearity of expectation. , independent or not.
- What the family gives you. ” iid with mean ” means . That’s the assumption, and it’s where enters the algebra.
The sample mean, worked:
Comes out as , the same symbol as the truth, so the bias is .
No number was ever computed. The truth stayed a letter and cancelled. That’s what makes the result stronger than knowing would be: it holds for every possible at once.
2.2 Aug 2023 Q2a, worked
. Is unbiased for ? [2 marks]
Unbiased. Three lines, two marks, and the whole thing is linearity plus .
2.3 When the estimator isn’t linear
and can’t be handled by pushing expectation through, because expectation doesn’t commute with max or with reciprocal. Then you need the distribution of the estimator itself and an integral.
Papers know this is harder and supply what you need. Apr 2024 Q3b hands you the Gamma density explicitly so you can compute .
3. Why maximum likelihood can be biased
The apparent contradiction: MLE optimizes over the parameter, so how can it systematically miss?
Because MLE and bias answer different questions.
- MLE asks: given the one sample I have, which makes this data most probable?
- Bias asks: if I ran this recipe on every possible sample, where would the answers centre?
MLE never looks at the samples you didn’t draw. It can’t, it only has one. So there’s no contradiction in it being biased; it’s answering its own question correctly, and that question isn’t about averages.
3.1 Where the bias comes from
Three shapes of parameter, and only one is free:
- Parameter is a centre → the MLE lands on the sample’s centre → unbiased. A sample’s centre is an unbiased estimate of the population’s centre.
- Parameter is an edge → the MLE lands on the sample’s edge → biased inward. The largest of draws is always inside the true endpoint, because you’d have to draw the endpoint exactly to reach it.
- Parameter is a spread → biased low, because the spread gets measured around rather than around .
3.2 The Uniform maximum, and where n/(n+1) comes from
, MLE is . No draw can exceed , so the max can’t either, and it almost certainly falls short.
By how much: draws mark points on the interval, and points cut it into segments. Since the draws are uniform, no position is special, so every segment has the same expected length by symmetry. The gap above your largest draw is one of those segments.
With the max reads about 83% of . Bias is .
The bias shrinks with and is never zero at finite . That’s asymptotic unbiasedness, which maximum likelihood has in general.
3.3 Sample size helps, sample quality doesn’t
Worth separating, because they’re different claims.
A perfectly representative sample doesn’t help. Five evenly spaced draws from land at 16.7, 33.3, 50, 66.7, 83.3. The max is 83.3 and the truth is 100. Nothing about that sample being good rescues it. The recipe reads low.
A bigger sample does help. gives 99.8% of instead of 83%. More draws crowd closer to the endpoint.
So bias isn’t bad luck in the draw. It’s the recipe, and its size depends on .
3.4 Why the MLE for variance is biased
reads low, every sample, in the same direction.
The reason is one substitution: you measured spread around instead of around . And is by definition the point that minimizes the sum of squared distances to your data. So measuring from anywhere else, including from the true , gives a bigger number.
You’re comparing against the minimum, so you can only come out low.
Numbers. Truth is ; your five heights are 165, 168, 172, 174, 176, so :
| Centre used | Squared distances | Average |
|---|---|---|
| 36, 9, 1, 9, 25 | 16 | |
| true | 25, 4, 4, 16, 36 | 17 |
| 172 | 49, 16, 0, 4, 16 | 17 |
Every alternative centre gives more. Not because those numbers are special, because 171 is the minimizer for that data.
And it reads low whichever way the sample is shifted. A sample of tall people has too high, a sample of short people has it too low, and both produce a spread that is too small. Errors in have signs and cancel; the resulting errors in do not.
The correction is in the denominator instead of , which is why every stats package uses it.
4. The per-family table
Bias is a fact about a pair: the family and the recipe. Method of moments on the same family has a different bias than maximum likelihood does. So it’s a lookup, the same way the density and the moment formula are lookups.
| Family | Parameter | MLE | Biased? | Correction |
|---|---|---|---|---|
| no | — | |||
| low by | divide by | |||
| low by | ||||
| yes | rarely asked | |||
| no | — |
The corrected Uniform estimator is the one on Aug 2023 Q4.
Method of moments is unbiased when the parameter is a linear function of the moment, and biased otherwise. has , linear, so is unbiased. has , curved, so is biased. Same Jensen reason that .
5. The workflow
The course teaches estimation and bias as two units, which makes them look disconnected. They’re one loop:
- Estimate. Run maximum likelihood or method of moments, get a formula.
- Check. Compute and see whether cancels.
- Correct, if it doesn’t and correcting is worth it.
Nobody ships the raw Uniform max or the variance. The corrected versions are what get used, and step 2 is how you find them.
Step 3 says “if it’s worth it” because removing bias can raise variance. The raw max is biased and tight; is unbiased and noisy. Which is better depends on both, which is what mean squared error is for.
6. The sampling distribution
Before you draw the sample, is random, because the sample is. So it has a distribution of its own: a centre, a spread, a shape. That’s the sampling distribution, and bias and variance are just descriptions of it.
The cleanest way to hold it: an estimator is a transformation from the family to a new distribution.
Same centre, narrower by a factor of . Which is exactly why more data helps and why the centre never moves. Similarly turns into something centred at , which is the bias.
Two levels, and confusing them is a real error:
- the data has a distribution, the family, with variance
- the estimator has a distribution, narrower, with variance
Sometimes the output distribution has a name. The sum of exponentials is , which is what Apr 2024 Q3b hands you so you can integrate against it. Sometimes it doesn’t, and you only compute its mean and variance. For large the central limit theorem says the sample mean’s distribution is approximately normal whatever the family, which is what makes confidence intervals possible.
7. Variance
The expected squared distance from the estimator’s own mean. Squared so deviations in both directions count as spread instead of cancelling. The second form is the one you compute with, since is usually easier to get than the definition.
does not appear. Variance is scatter around wherever the estimator centres, right or wrong. Putting in place of gives you mean squared error instead, which is the same shape measured from the truth. The three, side by side:
| Measured from | Formula | |
|---|---|---|
| Bias | the truth | |
| Variance | its own centre | |
| MSE | the truth, squared |
7.1 Every estimator has its own variance
Exactly parallel to bias: it’s a per-estimator fact, derived once and then looked up.
| Estimator | Bias | Variance |
|---|---|---|
| for | 0 | |
| for | ||
| for | 0 |
is the one worth memorising, because the sample mean is what confidence-interval questions use. The formula is the same for every family; what changes is the number you substitute for , and that’s on the formula sheet: for , for , for .
Two different variances, and they get confused. is how spread out the data is, a fact about the world that doesn’t change with . is how spread out your answer is, a fact about your procedure that shrinks with :
| 1 | 100 | 100 |
| 4 | 100 | 25 |
| 100 | 100 | 1 |
Its square root, , is the standard error, and it’s what appears in every confidence interval.
The one that carries most questions:
Two rules for the algebra:
Constants come out squared. And the sum rule requires and to be independent, unlike linearity of expectation which never needs it. So bias calculations survive dependence and variance calculations don’t, which is why the questions state “independent samples” explicitly.
7.1 Unbiased and useless
An estimator can aim perfectly and still be worthless. “Use only the first observation” is unbiased for , since a single draw has expectation . Its variance is rather than , so it scatters times as widely as the sample mean.
Right aim, terrible precision. Which is why neither number decides alone.
8. Efficiency and mean squared error
Efficiency compares two unbiased estimators: the one with smaller variance is more efficient. When a question gives you a family of unbiased estimators indexed by some constant and asks for the best one, it’s asking you to minimize the variance over that constant.
Aug 2023 Q2b is exactly this: , all unbiased for any by part (a), and “for what value of is most efficient?” is 8 marks of writing down in terms of and differentiating.
8.1 The Cramér-Rao bound
Efficiency compares the estimators you happen to have. The Cramér-Rao bound says how good any unbiased estimator could possibly be: for a given family and , there’s a floor below which no unbiased estimator’s variance can go.
where is the Fisher information, a measure of how sharply the likelihood distinguishes nearby values of . A sharply peaked likelihood means the data pins the parameter down well, so the floor is low.
An unbiased estimator that achieves the bound is efficient, and nothing unbiased beats it.
Not on any of the three past finals. Know what it claims and don’t spend an hour on it.
Mean squared error is the referee when bias and variance trade against each other:
One number for total badness. It’s what lets you compare a biased tight estimator against an unbiased noisy one. On : is biased with low variance, is unbiased with high variance, and MSE decides.
Which is also why step 3 of the workflow says “correct it if it’s worth it.” Removing bias can raise variance enough to make the total worse.
9. Consistency
The same question asked in the limit: as the sample size grows, do the bias and the variance both shrink to zero? Equivalently, does as .
So consistency isn’t a seventh idea. It’s MSE again, evaluated at infinity instead of at your actual .
Biased and consistent is the common case, and it’s where most maximum likelihood estimators live. The Uniform max has bias :
| bias as a fraction of | |
|---|---|
| 5 | 17% |
| 1000 | 0.1% |
| 0.0001% |
Nonzero at every finite , approaching zero. The same way is never zero and its limit is.
All four combinations exist:
| Consistent | Not consistent | |
|---|---|---|
| Unbiased | ”use only ” — unbiased, never settles | |
| Biased | ”always answer 7” — bias is , no in it |
The bottom right is the case worth noticing. Nothing requires to appear in a bias term, so an estimator can be biased by a fixed amount forever and no quantity of data helps.
Two things consistency does not tell you. It’s a statement about the limit, so it says nothing about how bad things are at the you have. An estimator that only becomes reasonable at is consistent and useless with 25 observations. And nearly everything sensible is consistent, so passing the test rules out disasters rather than identifying good estimators.
The one direction that is airtight: if the bias grows with , it cannot converge to zero, so the estimator is not consistent.