Whenever we discuss sample mean , we usually acknowledge the randomness inherent with sampling in the form of standard errors, confidence intervals, and hypothesis tests. These same principles apply to sample standard deviation but are often times over looked.
In the figure above, we can see how the 95% confidence interval narrows as sample size increases. Our estimation of population standard deviation improves as sample size increases.
At low samples, the randomness from sampling can be significant. For example, sample size of , results in 95% confidence interval of . We are 95% confident that the population standard deviation is between 0.796x and 1.344x the sample standard deviation .
This blog post will shows how to calculate confidence intervals and hypothesis tests for standard deviation. Note: These calculations assume the underlying distribution is normal.
Also see the previous blog post for Standard Error of Sample Standard Deviation
Confidence Interval of Sample Standard Deviation
Two Sided Confidence Interval
The distribution of sample variance follows the chi-squared distribution. The following was taken from Wikipedia Standard Deviation:
This can be simplified as:
- is the sample standard deviation
- is the population standard deviation or true standard deviation
- is the degree of freedom
- is the confidence level
- is the significance level
- is the -th quantile of the chi-squared distribution,
One Sided Confidence Interval
Left Sided:
Confidence interval with an upper limit on population standard deviation. Note: Standard deviation can not be negative.
Right Sided:
Confidence interval with an lower limit on population standard deviation.
Hypothesis Testing of Sample Standard Deviation
Closely related to the idea of confidence intervals is hypothesis testing, which evaluates if the sample standard deviation is significant compared to an assumed population standard deviation (null hypothesis).
The following test statistic is used for chi squared distribution:
Calculations based on LibreTexts Hypothesis Test on a Single Standard Deviation and Elgin EDU Hypothesis Tests for a Population Standard Deviation
Two Tailed Hypothesis Test
Evaluates if the sample standard deviation is significantly different than the expected standard deviation. The chi squared distribution is not symmetric, both tails of the distribution need to be evaluated.
The p-value would be compared with the significance level , usually
- is the null hypothesis
- is the alternate hypothesis
- is the population standard deviation
- is the value selected for the null hypothesis
- is the calculated test statistic
One Tail Hypothesis Test
Left Tailed:
Evaluates if the standard deviation is less than a upper limit. Ex. is less than 5 based on sample data.
Right Tailed:
Evaluates if the standard deviation is greater than a lower limit. Ex. is greater than 5 based on sample data.