Statistical inference · Definition

Estimator

statisticsinference

Before you start you need to know

It turns data into a conjecture about a quantity we cannot observe directly.

Definition

An estimator \(\hat\theta\) is a rule \(T\), a function of the random sample \(X_i\), that produces a value used to approximate an unknown population parameter \(\theta\).

\[\hat\theta=T(X_1,\dots,X_n)\]

An estimator is a procedure, not a number: before observing, \(\hat\theta=T(X_1,\dots,X_n)\) is a random variable with its own distribution. Applying it to the actual data gives the estimate, which is a number. Thus \(\bar X\) is an estimator of \(\mu\) and \(\bar x=7.2\) is an estimate.

To judge an estimator we ask about its bias, \(E[\hat\theta]-\theta\), and its variability, \(\operatorname{Var}(\hat\theta)\). It is unbiased if the bias is zero: on average it hits the target. Both ideas are summarized in the mean squared error, \(\mathrm{MSE}=\operatorname{Var}(\hat\theta)+\text{bias}^2\), which sometimes favors a slightly biased but much more stable estimator.

Guiding example: \(\bar X\) is unbiased for \(\mu\) and the sample variance \(S^2=\tfrac{1}{n-1}\sum(X_i-\bar X)^2\) is unbiased for \(\sigma^2\); dividing by \(n\) instead of \(n-1\) would bias it downward. An estimator is consistent if it approaches the parameter as \(n\) grows, which the law of large numbers guarantees for \(\bar X\).

A typical mistake is to think an unbiased estimator is always the best: it can have a huge variance, like \(X_1\) compared with \(\bar X\). Another is forgetting that the estimate changes from sample to sample; quantifying that uncertainty is exactly the job of confidence intervals and hypothesis tests.

Think about it

Why does \(S^2\) divide by \(n-1\) and not by \(n\)?

Because deviations are measured from \(\bar X\), which is closer to the data than \(\mu\) is; dividing by \(n\) would underestimate \(\sigma^2\) on average, and with \(n-1\) the bias disappears.

Is \(\bar x=7.2\) an estimator or an estimate?

An estimate: it is the numerical value the estimator \(\bar X\) takes in a particular sample.

Exercises 10

What comes next

References

  • George Casella, Roger L. Berger, Statistical Inference, 2nd edition, Duxbury / Cengage, 2002. §7.1 y §7.3
  • Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying Ye, Probabilidad y estadística para ingeniería y ciencias, 9.ª edición, Pearson, 2012. §9.3
  • Larry Wasserman, All of Statistics, 1st edition, Springer, 2004. §6.3