Skip to content
BIASED

Estimators: bias and variance

Block 1 of 7~2 min

From data to guesses

The topic The central limit theorem closed the limit theorems. For i.i.d. X1,…,XnX_1, \dots, X_n with mean μ\mu and variance σ2\sigma^2, the sample mean is approximately normal:

Xˉn≈N ⁣(μ,σ2n).\bar X_n \approx \mathcal N\!\left(\mu, \frac{\sigma^2}{n}\right).

There we knew μ\mu and σ\sigma and asked how the average behaves. Statistics turns the question around. We see the data and do not know the parameter. A classifier made 40 errors on 400 test examples: what is its true error rate pp? A coin landed heads 7 times in 10: what is its bias?

A statistic is any function of the sample that can be computed from the data alone: Xˉn\bar X_n, max⁡iXi\max_i X_i, the number of errors. An estimator of a parameter θ\theta is a statistic

θ^=θ^(X1,…,Xn)\hat\theta = \hat\theta(X_1, \dots, X_n)

that we use as a guess for θ\theta. Its value on the data at hand, a number such as 0.10.1, is the estimate.

Here is the key shift. Before the data are drawn, θ^\hat\theta is a random variable. A fresh test set gives a different error count and a different p^\hat p. The distribution of θ^\hat\theta over repeated samples is its sampling distribution. Every statement about the quality of an estimator is a statement about that distribution, and the CLT above is one such statement about Xˉn\bar X_n.

One parameter can have many estimators. If Xi∼U(0,θ)X_i \sim U(0, \theta), then 2Xˉn2\bar X_n is a sensible guess for θ\theta, since E[Xi]=θ/2\mathbb E[X_i] = \theta/2, and so is the largest observation max⁡iXi\max_i X_i. We need a way to compare them.

Answers are saved on the server and tied to this browser until you sign in.