Let $\lbrace x_i,y_i \rbrace_{i=1}^{n}$ be a random sample. Let $\bar{X}$ and $\bar{Y}$ be the sample means.
I want to rewrite the statement
$$\sum_{i=1}^n x_i y_i - \bar{X}\bar{Y}$$ in terms of the standard error $S_{xy}$
My friend claims I can simply say
$$\frac{\sum_{i=1}^n x_i y_i}{n} = \Bbb E[XY]$$ and that
$$\Bbb E [XY] - \bar{X}\bar{Y} = S_{xy}$$
I don't follow why this should be true in general. But I can't explain why.
My Question
Does the sample mean equal the population mean in general and if so why? How does this relate to the variance?