Bias and variance of an estimator

The question
Four procedures estimate a true value of 10. How would you compare where their estimates land?
Judge the procedure across samples, then measure its error.
- 1 SeeClassify four estimation procedures.
- 2 TryCompare errors and choose a weight.
- 3 ProveBuild the error decomposition.
- 4 ApplyCompute and interpret estimation errors.
Before you start · 3 quick checks on expectations, standard deviations, and sampling distributions
Two ideas before you start
2 ideasCompare the center with the truth
Two equally likely estimates and a fixed mark for the true value.
Bias compares the average estimate with the true value. Its sign tells you the direction of the offset.
Exact definition
A parameter \(\theta\) is a fixed number describing the population. An estimator \(T\) is a rule computed from the random sample, without using the unknown parameter. Its realized output is an estimate. At a fixed population model, its bias is
\[b=E[T]-\theta.\]The expectation averages over fresh samples drawn by the specified sampling rule. An estimator is unbiased over a model family if this difference is zero at every allowed parameter value. A calculation at one value establishes only its bias there.
Measure spread around the estimator’s own center
Two equally likely estimates move closer to or farther from their common mean.
Variance measures how much the estimator changes between samples. The reference point is its own mean, which need not be the truth.
Exact definition
With \(m=E[T]\), the estimator’s variance and standard error are
\[\begin{aligned}v&=E[(T-m)^2],\\\operatorname{SE}(T)&=\sqrt v.\end{aligned}\]Bias and standard error use the units of the estimate; variance uses squared units. These definitions require the relevant moments to exist. Throughout this lesson, the estimators have finite second moments. Review expectation and variance for probability-weighted averages.
What is repeated, and what stays fixed?
Repeat the original data collection, keeping the population, sample size, and estimation rule fixed. Record one estimate from each sample. This is the sampling distribution already studied in the preceding lesson. Here the additional reference point is the population parameter being estimated.
A single estimate can miss the truth even when the procedure is unbiased. Conversely, a biased procedure can happen to give a close estimate on one sample. Neither property can be diagnosed just by looking at one realized error. The examples below supply the true value for comparison; real data usually do not.
Classify four procedures
- Read each procedure’s possible outputs. Each has equal probability.
- Choose a bias category and a variance category for every procedure.
- Check your classifications to reveal the target plots and error bars.
The laws listed here are exact teaching models at the stated true value. They are not four small datasets whose unknown populations must be inferred. Use the midpoint to find the mean of each equally likely pair, then compare its spread around that midpoint.
A score for distance from the truth
Mean squared error, abbreviated MSE, averages squared errors from the fixed parameter:
\[\operatorname{MSE}(T)=E[(T-\theta)^2].\]Every error is squared before averaging, so an underestimate cannot cancel an overestimate. The bars separate this score into squared bias and variance. Their lengths use a common scale. Stage 3 explains why those two pieces add exactly.
A small variance says the procedure is repeatable. It does not say the repeated answers lie near the truth. A small bias says its center is close to the truth. It does not say individual answers stay near that center. MSE is one way to put those two considerations on a common scale; it is not the only possible loss function.
Compare a new estimation rule
Pulling a sample mean toward a fixed reference is called shrinkage. The reference is chosen before observing the current sample. It is not replaced by the unknown truth. Pulling toward it can reduce the variability of the estimate while moving its center. Whether the total score improves depends on how far the reference is from the truth, compared with the variance of the sample mean.
Let iid observations have mean \(\theta\), finite variance \(\sigma^2\), and sample size \(n\). With a fixed reference \(c\) and a nonrandom weight \(0\le\lambda\le1\), define
\[\begin{aligned}T_\lambda&=\lambda\bar X+(1-\lambda)c,\\b_\lambda&=(1-\lambda)(c-\theta),\\v_\lambda&=\lambda^2\sigma^2/n.\end{aligned}\]These formulas use linearity and variance scaling from the neighboring lessons. No normal distribution is needed. A weight chosen using the same data is random and needs a separate calculation.
Use what you found: choose a weight
- Move the weight slider and compare the two parts of MSE.
- Check the weight against the current goal, then advance to the next benchmark.
Why this is a benchmark, not a recipe using the truth
The explorer tells you the true population mean so you can compare rules. In an actual estimation problem that value is unknown. Selecting the best weight by inserting the truth would not be an available estimator. A practical selection method requires additional information or its own assessment of error.
Also distinguish estimation error from predicting a new noisy observation. This page scores an estimate of a fixed parameter. Prediction of a new observation can have an additional noise term. That is a different target and is not included in these MSE bars.
Split the squared error
Let \(T\) be a real estimator with \(E[T^2]\lt\infty\), and let \(\theta\) be a fixed finite real parameter. Define \(m=E[T]\), \(b=m-\theta\), \(v=\operatorname{Var}(T)\), and \(Y=T-m\). Then
\[\operatorname{MSE}(T)=v+b^2.\]Expectation is taken under one fixed sampling model. The result does not require independent observations, a normal distribution, or an unbiased estimator. The earlier sample-mean variance calculation uses independence; this identity does not.
The choice exercise assumes additionally \(b\ne0\) and \(v\gt0\), so every alternative equation stays distinct. Build the proof from centered errors. The read mode shows the same steps. The identity itself also covers the zero cases discussed afterward.
The cross term vanishes because the random part was centered at its own expectation. It does not vanish because the estimator and its error are independent. The bias is a fixed number under this model, so it can be taken outside the expectation.
If the estimator is unbiased at this parameter, its MSE equals its variance. If its variance is zero, it is constant with probability one; its MSE is the squared distance of that constant from the truth. MSE is zero exactly when the estimator equals the truth with probability one. A negative bias contributes just as much as a positive bias of the same magnitude.
Compute and interpret the score
Enter decimals without units. Each problem states its accepted error and includes hints and a worked solution. Keep signed bias, standard error, and MSE separate.
What a bootstrap can and cannot tell you here
The bootstrap lesson resamples the observed data to approximate sampling variation. Its distribution is conditional on the sample. The difference between the mean bootstrap estimate and the observed estimate can be used as a plug-in estimate of bias, but it need not equal the true repeated-sampling bias.
In particular, resampling cannot reveal a population group that the original sampling rule never included. Repeatedly reproducing a biased data collection process does not establish accuracy. Use the known laws on this page to understand the quantities; use an appropriate sampling model when estimating them from data.
Further reading
- G. Casella and R. L. Berger, Statistical Inference, chapter 7, “Point Estimation.”