Two methods estimate the same quantity, whose true value is 10. Method A returns 8 or 12, each half of the time, so it is centered on the target but never hits it. Method B returns 10 or 12, each half of the time, so it sometimes hits the target but is centered one unit too high. Which is better? The word “accurate” hides several different questions, and this lesson separates them into bias, variance, mean squared error and consistency, using these two constructed methods as the running example.
Key terms
Estimator
Definition An estimator of a parameter is a rule that computes a number from the sample data, , without using the unknown value of . Before the data are collected the observations are random, so the estimator is a random variable with a sampling distribution. An estimate is the number that the rule gives for the data actually observed, and it is fixed once the data are in. Bias, variance and mean squared error are properties of the estimator, and consistency is a property of the estimators for growing sample sizes, all computed under a stated sampling model. They describe how the rule behaves over repeated samples, not how close one particular estimate is to .
In plain words The estimator is the method, and the estimate is the number the method produced for your data. A method is judged by how it performs over many repetitions, which one result cannot show.
Example The sample mean is an estimator of the population mean . For the observed data 3, 5 and 10, its estimate is . The sample median is another estimator, and its estimate for these data is 5. If the population is symmetric about , then is also a population median, so the two estimators aim at the same center and can be compared. Methods A and B from the introduction are hypothetical estimators of whose sampling distributions are given directly, so their properties can be computed exactly.
Bias
Definition When exists, the bias of an estimator of is
with the expectation taken under the stated model. It generally depends on the true value of . The estimator is unbiased if its bias is for every value of that the model allows. Under independent random sampling from a population with mean , , so the sample mean is unbiased for . If the population variance is finite and , the sample variance with denominator , viewed as an estimator, is unbiased for , while the version with denominator has expectation and bias . Bias depends on the model. A formula that is unbiased under random sampling can be biased for a convenience sample or for readings from a miscalibrated instrument.
In plain words Bias is the systematic offset, the signed gap between where the estimator lands on average and the target. Unbiased does not mean accurate in each sample. It means that the errors balance out on average over repeated samples.
Example Method A takes the values 8 and 12 with probability each, so and its bias is . Yet neither possible estimate equals 10, and every estimate misses by 2. Method B takes the values 10 and 12 with probability each, so and its bias is .
Variance of an estimator
Definition The variance of an estimator measures the spread of its sampling distribution around its own expected value,
not around the target . Its square root is the standard error . An estimator with smaller variance is more precise. Precision says nothing about where the distribution is centered, so a precise estimator can be concentrated around the wrong value. For independent observations with variance , the sample mean has .
In plain words The variance measures how much the estimate varies from sample to sample. Precision is about repeatability, not about hitting the target.
Example The deviations of A from its own mean 10 are and , so and . The deviations of B from its own mean 11 are and , so and . Method B is more precise than A and is also biased.
Mean squared error
Definition When is finite, the mean squared error of is
It is the expected loss under squared-error loss, which charges for an error of either sign. Squaring keeps positive and negative errors from canceling and weighs large errors more heavily than small ones. Like the bias, the MSE generally depends on the true value of . Under this loss, an estimator whose MSE is smaller at every allowed value of is preferred, while two estimators can each have the smaller MSE for different values of . Other losses, such as absolute error with expected loss , can rank the same estimators differently, so the loss should be stated whenever estimators are compared.
In plain words The MSE is the average squared miss, measured from the target rather than from the estimator’s own center. It puts being off-center and being spread out into one number.
Example The errors of A are and , and the errors of B are and , each with probability , so
Under squared-error loss B is better, despite its bias. The loss can matter. An estimator G whose error is with probability and with probability has MSE and expected absolute error . An estimator H whose error is always has MSE and expected absolute error . Squared error prefers H, and absolute error prefers G.
Bias-variance decomposition
Definition If is finite, then
To see why, split the error into a fluctuating part and a fixed part,
Square and take expectations. The first part gives the variance, and the second part is the constant bias, which gives the squared bias. The cross term is twice the bias times , which is .
In plain words The expected squared miss is the spread around the estimator’s own center plus the squared distance from that center to the target. A biased estimator can have the smaller MSE when it removes more variance than it adds in squared bias. The identity does not say that lowering one term always raises the other. That depends on the estimators being compared.
Example For A the decomposition gives , and for B it gives , matching the direct calculations. A standard case behaves the same way. For independent observations from a normal population, is unbiased for with variance , and the version with denominator , , has bias and variance . With and their MSEs are
The biased version has the smaller MSE for normal data. The denominator is chosen because it makes unbiased, and the example shows that unbiasedness and MSE are different criteria that can disagree.
Consistency
Definition Consistency is a property of a sequence of estimators , one for each sample size , as the sample grows. The sequence is consistent for if for every
for every value of that the model allows. In other words, converges in probability to . A single sampling distribution at one cannot show consistency. A sufficient condition is that for every allowed value of , because , but it is not necessary. Neither consistency nor unbiasedness implies the other.
In plain words A consistent estimator is, with probability approaching 1, within any fixed tolerance of the target once the sample is large enough. It is a promise about large samples and says nothing about how good the estimate is at the sample size you have.
Example For independent, identically distributed observations with mean and finite variance , the sample mean has , so it is consistent for . The estimator has MSE , which tends to , and it concentrates around , so it is not consistent. The estimator is biased at every , with bias , yet its MSE tends to , so it is consistent.
Check yourself
- Estimator C has bias and variance . Estimator D is unbiased and has variance . Which has the smaller MSE, and which is more precise?
Show the answer
By the bias-variance decomposition,
D has the smaller MSE. C has the smaller variance, so it is more precise, but its squared bias of 4 outweighs that advantage under squared-error loss. Here the unbiased estimator wins, while for methods A and B the biased one won, so unbiasedness alone cannot rank estimators.
- An estimator of takes the values 4, 5 and 9 with probabilities , and . Find its bias, variance and MSE, and check that the decomposition holds.
Show the answer
The expected value is , so the bias is . The deviations from are , and , and the variance is
The errors from the target 5 are , and , so the MSE is . The decomposition agrees, since .
- Observations are independent with mean and variance . Compare the estimators , which ignores every observation after the first, and . Which is unbiased, and which is consistent?
Show the answer
The estimator has for every , so it is unbiased. Its distribution is the distribution of whatever the value of . Because the variance is positive, is not constant, so there is some with , and this probability does not shrink as grows. So is not consistent.
The estimator has , so it is biased at every . Its MSE is , for example at , and it tends to , so is consistent. Unbiasedness and consistency answer different questions, and neither implies the other.