Foundations to Frontier
Tests
A. Mathematical Foundations › A5 Statistics › Descriptive and inferential statistics

Point Estimation: Bias, Variance, MSE, Consistency

An estimator is a recipe that turns data into a guess for an unknown quantity. Judge it by its bias (is it right on average?), its variance (how much does it wobble?), their combination the mean squared error, and consistency (does it home in on the truth with more data?). Unbiased is not the same as best: dividing a variance by n + 1 beats n − 1 on MSE, and the James–Stein estimator beats 'use each measurement as is' whenever three or more quantities are estimated together. The Cramér–Rao bound tells you the best possible variance.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Darts, and two kinds of error

Throw darts at a board. One player’s darts land in a tight cluster, but off to the left: biased but precise. Another player’s darts are centred on the bull’s-eye on average but spread all over: unbiased but noisy. What you really care about is how far darts land from the bull’s-eye on average. That combines both: the mean squared error = spread² + offset².

Estimating something from data works the same way. A good estimator is close to the truth on average and doesn’t wobble much. Sometimes a little bias buys a lot less wobble.

Which estimator is best? Bias, variance and MSE
show histogram of:
estimatorbiasvarianceMSE
max-0.4600.1770.389
(n+1)/n · max ★-0.0060.2150.215
2 · mean-0.0260.8250.825
Green: the true value. Orange dashed: the average estimate (the gap is the bias). ★ marks the lowest MSE. For the uniform, the corrected max is unbiased and far less variable than 2 × mean. For the variance, the unbiased ÷(n − 1) loses on MSE to the biased ÷(n + 1): unbiased is not the same as best.
Why engineers care

Estimating a sensor’s bias, a motor’s friction coefficient, a robot’s success rate or a spacecraft’s mass from limited data is point estimation. Picking the estimator with the lowest error, and knowing when more data will help, saves test time and makes systems safer.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Darts tightly clustered but off-centre are…
  2. 2. The mean squared error combines…
  3. 3. Can a slightly biased estimator be better overall?

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Definitions

An estimator θ^=T(X1,…,Xn)\hat\theta = T(X_1, \dots, X_n) is a function of the data. The estimate is its value on the observed data.

  • Bias: b(θ^)=Eθ^−θb(\hat\theta) = \mathbb E\hat\theta - \theta. It’s unbiased if b=0b = 0 for every θ\theta.
  • Variance: Var⁡θ^\operatorname{Var}\hat\theta. Its square root is the standard error (A5.1-2).
  • Mean squared error: MSE⁡=E(θ^−θ)2=Var⁡θ^+b2\operatorname{MSE} = \mathbb E(\hat\theta - \theta)^2 = \operatorname{Var}\hat\theta + b^2.
  • Consistency: θ^n→Pθ\hat\theta_n\xrightarrow P\theta (A4.3-8). Sufficient: MSE⁡→0\operatorname{MSE}\to0.

Examples

  • Xˉ\bar X is unbiased for μ\mu, with MSE σ2/n\sigma^2/n.
  • s2s^2 (divide by n−1n - 1) is unbiased for σ2\sigma^2. Dividing by nn is biased low by σ2/n\sigma^2/n.
  • For Uniform(0, θ), the max is biased low by θ/(n+1)\theta/(n + 1). n+1nmax⁡\frac{n+1}n\max is unbiased and far better than 2Xˉ2\bar X.
📝 Quick check (Level 1)
0/3 answered
  1. 1. bias = 0.5 and variance = 2: MSE?
  2. 2. E[max of n Uniform(0, θ)] =
  3. 3. An estimator whose MSE → 0 as n grows is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.

Unbiased is not best

For normal data, compare σ^d2=∑(Xi−Xˉ)2n−1+d\hat\sigma^2_d = \frac{\sum(X_i - \bar X)^2}{n - 1 + d}. Using ∑(Xi−Xˉ)2∼σ2χn−12\sum(X_i - \bar X)^2\sim\sigma^2\chi^2_{n-1} (A5.1-2), the MSE is minimized at d=2d = 2, dividing by n+1n + 1. Shrinking toward 0 trades a small bias for a bigger drop in variance. The same idea explains ridge regression, weight decay and Bayesian priors (A5.2-2).

