Section 10.6 Interval Estimates - Confidence Interval for \(\sigma^2\)
Once again, you may need to approximate the population variance or standard deviation but only have the sample values available. One difference from the previous sections is that you are not dealing with an average of values (such as \(\overline{x}\) or \(\tilde{p}\)) but with the average of the squares of values. The Central Limit Theorem does not directly help you in this case but the following result (presented without proof) provides a solution.
Theorem 10.6.1. Relationship between Variance and \(\chi ^2\).
If \(S^2\) is a random variable of possible sample variance values from a sample of size n, then
is approximately \(\chi ^2(n-1).\)
To create a confidence interval for \(\sigma^2\) first consider an interval of the form
and determine values for the boundaries so that the likelihood of this being true is high. For this case, since the chi-square distribution only has a positive domain and is not symmetrical, you will not expect to determine a symmetrical confidence interval. Therefore, consider
and by playing around with algebra you get
or by inverting the inequality yields
Using the previous theorem, note that the inside variable can be replaced with a chi-square variable. If F is the distribution function for chi-square, then you get
For a given value of \(\alpha\) there are many possible choices but often one often utilized is one in which
and
Using the inverse chi-square gives values for the expression on the inside and algebra can be used to solve for each of \(E_1, E_2\text{.}\) Indeed,
and
To determine appropriate values for \(\chi^2_{\alpha/2} \) and \(\chi^2_{1-\alpha/2} \) with equal probabilities in each tail, consider using the interactive cell below:
You can simply type in your input values easily in the Sage cell below.
Example 10.6.2. - Two-sided Confidence interval for \(\sigma^2\) and \(\sigma\).
Given the data 570, 561, 546, 540, 609, 580, 550, 577, 585, determine a 95% confidence interval for \(\sigma^2\text{.}\)
Using the computational forumaula (or your calculator) gives \(s^2 \approx 479.5\text{.}\) Also, notice for n=9, the resulting interval will use a Chi-square variable with 8 degrees of freedom. Using the symmetric option, gives \(\chi_{0.025}^2 = 2.18\) and \(\chi_{0.975}^2 = 17.53\text{.}\) Therefore
and
Hence, you are 95% certain that
By taking square roots you get
Notice, this interval is relatively wide which is a result both of the number of data values being relatively small (n=9) and the actual data values being relatively large and spread out.
Checkpoint 10.6.3. WebWork - Two-sided Confidence Interval with large n.
Suppose that you have n=400 data values and suppose you have computed from those a sample variance of \(s^2 = 479.5\text{.}\) Then, the only change in the calculation is the two chi-square statistic values. For 95% but now with 399 degrees of freedom \(\chi_{0.025}^2 = 345.55\) and \(\chi_{0.975}^2 = 456.24\text{.}\)
Therefore
and
Hence, you are 95% certain that
By taking square roots you get
which is a relatively tight confidence interval. Notice, these are also completely contained in the confidence intervals from the previous small n example.
Similar to above, another choice to estimate \(\sigma ^2\) is to use a one sided confidence interval. If you want to find one of these, continue as described above but just leave one endpoint off. Indeed,
can be determined using
and
can be determined using
Example 10.6.4. - One-sided Confidence intervals for \(\sigma^2\).
TBA
You can, of course, use the formula to work out the sample size needed in order to have a sufficiently narrow confidence interval
Checkpoint 10.6.5. WebWork - One-sided Confidence Interval.
Finally, to determine a confidence interval for \(\sigma\text{,}\) proceed using the protocols described above and simply take the square root on the resulting interval.
Example 10.6.6. - Confidence intervals for \(\sigma\).
TBA