Say, $X_1, ..., X_n$ is Poisson($\theta$) distributed. I have to find an unbiased estimator for $\theta^2$. First I have to show that the estimator $T = \bar{(X)}$$^2$ is not unbiased:
$\mathbb{E}\bar{(X)}$$^2$ $ = \mathbb{E}(\frac{1}{n} \sum_{i=1}^{n}X_i)^2 = \frac{1}{n^2}\sum_{i=1}^{n}\mathbb{E}(\bar{X}^2) = \frac{1}{n^2}\cdot n(\theta^2 + \theta) = \frac{\theta^2 + \theta}{n}$. So it is biased. But how can I find an estimator out of this which is unbiased? At first, is this computation right?
Thanks
Assuming the $X_i$ are independent,
we have
\begin{align} E\left[ \bar{X}^2 \right] &= \frac1{n^2}E\left[ \left(\sum_{i=1}^nX_i\right)^2 \right]\\ &= \frac1{n^2}E\left[ \left(\sum_{i=1}^nX_i^2\right)+ 2\sum_{i<j} X_i X_j\right]\\ &= \frac1{n^2}\left[ \left(\sum_{i=1}^nE[X_i^2]\right)+ 2\sum_{i<j} E[X_i]E[ X_j]\right]\\ &= \frac1{n^2} \left[ \left(\sum_{i=1}^n(Var[X_i]+E[X_i]^2)\right)+ n(n-1) \theta^2\right]\\ &= \frac1{n^2} \left[ \left(\sum_{i=1}^n(\theta+\theta^2)\right)+ n(n-1) \theta^2\right]\\ &= \frac1{n^2}(n \theta + n^2 \theta^2)\\ &= \theta^2 + \frac{\theta}{n} \end{align}
Hence it is biased.
To make it unbiased,
note that we have
$$E\left[ \bar{X}^2- \frac{\theta}{n}\right] = \theta^2$$
If $U$ is an unbiased estimator for $\theta$, then
$$E\left[ \bar{X}^2- \frac{U}{n}\right] = \theta^2$$
I will leave the task of finding an unbiased estimator for $\theta$ as an exercise.