Statistical Calculators › Variances and Confidence Intervals › Sample Size for a Confidence Interval on a Standard Deviation
← All Calculators

Variances and Confidence Intervals

Sample Size for a Confidence Interval on a Standard Deviation

Find the smallest sample size needed for a two-sided confidence interval for a normally distributed population standard deviation to have a specified maximum width. The calculation uses the exact chi-square confidence interval for a standard deviation with an unknown population mean and assumes the future sample standard deviation equals the planning value.

Confidence Interval Design

Enter the planning standard deviation, confidence level, and maximum allowable interval width.

Required Sample Size

The result is the smallest integer N for which the exact two-sided confidence interval width is no greater than the requested target.
Enter the design parameters and click Calculate Sample Size.

Methodology

For normally distributed observations with an unknown population mean, the sample variance satisfies (N − 1)S22 ~ χ2N−1. Therefore, the exact two-sided 100(1 − α)% confidence interval for the population standard deviation is obtained by taking the square root of the corresponding chi-square variance limits.

Lower limit = S √[(N − 1) / χ²1−α/2, N−1]
Upper limit = S √[(N − 1) / χ²α/2, N−1]
Width = Upper limit − Lower limit

The calculator searches integer sample sizes starting at N = 2 and returns the first N whose exact confidence-interval width is at most the specified target. Because the lower and upper standard-deviation limits are asymmetric, the requested width is the distance between the two limits rather than twice a single margin of error.

Assumptions

The procedure assumes independent observations from a normal population and uses the supplied standard deviation as the planning value for the future sample. As PASS notes, if the standard deviation observed in the eventual sample differs from the planning value, the achieved confidence-interval width may be narrower or wider than specified.

Worked Example & Validation

PASS User's Guide III, Example 2, based on Hahn and Meeker (1991, p. 56), uses a 95% confidence level, a standard deviation of 1.31, and a target two-sided interval width of 2.9795. PASS reports a required sample size of 5, with an actual width of 2.979 and confidence limits of 0.785 and 3.764.

Confidence level = 0.95  ·  S = 1.31  ·  Target width = 2.9795
Required N = 5  ·  Actual width ≈ 2.979493  ·  CI ≈ [0.784864, 3.764358]

References

Hahn, G. J. & Meeker, W. Q. (1991). Statistical Intervals: A Guide for Practitioners. John Wiley & Sons, New York.

Hintze, J. L. (2008). PASS User's Guide III: Standard Deviations, Variances, Normality Tests, Survival Analysis, Correlations, Regression, Design of Experiments, and Tools, Helps, and Aids. NCSS. Chapter 640, “Confidence Intervals for One Standard Deviation using Standard Deviation.”