I am proving a statement about the expectation of $\hat{\beta}$ in a linear regression and the following statement could help in my proof.
Assuming $X\sim N(\mu, \sigma^2)$ can we show that
$$\sum_{i=1}^n(x_i - \bar{x})x_i = \sum_{i=1}^n (x_i - \bar{x})^2$$
Thanks.
The summand in the LHS is $x_i^2 - \bar{x} x_i$ and the summand in the RHS is $x_i^2 - 2 \bar{x} x_i + \bar{x}^2$, so you're asking whether $$\sum_{i=1}^n (\bar{x}^2 - \bar{x}x_i) = 0.$$ The LHS can be rearranged as $$n \bar{x}^2 - \bar{x} \sum_{i=1}^n x_i$$ which equals zero because by definition, $\bar{x} = \frac{1}{n} \sum x_i$.