Prove the sample variance formula.

  • Thread starter Thread starter The_Iceflash
  • Start date Start date
  • Tags Tags
    Formula Variance
Click For Summary
SUMMARY

The sample variance formula is defined as S² = (Σx_j² - (1/n)(Σx_j)²) / (n-1). The discussion focuses on proving this formula by manipulating summations involving the sample mean, denoted as \overline{x}. Key steps include recognizing that \overline{x} is a constant that can be factored out of summations, leading to the simplification of terms. The final goal is to express the sample variance in terms of the sums of the sample values and their mean.

PREREQUISITES
  • Understanding of sample variance and its mathematical representation
  • Familiarity with summation notation and properties
  • Knowledge of basic statistics, particularly concepts of mean and variance
  • Proficiency in algebraic manipulation of equations
NEXT STEPS
  • Study the derivation of the sample variance formula in detail
  • Learn about the properties of summations and how they apply to statistical formulas
  • Explore the implications of using sample variance in statistical analysis
  • Investigate alternative methods for calculating variance, such as using the population variance formula
USEFUL FOR

Students in statistics, educators teaching variance concepts, and anyone involved in data analysis requiring a solid understanding of sample variance calculations.

The_Iceflash
Messages
50
Reaction score
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:
Physics news on Phys.org
Hint: remember that \overline x is a constant and can be removed from summations.
 
statdad said:
Hint: remember that \overline x is a constant and can be removed from summations.

So if I put the \overline x's in front

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

and rearrange it I get

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

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

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

and rearrange it I get

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

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

Hint:

<br /> \sum_{i=1}^n \overline x_i = \overline x_i \sum_{i=1}^N 1<br />

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

Hint:

<br /> \overline x = \frac 1 n \sum_{i=1}^n x_i<br />

so what must

<br /> \sum_{i=1}^n x_i<br />

equal?
 
statdad said:
Hint:

<br /> \sum_{i=1}^n \overline x_i = \overline x_i \sum_{i=1}^N 1<br />

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

Hint:

<br /> \overline x = \frac 1 n \sum_{i=1}^n x_i<br />

so what must

<br /> \sum_{i=1}^n x_i<br />

equal?

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

The sum from the first sum is n, correct?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
Replies
3
Views
1K
Replies
0
Views
892
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
8
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
4
Views
2K
Replies
5
Views
2K