Estimator Quality (Bias, Variance, MSE)
Context: FIT2086_MOC · how to compare two estimators of the same — ML is one recipe among many · every metric here is an expectation over the sampling distribution · distinct from the prediction-side Bias-Variance Tradeoff (Underfitting vs Overfitting)
Quick Revision
- 🎯 Objective: score an estimator by systematic error (), variability (), and their combination ➔ smaller MSE = better.
- 📦 Core Components: | | .
- ⚡ Key Constraint: bias, variance and MSE all depend on the parameterisation — unbiased for does not mean unbiased for ; only consistency survives reparameterisation.
📝 How It Works
1. Bias
- Definition ➔ , the expectation taken over the RVs — how much the estimator over/underestimates on average.
- A function of ➔ bias may be harmless at some and severe at others; it is not a single number.
- Three signs ➔ underestimates · overestimates · for all ⟹ the estimator is unbiased.
- Sample mean is unbiased under weak assumptions ➔ only iid with needed, no family named: .
2. Variance
- Definition ➔ — literally the variance of the sampling distribution.
- Operational reading ➔ draw a fresh sample of size and recompute: the variance says how far (squared) the new estimate is expected to sit from the old one.
- Sample mean ➔ , using independence, then , then ➔ larger , less variable.
3. Mean squared error and its decomposition
- Definition ➔ — average squared distance from the population parameter; larger ⟹ poorer. Absolute error is a legitimate alternative but algebraically nastier.
- Bias–variance decomposition ➔ — MSE’s chief attraction.
- Unbiased case ➔ , so among unbiased estimators “better” = smaller variance = more efficient.
- Sample mean ➔ ➔ independent of · increasing in · decreasing in . Broadly useful, since many MLEs are the sample mean.
4. Parameterisation dependence
- The weakness ➔ bias, variance and MSE are all defined on a chosen expression of the parameter, and unless is linear (see Taylor Approximation of Expectations).
- Concrete failure ➔ is unbiased for , yet : the same estimator is biased for the standard deviation.
- Mitigation ➔ error measures exist that are parameterisation-insensitive — e.g. relative error in place of MSE, which does not care whether you wrote variance or standard deviation.
5. Consistency
- Loose statement ➔ is consistent if it gets closer and closer to as ➔ for large enough samples the estimate is guaranteed good.
- Sufficient test ➔ and as , for all .
- Sample mean qualifies ➔ and ; also derivable from the WLLN (Expectations and Covariance (FIT2086)).
- Why it matters ➔ unlike bias/variance/MSE, consistency does not depend on the parameterisation — and ML is consistent for many (not all) models.
6. Efficiency vs robustness (Studio 3)
- Both metrics need a rival ➔ compare two estimators of the same by ➔ means wins; the ratio is scale-free, so changing leaves it unmoved.
- Sample mean vs sample median ➔ for a normal population both are unbiased, so the verdict is pure variance: the mean uses every value, the median uses only the central one or two ➔ the mean is more efficient, and its lead grows with because falls faster than the median’s.
- Robustness is the counterweight ➔ replace a fraction of the sample with draws of the spread and the mean’s variance inflates while the median’s barely moves ➔ the verdict flips to the median; enough clean data dilutes the contamination and flips it back.
- The general lesson ➔ “better estimator” is a claim conditional on the population you assume; an estimator optimal under exact normality can be the wrong choice under outliers (Measures of Centrality makes the same point descriptively).
- When the algebra runs out ➔ estimate , and by simulation — generate many datasets from a known , recompute on each, and summarise ➔ Monte Carlo Estimator Comparison.
🧮 Proof Blueprint
Theorem. For iid with variance , the ML variance estimator is biased, with ; the rescaled is unbiased. Strategy: re-centre each deviation on , expand the square, collapse the cross term via , then substitute .
Q.E.D. ➔ systematically underestimates the variance (it measures spread about , which sits closer to the data than does), and the bias vanishes as ⟹ consistent.
⚖️ Core Decision Matrix
Comparing the two variance estimators for :
| Estimator | Formula | Bias | Variance | Verdict |
|---|---|---|---|---|
| (underestimates) | biased, but less variable | |||
| for all | unbiased, but always more variable |
When It Flips: always, and unbiasedness is bought with strictly larger variance — so "unbiased" is not automatically "better"; only MSE settles it, and even that verdict depends on whether you asked about or .
✍️ Practice
Practice 1: is a random sample from . Determine the bias of , , .
Reference solution
- Key move: rearrange into , then use ‘s . A single observation is a perfectly unbiased estimator — unbiasedness alone says nothing about quality.
Practice 2: same setup. Compare and and state which is more efficient.
Reference solution :
Both are unbiased, so
- Key move: collapses MSE to variance ➔ averaging 12 observations divides the variance by 12, which is the entire benefit of using the whole sample.
Practice 3: is consistent for ? Justify with the two-condition test.
Reference solution
- No. , which is free of ➔ as , so the bias condition fails regardless of what the variance does.
- Key move: the consistency test needs and ; a bias that does not shrink with sample size is fatal — more data buys precision around the wrong target ().
Practice 4 (Studio 4): for and , derive the bias, variance and MSE, decide consistency, and state the large- distribution.
Reference solution
- Key move: recognise as a sample mean, which lets the generic , results fire with and — no Bernoulli-specific algebra is needed. Consistent: already and .
- Hint: the variance is largest at and vanishes at — precision depends on where in the parameter space you are, which is the same effect behind ML’s boundary overconfidence. The interval built on this appears in Confidence Intervals; the test built on it swaps for ➔ Tests for Bernoulli Populations.
⚠️ Common Mistakes
- 💡 “Unbiased ⟹ better” ➔ is unbiased yet always has larger variance than ; the comparison must go through MSE, and even then can favour the biased estimator.
- 💡 Claiming unbiasedness from one ➔ unbiased means for all ; bias is a function of the population parameter.
- 💡 Transporting unbiasedness through a nonlinear map ➔ unless is linear, so is a biased estimator of .
- 💡 Confusing this with the prediction bias–variance tradeoff ➔ here bias/variance are properties of an estimator of a parameter under repeated sampling; Bias-Variance Tradeoff (Underfitting vs Overfitting) is about model complexity and held-out prediction error.
- 💡 Reading as consistency ➔ both and are required; a fixed bias term never washes out.
🧠 Active Recall
Why does the ML variance estimator underestimate , and why does the fix use ?
Answer
- Short answer: it measures spread about , and is itself fitted to the data so it sits closer to the sample than the true does ➔ , a deficit of exactly . Rescaling by cancels the factor.
- Why: One degree of freedom is consumed by ➔ in the derivation the cross term contributes , i.e. the sampling variance of the plugged-in mean is subtracted from the total.
- Hint: the bias is ➔ irrelevant at , material at .
Sample mean or sample median for the centre of a population? Both are unbiased under normality, so on what does the answer turn?
Answer
- Short answer: on variance, and on whether the normal assumption actually holds. With clean normal data the mean’s MSE is about lower ( at ) because it uses every observation; contaminate even one point in ten with a -wide draw and the ratio exceeds — the median wins.
- Why: Efficiency and robustness are different questions ➔ the median discards magnitude information (its value depends only on the central one or two order statistics), which costs precision on well-behaved data and buys immunity to outliers on badly-behaved data. Verified by simulation in Monte Carlo Estimator Comparison.
- Hint: cancels from ; and the contamination fraction do not.
Two estimators of : one unbiased with variance , one with bias and variance . Which do you prefer, and what caveat must you state?
Answer
- Short answer: the biased one — gives against , so the biased estimator is on average closer to .
- Why: MSE is the single decision metric; unbiasedness is only decisive among unbiased estimators, where MSE reduces to variance (efficiency).
- Caveat: the verdict is parameterisation-dependent — rewriting as or can reverse it, and a bias that does not shrink with also costs consistency.