23  Bias of Estimators

Example 23.1 Recall that in the car dealership problem we were trying to estimate \(\mu\) based on a random sample \(X_1, \ldots, X_n\) from a Poisson(\(\mu\)) distribution. We considered a few different estimators of \(\mu\).

\[\begin{align*} \bar{X} &= \frac{1}{n}\sum_{i=1}^n X_i\\ S^2 & = \frac{1}{n-1}\sum_{i=1}^n\left(X_i-\bar{X}\right)^2\\ \hat{\sigma}^2 & = \frac{1}{n}\sum_{i=1}^n\left(X_i-\bar{X}\right)^2\\ \hat{\mu} & = \frac{n}{n+100}\bar{X}+ \frac{100}{n+100}(2.3) \end{align*}\]

Let’s see how these estimators perform when \(\mu = 2\) for samples of size \(n=3\).

  1. Describe in detail how you could use simulation to approximate the distribution of \(\bar{X}\) for samples of size \(n=3\) when \(\mu=2\).




  2. Conduct the simulation and approximate \(\text{E}(\bar{X})\). Interpret this value.




  3. Repeat parts 1 and 2 for \(S^2\).




  4. Repeat parts 1 and 2 for \(\hat{\sigma}^2\).




  5. Repeat parts 1 and 2 for \(\hat{\mu}\).




  6. Identify if each estimator tends to overestimate \(\mu\), underestimate \(\mu\), or neither, when \(\mu=2\). But then explain why this information by itself itself helpful, and what we should do next.




Example 23.2 Consider estimating \(\mu\) for a Poisson(\(\mu\)) distribution. Determine which of the following estimators are unbiased estimators of \(\mu\) based on a random sample from a Poisson(\(\mu\)) distribution. If the estimator is not unbiased, identify and plot its bias function.

  1. \(\bar{X}\).




  2. \(S^2\)




  3. \(\hat{\sigma}^2\). (Hint: \(\hat{\sigma}^2 = \frac{n-1}{n} S^2\).)




  4. \(\hat{\mu} = \frac{n}{n+100}\bar{X}+ \frac{100}{n+100}(2.3)\).




Example 23.3 Continuing the Poisson(\(\mu\)) problem. Let \(\theta=e^{-\mu}\). We know \(\bar{X}\) is an unbiased estimator of \(\mu\). We also know that \(\hat{\theta}=e^{-\bar{X}}\) is the MLE of \(\theta=e^{-\mu}\). Is \(\hat{\theta}\) an unbiased estimator of \(\theta\)?

  1. Describe in detail how you would use simulation to approximate the bias of \(\hat{\theta}\) as an estimator of \(\theta\) when \(\mu = 2\).




  2. Describe in detail how you would use simulation to approximate the bias function of \(\hat{\theta}\).




  3. Explain the reason why \(e^{-\bar{X}}\) is a biased estimator of \(e^{-\mu}\) even though \(\bar{X}\) is an unbiased estimator of \(\mu\).




Example 23.4 Continuing the Poisson(\(\mu\)) problem. Consider the estimator \(\hat{\sigma}^2\). Recall that the bias function is \(\text{bias}(\hat{\sigma}^2) = -\frac{\mu}{n}\). What happens to the bias function as \(n\) increases. What does this mean?




23.1 Exercises

Exercise 23.1 Consider estimating the rate parameter \(\lambda\) of an Exponential population based on data \(X_1, \ldots, X_n\) from a random sample of size \(n\). (For example, you want to estimate the rate at which earthquakes occur based on a sample of times between earthquakes.)

We have seen that the MLE of \(\lambda\) is \(1/\bar{X}\).

  1. Determine \(\text{E}(\bar{X})\) in this case. Your answer should be an expression involving \(\lambda\).




  2. Is \(1/\bar{X}\) an unbiased estimator of \(\lambda\)? Justify your reasoning by considering expected values.




  3. Explain in full detail how you could conduct a simulation to approximate the bias of \(1/\bar{X}\) when \(\lambda = 2\) for a given \(n\).




  4. Explain in full detail how you could conduct a simulation to approximate the bias function of \(1/\bar{X}\) for a given \(n\).




Exercise 23.2 Consider estimating the population mean \(\mu\) and population variance \(\sigma^2\) for a Normal population based on data \(X_1, \ldots, X_n\) from a random sample of size \(n\). (For example, assume credit scores follow a Normal distribution and you want to use sample data to estimate the mean and variance of credit scores.)

We have seen the MLEs of \(\mu\) and \(\sigma^2\) in previous handouts.

  1. Is the MLE of \(\mu\) an unbiased estimator of \(\mu\)? If so, explain why. If not, find the bias function.




  2. Is the MLE of \(\sigma^2\) an unbiased estimator of \(\sigma^2\)? If so, explain why. If not, find the bias function.





  1. We are only considering bias in estimation: is there bias in how we use the data to estimate the parameter? There could also be bias in data collection, in how the sample is selected and how the variables are measured. In this course we always assume that we have a “perfect” random sample from the population; in practice, that will never be true, but it might be a reasonable assumption based on how the data are collected. In any case, the bias function only quantifies bias in estimation, not bias in data collection.↩︎