The Cramér–Rao lower bound

For a regular model with Fisher information I(θ)=E[(∂θlog⁡f(X;θ))2]I(\theta) = \mathbb E\big[(\partial_\theta\log f(X;\theta))^2\big], any unbiased estimator from nn iid samples satisfies

Var⁡θ^≥1nI(θ)\operatorname{Var}\hat\theta\ge\frac1{nI(\theta)}

An estimator that attains it is efficient. For a normal mean, I=1/σ2I = 1/\sigma^2 and Xˉ\bar X attains the bound. The MLE attains it asymptotically (A5.1-4). The bound tells you whether a better unbiased estimator could exist at all.

Sufficiency, briefly

A statistic TT is sufficient if the data’s distribution given TT doesn’t depend on θ\theta (A4.2-5). Rao–Blackwell: conditioning any estimator on a sufficient statistic never increases its MSE. That’s why good estimators are functions of sufficient statistics: the max for the uniform, and the sum for Poisson counts.

🐍 Exercise 1: bias, variance and MSE by simulation
Measure the bias, variance and MSE of the variance estimators that divide by n − 1, n and n + 1 for normal data, and of three estimators of θ for Uniform(0, θ). Show that the unbiased one is not always best.
📝 Quick check (Level 2)
0/3 answered
  1. 1. For normal data, the variance estimator with smallest MSE divides by…
  2. 2. The Cramér–Rao bound for a normal mean with n samples is…
  3. 3. Rao–Blackwell says conditioning on a sufficient statistic…

Level 3: Advanced

★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.

The bias–variance decomposition

E(θ^−θ)2=E(θ^−Eθ^)2+(Eθ^−θ)2\mathbb E(\hat\theta - \theta)^2 = \mathbb E(\hat\theta - \mathbb E\hat\theta)^2 + (\mathbb E\hat\theta - \theta)^2

Add and subtract Eθ^\mathbb E\hat\theta. The cross term 2(Eθ^−θ) E(θ^−Eθ^)2(\mathbb E\hat\theta - \theta)\,\mathbb E(\hat\theta - \mathbb E\hat\theta) vanishes. ∎

Proof of the Cramér–Rao bound

Let S=∂θlog⁡f(X;θ)S = \partial_\theta\log f(X;\theta) be the score.

  1. The score has mean zero. Under regularity, ES=∫∂θf=∂θ∫f=0\mathbb ES = \int\partial_\theta f = \partial_\theta\int f = 0, and Var⁡S=I(θ)\operatorname{Var}S = I(\theta).
  2. Covariance with the estimator. If θ^\hat\theta is unbiased, ∂θEθ^=1\partial_\theta\mathbb E\hat\theta = 1. Differentiating under the integral gives Cov⁡(θ^,S)=1\operatorname{Cov}(\hat\theta, S) = 1.
  3. Cauchy–Schwarz. 1=Cov⁡2(θ^,S)≤Var⁡θ^⋅I(θ)1 = \operatorname{Cov}^2(\hat\theta, S)\le\operatorname{Var}\hat\theta\cdot I(\theta). For nn iid samples, I→nII\to nI. ∎

Stein’s paradox

Observe Y∼N(θ,σ2Id)Y\sim\mathcal N(\theta, \sigma^2I_d). The “obvious” estimator θ^=Y\hat\theta = Y has risk dσ2d\sigma^2. For d≥3d\ge3, the James–Stein estimator (1−(d−2)σ2∥Y∥2)Y\big(1 - \frac{(d - 2)\sigma^2}{\lVert Y\rVert^2}\big)Y has strictly smaller total MSE for every θ\theta (Stein, 1956; James and Stein, 1961). So the obvious estimator is inadmissible. The proof uses Stein’s identity, E[(Y−θ)g(Y)]=σ2E[∇⋅g(Y)]\mathbb E[(Y - \theta)g(Y)] = \sigma^2\mathbb E[\nabla\cdot g(Y)]. The empirical-Bayes interpretation is that the data estimate how much to shrink (Efron and Morris, 1975).

Exercise 3.1: Compute the MSE of σ̂²_d for normal data

