The_Iceflash
- 50
- 0
Homework Statement
Prove that the sample variance of a sample is given by
S2 = \frac{\sum^{n}_{j=1}x_j^2 - \frac{1}{n} (\sum^{n}_{j=1}x_j)^2}{n-1}
Homework Equations
N/A
The Attempt at a Solution
For my purposes it is sufficient to show that:
\sum^{n}_{j=1}(x_j -x_j^2) = \sum^{n}_{j=1}x_j^2 - \frac{1}{n}\left(\sum^{n}_{j=1}x_j\right)^2
I got as far as this:
= \sum^{n}_{j=1}x_j^2 - \sum^{n}_{j=1}2\bar{x}x_j + \sum^{n}_{j=1}\bar{x}^2
I need help getting from there to here:
= \sum^{n}_{j=1}x_j^2 - \frac{1}{n}\left(\sum^{n}_{j=1}x_j\right)^2
Thanks in advance and I apologize for any coding error.
Last edited: