Why is the degrees of freedom for variance calculation n-1 instead of n?

  • Thread starter Thread starter PRodQuanta
  • Start date Start date
  • Tags Tags
    Statistics
PRodQuanta
Messages
341
Reaction score
0
Well, were trying to get caught up to where we were in school last year. And we are going over standard deviation. I just have a simple question.

Why, when you are examining only a sample do you (when trying to find the variance) use n-1, and when you are examining the population, you use n?

Let's see if I can't get this in latex...:

\sqrt{\frac{1}{n-1}\sum_{i=1}^n ({x_i}-{\bar{x}})^2}intead of \sqrt{\frac{1}{n}\sum_{i=1}^n ({x_i}-{\bar{x}})^2

Sorry if this question insults your intelligence. I just can't see the reason.

Paden Roder
 
Mathematics news on Phys.org
When you compute the average of the sum of the squares using the sample mean (i.e. the sample variance), the mathematical expectation of the sample variance equals the theoretical variance with n-1 not n.
 
You want to estimate the variance of the whole population, if you have the whole population you can just calculate it, but when you have only a small portion (a sample) of the population you know that the variance in that sample is probably going to be bit lower than the variance in the whole population, so in order to make your estimate of the variance in the population more suitable you divide by one less than the number of data points in your sample so that you get a somewhat higher number for your estimated population variance. If the sample gets large enough there is hardly any difference (it does not matter very much whether you divide by 1000 or by 999).
 
Thanks guys. That makes sense.

I liked your post TenaliRaman. After reading mathman and gerben's "laymen" explanation, it was pretty easy to read and discover mathematically what was going on.

Thanks.

Paden Roder
 
Let me just make an addition. When you compute the variance, you have to know the mean. When you computed the mean, the number of degrees of freedom you had to account for in your finite sample was just the number of members in it, say n. Now when you come to use the mean in your variance calculation, you have used up one of your degrees of freedom and bundled it up into the value of the mean. So to divide out the number of degrees of freedom, you only have n-1 of them left.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top