Bias
An estimator is a random variable, so it has an expectation. Bias asks whether that expectation is the parameter you were trying to estimate.
Definition. Let be an estimator for a parameter . The bias of is and is unbiased if for every value of .
Unbiased means correct on average across all possible samples. It does not mean close on any particular sample, and an unbiased estimator can be badly wrong every single time as long as the errors cancel. That is why bias is never the only criterion, and why Mean Squared Error exists.
Two things bias is not:
- Not a property of an estimate. A number cannot be unbiased. Bias is a property of the rule.
- Not required to hold at one . Unbiasedness must hold for every in the parameter space, which is what makes it a property of the estimator rather than a coincidence.
1. Proving unbiasedness directly
The default method is to compute and compare it to . Two facts carry almost every such computation.
Linearity of expectation. , whether or not and are independent. This is the workhorse, and its independence-free status matters when the sample is dependent.
Identical distribution. All share one expectation, so and the sum collapses.
Worked example: the sample mean. For a random sample with ,
The sample mean is always unbiased for the population mean, whatever the distribution.
Worked example: measurement error. With , :
so is unbiased for for every .
Worked example: rescaling to remove bias. For the discrete uniform on , , so the sample mean estimates rather than . Invert the relationship: if then , and by linearity
so is unbiased for . This is the general repair. If for an invertible linear , applying to produces an unbiased estimator. It works because expectation commutes with linear functions, and it fails for non-linear ones, which is the next section.
Worked example: a family indexed by a constant. For with , consider .
so is unbiased exactly when , giving and recovering the sample mean.
2. Establishing bias without computing an expectation
Some expectations are hard or impossible to compute in closed form. Three arguments settle the question anyway, and each appears on exams precisely because it avoids the calculation.
Jensen’s inequality: bias from non-linearity
Jensen’s inequality. If is convex, then . If is strictly convex and is not constant, the inequality is strict. For concave the inequality reverses.
The consequence for estimation is the general principle behind most bias. If is unbiased for , then is biased for whenever is strictly convex or strictly concave. Expectation passes through linear functions and nothing else.
Worked example. For , the probability of a zero count is . A natural estimator is . Is it unbiased?
Take , which is strictly convex since . Jensen gives
and since is strictly convex and is not constant, the inequality is strict. So : the estimator has positive bias and is not unbiased.
Notice what this argument did not require. was never computed. Convexity plus unbiasedness of the inner estimator settles the direction of the bias on its own.
The bias here shrinks as grows, because concentrates on and a nearly-constant random variable makes Jensen’s gap nearly zero. At with the bias is roughly 0.02.
Bounded support: bias from a hard limit
If an estimator can never exceed the parameter, and sometimes falls short, its expectation must be below the parameter.
Worked example. Raffle tickets numbered , sampled with replacement, estimator . Is it unbiased?
Two observations. First, always, since every ticket number is at most . Second, , since all draws can avoid ticket , which happens with probability .
A random variable bounded above by that is strictly below with positive probability has . So the maximum has negative bias: it systematically underestimates.
The structure generalizes. Any estimator confined to one side of the parameter is biased in that direction, and the argument is two lines with no integration.
The maximum can be repaired. For sampling without replacement from the exact expectation is computable:
is unbiased. The correction inflates the maximum to compensate for the gap between the largest observed value and the true ceiling.
The method of moments variance
The method of moments produces estimators that are often biased, and the standard case explains the in the sample variance.
For with unknown, matching the first two moments gives
which is the sample variance with divisor rather than . It is biased downward, and
The reason is that is fitted to the same data. The deviations are measured from the sample mean, and is by construction the value minimizing . So the sum of squared deviations from is smaller than the sum from the true , and dividing by instead of scales it back up by exactly the right factor:
If the true is known, no correction is needed and is unbiased with divisor , because no degree of freedom was spent.
3. Estimating bias by simulation
When the expectation is intractable, simulate: fix a true parameter value, generate many samples, compute the estimator each time, and average.
m <- 5000
n <- 10
lambda0 <- 1
t1 <- numeric(m)
for (i in seq(m)) {
x <- rpois(n, lambda0)
t1[i] <- exp(-mean(x))
}
mean(t1) # estimate of E[T1]
exp(-lambda0) # the true p0With and this returns roughly 0.387 against a true , so the estimated bias is about , positive as Jensen predicts. Repeating across a grid of shows the bias shrinking toward zero, which is consistency.
A single run tells you nothing about bias. One draw at might give against a true 0.368, and that gap is sampling variation, not evidence of bias. Bias is a statement about the average of many replications.
4. The limits of unbiasedness as a criterion
Unbiasedness is one property, and on its own it is a weak recommendation.
Two unbiased estimators can differ enormously in spread, which is efficiency. And a biased estimator can beat an unbiased one on total error, which is mean squared error. The raffle problem is the clean case: the unbiased has a much larger variance than the biased maximum, and by mean squared error the biased estimator wins.
Vocabulary to deploy
- Bias ; unbiased if for all .
- Positive bias (overestimates on average), negative bias (underestimates).
- Linearity of expectation, which holds without independence.
- Jensen’s inequality: for convex , strict when is strictly convex and is non-degenerate.
- The invariance-of-linearity principle: expectation commutes with linear functions and with nothing else.
- Bounded-support argument: always and with positive probability implies negative bias.
- Degrees of freedom as the reason for the divisor.