Sample Size Calculation using StudySize 3.0. Confidence intervals for the variance

In the development of a new device for measurements, one is interested to get an estimate of the precision. A study is planned where different but identical units are measured only once, since they are destroyed by the measurements. A study is planned to estimate the precision by calculating a 95% confidence interval for the variance (the squared standard deviation). It is deemed necessary to get a confidence interval for the true variance with a relative width of at most 0.3 in the measured units. The relative width is defined as the width of the confidence interval divided by the true value of the variance, or equivalently the absolute width in units of the true variance. The confidence interval for the variance is calculated by multiplying the squared standard deviation by the degrees of freedom (number of measured units - 1) divided by the 2.5% and 97.5% percentiles of the Chi-square distribution. Since the width of the confidence interval depends on the actual measurements, we can't be certain to get a relative width of at most 0.3. In the planning stage we therefore have to specify how certain we want to be to get the desired width. In other words, we have to specify the probability that we get a relative width that is at most 0.3. Assume that we want this probability to be 90%.

Open the File menu and choose New Calculation.
Open the Distribution Parameters menu and choose Normal Distribution

Choose among the parameters, std.dev. (mean unknown) and the option buttons One Sample and Conf. Interval, and click OK.


Set the parameter values as shown below, except for Sample Size.
Click button Sample Size.

We have to measure 415 units to get a 95% confidence interval for the variance, such that the probability is 0.90 that the relative width of the confidence interval will be at most 0.3.

If we decide to perform a study with 415 units, we might want to know the probability that we instead get a confidence interval with an even better precision. We want to see how the probability of the relative width of the confidence interval varies for different values of the relative width.

Open the File menu and choose New Table.
Open the Distribution Parameters menu and choose Normal Distribution

The previous options for the normal distribution will show up.
Click OK and a new dialog box will show up.

Set the parameter values as shown below and click OK

The results are shown in the following table

The table shows that with a confidence level of 95%, the probability is 0.901 to obtain a confidence interval for the variance with a relative width of at most 0.3, the same result as calculated above. Moreover, we can see that a 90% confidence interval will certainly give a relative width of at most 0.3 while a 99% confidence interval will not. With a 95% confidence interval, the probability will be more than 60% that the relative width is at most 0.28.

To see the relation graphically, open the File menu and choose New Graph.
Open the Distribution Parameters menu and choose Normal Distribution and proceed as above. All the parameter settings are retained.

CREOSTAT HB, Enbarsvagen 11, 42655 V.Frolunda, Sweden, email: mail@studysize.com