I have a simple question. $X$ is a random variable with mean $μ$, and there is a sample of size $n$: $X_1, X_2, \cdots, X_n$. Then what is the expected value of the sample mean $\overline{X}$?
This is what I thought:
$$\overline{X} = \frac{1}{n}(X_1+X_2+X_3+\cdots+X_n),$$
thus $\overline{X}$ is a certain value (constant), therefore $E(\overline{X}) = \overline{X}$. Similarly, $\overline{X}^2$is also a certain value (constant) and $E(\overline{X}^2) = \overline{X}^2$.
But it turns out there's something wrong. Could someone please explain it to me? Thanks in advance.
$\endgroup$ 21 Answer
$\begingroup$The problem in your reasoning is that the random variables $X_1,X_2,\ldots,X_n$ are actually NOT constants and so the sum $\frac{1}{n}(X_1+\ldots X_n)$ is not a constant either. As mentioned by Qiaochu, the expected value of the sample mean is the population mean (often denoted by $\mu$).
$\endgroup$