§5.4.2 Bias
The first quality measure of an estimator is its bias estimator bias E[θ̂] − θ: systematic deviation. Sample mean: unbiased; sample variance: biased (fix: divide by m−1). defined in ch. 5 — open in glossary — systematic deviation from truth:
Term by term
| the estimator’s average over datasets — the expectation is over the data seen as random samples | over resamples | |
| the true underlying value that generated the data | fixed, unknown | |
| systematic deviation. Zero → UNBIASED; zero in the m → ∞ limit → asymptotically unbiased | error type 1 |
Three classics, worked. The Bernoulli sample mean is clean:
step 1/3: The candidate estimator: average the m binary samples.
The variance estimator is the famous exception:
step 1/4: The natural candidate: average squared deviation from the SAMPLE mean.
§5.4.3 Variance and standard error
An estimator’s own variance measures how much it wobbles across independent resamplings of the dataset; its square root is the standard error standard error √Var of an estimator across resampled datasets; SE(μ̂) = σ/√m powers the 95% CI μ̂ ± 1.96·SE used to compare algorithms. defined in ch. 5 — open in glossary . The workhorse case:
Term by term
| the mean’s uncertainty shrinks with √m — quadrupling data halves it (the Bernoulli case: Var(θ̂) = θ(1−θ)/m, same 1/m law) | shrinks slowly | |
| the 95% confidence interval, via the central limit theorem (the mean is approximately normal). ML practice: algorithm A beats B when A’s upper bound < B’s lower bound | the comparison rule | |
| estimating σ itself: both √(sample variance) variants UNDERestimate the true standard deviation; the √(unbiased) version less so — fine for large m | caveat |
§5.4.4 The bias-variance trade-off
Bias and variance are the two sources of estimator error — systematic deviation vs sampling wobble. Given one estimator of each flavor, which to prefer? Cross-validation settles it empirically; analytically, compare the mean squared error:
Term by term
| squared systematic error — typically FALLS as capacity rises | underfit side | |
| sampling sensitivity — typically RISES as capacity rises | overfit side | |
| their sum: desirable estimators keep both in check — and its U-shape over capacity IS the generalization-error U-curve of §5.2, rederived from statistics | the U again |
Fig 5.6 (recreated) — the bias-variance trade-off bias-variance trade-off MSE = Bias² + Variance: capacity ↑ typically bias ↓ variance ↑ — the U-curve again; negotiated by cross-validation. defined in ch. 5 — open in glossary : the statistical anatomy of §5.2’s U-curve.
§5.4.5 Consistency
As data grows we want convergence to the truth:
Term by term
| convergence in probability: P(|θ̂ − θ| > ε) → 0 for every ε > 0 — this is (weak) CONSISTENCY; strong consistency = almost-sure convergence | limit notion | |
| consistency implies the bias vanishes asymptotically… | one way | |
| …but NOT conversely: asymptotic unbiasedness does not imply consistency | the trap |
Aside — the classic counterexample
Estimate a Gaussian mean by always using the first sample: . Then for every m — perfectly unbiased, hence asymptotically unbiased. But it never converges consistency plim θ̂m = θ as m → ∞: the estimate converges to truth; implies asymptotic unbiasedness but not conversely. defined in ch. 5 — open in glossary : seeing a million more samples changes nothing. Unbiased ≠ making use of the data.
These properties beg a question the next section answers: instead of guessing estimators and checking them, is there a principle that derives good estimators? Yes — maximum likelihood.
Check yourself — estimator theory
1.Why is the plain sample variance (divide by m) biased, and what fixes it?
2.Your test-set error estimate has standard error SE. How much more data (test examples) halves SE, and why?
3.How do ML experiments typically declare 'algorithm A is better than B'?
4.MSE = Bias² + Variance. How does this connect to §5.2's U-curve?
5.θ̂ = x⁽¹⁾ (always use the first sample) is unbiased for a Gaussian mean. Is it consistent?