Frequently Asked Questions
The confidence interval of a standard deviation.
FAQ# 1381 Last Modified 22-March-2009
A confidence interval can be computed for almost any value computed from a sample of data, including the standard deviation.
The SD of a sample is not the same as the SD of the population
It is straightforward to calculate the standard deviation from a sample of values. But how accurate is that standard deviation? Just by chance you may have happened to obtain data that are closely bunched together, making the SD low. Or you may have randomly obtained values that are far more scattered than the overall population, making the SD high. The SD of your sample does not equal, and may be quite far from, the SD of the population.
Confidence intervals are not just for means
You are probably already familiar with a confidence interval of a mean. The idea of a confidence interval is very general, and you can express the precision of any computed value as a 95% confidence interval (CI). Another example is a confidence interval of a best-fit value from regression, for example a confidence interval of a slope.
The 95% CI of the SD
The sample SD is just a value you compute from a sample of data. It's not done often, but it is certainly possible to compute a CI for a SD. A free GraphPad QuickCalc does the work for you.
Interpreting the CI of the SD is straightforward. If you assume that your data were randomly and independently sampled from a Gaussian distribution, you can be 95% sure that the CI computed from the sample SD contains the true population SD.
How wide is the CI of the SD? Of course the answer depends on sample size (N). With small samples, the interval is quite wide as shown in the table below.
N |
95% CI of SD |
2 |
0.45*SD to 31.9*SD |
3 |
0.52*SD to 6.29*SD |
5 |
0.60*SD to 2.87*SD |
10 |
0.69*SD to 1.83*SD |
25 |
0.78*SD to 1.39*SD |
50 |
0.84*SD to 1.25*SD |
100 |
0.88*SD to 1.16*SD |
500 |
0.94*SD to 1.07*SD |
1000 |
0.96*SD to 1.05*SD |
Example
The sample standard deviation computed from the five values shown in the graph above is 18.0. But the true standard deviation of the population from which the values were sampled might be quite different. From the n=5 row of the table, the 95% confidence interval extends from 0.60 times the SD to 2.87 times the SD. Thus the 95% confidence interval ranges from 0.60*18.0 to 2.87*18.0, from 10.8 to 51.7. When you compute a SD from only five values, the upper 95% confidence limit for the SD is almost five times the lower limit.
Most people are surprised that small samples define the SD so poorly. Random sampling can have a huge impact with small data sets, resulting in a calculated standard deviation quite far from the true population standard deviation.
Note that the confidence intervals are not symmetrical. Why? Since the SD is always a positive number, the lower confidence limit can't be less than zero. This means that the upper confidence interval usually extends further above the sample SD than the lower limit extends below the sample SD. With small samples, this asymmetry is quite noticeable.
Computing the Ci of a SD with Excel
These Excel equations compute the confidence interval of a SD. N is sample size; alpha is 0.05 for 95% confidence, 0.01 for 99% confidence, etc.:
Lower limit: =SD*SQRT((N-1)/CHIINV((alpha/2), N-1))
Upper limit: =SD*SQRT((N-1)/CHIINV(1-(alpha/2), N-1))
These equations come from page 217-218 of Sheskin (Handbook of Parametric and Nonparametric Statistical Procedures, Fifth Edition).
Handbook of Parametric and Nonparametric Statistical Procedures, Fifth Edition | |
by David J. Sheskin | |
IBSN:1439858012. List price:$179.95 | |
Buy from amazon.com for $142.63 |