The question I tried to solve, but failed, goes like this:
Find the expected value of $(\bar{X}_n)^2$ and find an ubiased estimator for $\mu^2$.
This is the solution given by the TA:
$$E[(\frac{1}{n}\sum^n_{i=1} X_i)^2]$$ $$= E[\frac{1}{n^2}\sum^n_{i=1} X_i \sum^n_{k=1} X_k]$$ $$= \frac{1}{n^2}\sum^n_{i=1} E[X^2_{i}] + \frac{1}{n^2}\sum^n_{i=1} \sum_{k \neq i} E[X_i]E[X_k]$$ $$= \frac{1}{n}(\sigma^2 + \mu^2) + \frac{n-1}{n}\mu^2$$ $$= \mu^2 + \frac{\sigma^2}{n}$$
Hence, the unbiased estimator is: $$(\bar{X}_n)^2 - \frac{\hat{\sigma}^2}{n}$$
I have a few questions about this. The TA will take days to answer and I can't wait that long:
- Where did this $X_k$ come from? why didn't he just use $\frac{1}{n}\sum^n_{i=1} X_i$ twice?
- I don't understand the second line at all. Why is there $\frac{1}{n^2}$ two times? and how did he separate the sum into two parts like that?
- The transition from the second line to the third line is also unclear.
Can anyone please assist me with this question? thank you.