Confidence Intervals and Hypothesis Tests on Standard Deviation

January 19, 2026

statistics
95% Confidence Interval of Standard Deviation vs Sample Size

Whenever we discuss sample mean x^\hat{x}, 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 ss but are often times over looked.

In the figure above, we can see how the 95% confidence interval narrows as sample size nn increases. Our estimation of population standard deviation σ\sigma improves as sample size nn increases.

At low samples, the randomness from sampling can be significant. For example, sample size of n=30n=30, results in 95% confidence interval of [s0.796,s1.344][s*0.796, s*1.344]. We are 95% confident that the population standard deviation σ\sigma is between 0.796x and 1.344x the sample standard deviation ss.

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

s=s =
n=n =
1α=1- \alpha =
0.796σ1.3440.796 \leq \sigma \leq 1.344

Two Sided Confidence Interval

The distribution of sample variance follows the chi-squared distribution. The following was taken from Wikipedia Standard Deviation:

(n1)s2q1α/2σ2(n1)s2qα/2\frac{(n-1)s^2}{q_{1-\alpha/2}} \leq \sigma^2 \leq \frac{(n-1)s^2}{q_{\alpha/2}}

This can be simplified as:

(n1)q1α/2sσ(n1)qα/2s\sqrt\frac{(n-1)}{q_{1-\alpha/2}}*s \leq \sigma \leq \sqrt\frac{(n-1)}{q_{\alpha/2}}*s
  • ss is the sample standard deviation
  • σ\sigma is the population standard deviation or true standard deviation
  • (n1)(n-1) is the degree of freedom
  • 1α1-\alpha is the confidence level
  • α\alpha is the significance level
  • qpq_p is the pp-th quantile of the chi-squared distribution, χ1α/2,n12\chi^2_{1-\alpha/2,n-1}

One Sided Confidence Interval

Left Sided:

Confidence interval with an upper limit on population standard deviation. Note: Standard deviation can not be negative.

σ(n1)qαs\sigma \leq \sqrt\frac{(n-1)}{q_{\alpha}}*s

Right Sided:

Confidence interval with an lower limit on population standard deviation.

(n1)q1αsσ\sqrt\frac{(n-1)}{q_{1-\alpha}}*s \leq \sigma

Hypothesis Testing of Sample Standard Deviation

H0:σ=H_0: \sigma =
H1:σH_1: \sigma \neq
n=n =
a=a =
P(chi2<15.876)2=0.215P(chi^2 <15.876 ) * 2 = 0.215
pp
-value
>a> a
Fail to reject null hypothesis

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:

χ2=(n1)s2σ2\chi^2 = \frac{(n-1)s^2}{\sigma^2}

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 aa, usually a=0.05a=0.05

H0:σ=σ0H1:σσ0H_0: \sigma = \sigma_0 \\ H_1: \sigma \neq \sigma_0 min(P(χ2<χ02),P(χ2>χ02))2min(P(\chi^2 < \chi^2_0), P(\chi^2 > \chi^2_0))*2
  • H0H_0 is the null hypothesis
  • H1H_1 is the alternate hypothesis
  • σ\sigma is the population standard deviation
  • σ0\sigma_0 is the value selected for the null hypothesis
  • χ02\chi^2_0 is the calculated test statistic

One Tail Hypothesis Test

Left Tailed:

Evaluates if the standard deviation is less than a upper limit. Ex. σ\sigma is less than 5 based on sample data.

H0:σ=σ0H1:σ<σ0H_0: \sigma = \sigma_0 \\ H_1: \sigma < \sigma_0 P(χ2<χ02)P(\chi^2 < \chi^2_0)

Right Tailed:

Evaluates if the standard deviation is greater than a lower limit. Ex. σ\sigma is greater than 5 based on sample data.

H0:σ=σ0H1:σ>σ0H_0: \sigma = \sigma_0 \\ H_1: \sigma > \sigma_0 P(χ2>χ02)P(\chi^2 > \chi^2_0)