Prove the sample variance formula.

  • Thread starter Thread starter The_Iceflash
  • Start date Start date
  • Tags Tags
    Formula Variance
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 15K views
The_Iceflash
Messages
50
Reaction score
0

Homework Statement


Prove that the sample variance of a sample is given by
S2 = [tex]\frac{\sum^{n}_{j=1}x_j^2 - \frac{1}{n} (\sum^{n}_{j=1}x_j)^2}{n-1}[/tex]

Homework Equations



N/A

The Attempt at a Solution



For my purposes it is sufficient to show that:

[tex]\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[/tex]



I got as far as this:

[tex]= \sum^{n}_{j=1}x_j^2 - \sum^{n}_{j=1}2\bar{x}x_j + \sum^{n}_{j=1}\bar{x}^2[/tex]

I need help getting from there to here:

[tex]= \sum^{n}_{j=1}x_j^2 - \frac{1}{n}\left(\sum^{n}_{j=1}x_j\right)^2[/tex]

Thanks in advance and I apologize for any coding error.
 
Last edited:
Physics news on Phys.org
statdad said:
Hint: remember that [itex]\overline x[/itex] is a constant and can be removed from summations.

So if I put the [itex]\overline x[/itex]'s in front

[tex]= \sum^{n}_{j=1}x_j^2 - 2\bar{x}\sum^{n}_{j=1}x_j + \bar{x}^2\sum^{n}_{j=1}[/tex]

and rearrange it I get

[tex]= \sum^{n}_{j=1}x_j^2 +\bar{x}^2\sum^{n}_{j=1} - 2\bar{x}\sum^{n}_{j=1}x_j[/tex]

My instincts tell me to factor out the [itex]\overline x[/itex] but I don't see how that could help.
 
The_Iceflash said:
So if I put the [itex]\overline x[/itex]'s in front

[tex]= \sum^{n}_{j=1}x_j^2 - 2\bar{x}\sum^{n}_{j=1}x_j + \bar{x}^2\sum^{n}_{j=1}[/tex]

and rearrange it I get

[tex]= \sum^{n}_{j=1}x_j^2 +\bar{x}^2\sum^{n}_{j=1} - 2\bar{x}\sum^{n}_{j=1}x_j[/tex]

My instincts tell me to factor out the [itex]\overline x[/itex] but I don't see how that could help.

Hint:

[tex] \sum_{i=1}^n \overline x_i = \overline x_i \sum_{i=1}^N 1[/tex]

(you forgot to include the 1: what does the above sum equal?

Hint:

[tex] \overline x = \frac 1 n \sum_{i=1}^n x_i[/tex]

so what must

[tex] \sum_{i=1}^n x_i[/tex]

equal?
 
statdad said:
Hint:

[tex] \sum_{i=1}^n \overline x_i = \overline x_i \sum_{i=1}^N 1[/tex]

(you forgot to include the 1: what does the above sum equal?

Hint:

[tex] \overline x = \frac 1 n \sum_{i=1}^n x_i[/tex]

so what must

[tex] \sum_{i=1}^n x_i[/tex]

equal?

So, [tex]\sum_{i=1}^n x_i[/tex] must be equal to [tex]n\overline x[/tex] correct?

The sum from the first sum is n, correct?