With Q=∑(Xi−Xˉ)2/σ2∼χn−12Q = \sum(X_i - \bar X)^2/\sigma^2\sim\chi^2_{n-1}, EQ=n−1\mathbb EQ = n - 1 and Var⁡Q=2(n−1)\operatorname{Var}Q = 2(n - 1). For σ^2=σ2Q/c\hat\sigma^2 = \sigma^2Q/c: MSE⁡=σ4[2(n−1)c2+(n−1c−1)2]\operatorname{MSE} = \sigma^4\big[\frac{2(n-1)}{c^2} + \big(\frac{n - 1}c - 1\big)^2\big]. Setting the derivative in cc to zero gives c=n+1c = n + 1.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The Cramér–Rao proof uses…
  2. 2. James–Stein dominates the MLE when the dimension d is…
  3. 3. The variance of the score equals…

Level 4: Expert

★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.

Calibrating many sensor biases at once

A robot has 10 gyro or wheel-encoder channels, each with an unknown bias, measured once with noise. Using each reading as its own estimate gives total MSE 10σ210\sigma^2. Shrinking all of them jointly toward a common value (0, or their mean) with James–Stein reduces the total error, here by about 40%, without any prior knowledge. The same principle underlies hierarchical models (A5.2-4), multi-task learning and empirical-Bayes calibration of many similar parts in manufacturing. The catch is that JS improves the total error, not necessarily every individual channel.

🐍 Exercise 2 (research): James–Stein calibration of 10 channels
Simulate 20,000 calibration campaigns of 10 channels. Compare the total MSE of the raw readings (MLE) with the positive-part James–Stein estimator, and check it never does worse even when the true biases are far from the shrinkage target.

Point estimation in AI, robotics and aerospace

  • Bias–variance in ML. Test error = noise + bias² + variance across training sets. Regularization, ensembling and early stopping trade between them (Geman, Bienenstock and Doursat, 1992). The “double descent” curve revisits the trade-off for over-parameterized models (Belkin et al., 2019).
  • Fisher information and experiment design. Choose sensor placements or excitation trajectories that maximize log⁡det⁡I(θ)\log\det I(\theta) (D-optimal design) when identifying robot dynamics or spacecraft mass properties (Swevers et al., 1997).
  • Cramér–Rao bounds in navigation set the best achievable accuracy for GNSS positioning, range-only localization or star-tracker attitude. An estimator that approaches the bound is good enough.
  • Off-policy evaluation. Importance-sampling estimators are unbiased but high-variance. Weighted (self-normalized) and doubly robust estimators accept a little bias for much lower MSE (Jiang and Li, 2016).
  • Shrinkage for reliability. Empirical-Bayes estimates of failure rates across a fleet of similar components beat per-component rates (Efron, 2010).

References

  1. E. Lehmann, G. Casella (1998). Theory of Point Estimation, 2nd ed. Springer.
  2. C. R. Rao (1945). “Information and the accuracy attainable in the estimation of statistical parameters.” Bulletin of the Calcutta Mathematical Society, 37.
  3. H. Cramér (1946). Mathematical Methods of Statistics. Princeton University Press.
  4. C. Stein (1956). “Inadmissibility of the usual estimator for the mean of a multivariate normal distribution.” Proc. Third Berkeley Symposium, 1.
  5. W. James, C. Stein (1961). “Estimation with quadratic loss.” Proc. Fourth Berkeley Symposium, 1.
  6. B. Efron, C. Morris (1975). “Data analysis using Stein’s estimator and its generalizations.” JASA, 70(350).
  7. S. Geman, E. Bienenstock, R. Doursat (1992). “Neural networks and the bias/variance dilemma.” Neural Computation, 4(1).
  8. M. Belkin, D. Hsu, S. Ma, S. Mandal (2019). “Reconciling modern machine-learning practice and the classical bias–variance trade-off.” PNAS, 116(32).
  9. J. Swevers, C. Ganseman, D. Tükel, J. De Schutter, H. Van Brussel (1997). “Optimal robot excitation and identification.” IEEE Transactions on Robotics and Automation, 13(5).
  10. N. Jiang, L. Li (2016). “Doubly robust off-policy value evaluation for reinforcement learning.” ICML.