Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to calculate the standard deviation on the entire population. The population size is 7, but for others it may be between 5-14. I see a few variance algorithms listed on Wikipedia. What stdev algorithms should I use for this population size?

share|cite|improve this question
Your question is not really clear. – smanoos Dec 31 '11 at 20:32
The formula will not change, only the reliability of your estimate. Are you asking for 'variance of tge variance' formulas? – gnometorule Dec 31 '11 at 20:50
I was just wondering if I should square root the two-pass variance algorithm or the naive variance algorithm? Or if there was something else that would provide me with a more accurate estimate for small population sizes? I see warnings about using certain techniques for large population sizes and was just wondering if there was any problem w/ small population sizes. – Bradford Dec 31 '11 at 21:06
up vote 2 down vote accepted

With a small amount of data, you should have no problems with any of the algorithms unless the variance is small and the values are large. In that case, calculate the mean first and then subtract it from the values, since a second pass costs you little.

Much more importantly to avoid a common error, since you have the whole population you should always divide by the population size $n$ rather than $n-1$ (using $n-1$ might make sense if you only had a sample, could not find the population mean, and wanted an unbiased estimate of the population variance).

Then, as you say, take the square root of the variance to get the standard deviation.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.