Statistical inference · Definition
Estimator
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\).
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
- With the sample \(4,\ 8,\ 6,\ 10\), \(\bar X\) is used to estimate \(\mu\). What estimate is obtained?
- Out of \(50\) patients, \(18\) respond to the treatment. If the sample proportion estimates \(p\), what is the estimate?
- An estimator \(\hat\theta\) satisfies \(E[\hat\theta]=\theta+2\). What is its bias?
- For a random sample with mean \(\mu\), which of these is an unbiased estimator of \(\mu\)?
- For the data \(2,\ 4,\ 6,\ 8\), what is the sample variance \(S^2\) (dividing by \(n-1\))?
- An estimator has variance \(4\) and bias \(1\). What is its mean squared error?
- A population has \(\sigma^2=36\). With \(n=9\), what is the variance of \(\bar X\)?
- With \(n=25\), which unbiased estimator of \(\mu\) is preferable: \(\bar X\) or just \(X_1\)?
- If \(\mu=3\) and \(\hat\mu=2\bar X\) is used, what is the bias?
- A sample of size \(n=4\) comes from \(\mathrm{Unif}(0,\theta)\) with \(\theta=10\). It is known that \(E[\max X_i]=\tfrac{n}{n+1}\theta\). What is the bias of \(\max X_i\) as an estimator of \(\theta\)?
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