Chi-Square-tests and F-tests for variance or standard deviation both require that the original population be normally distributed.
To test a claim about the value of the variance or the standard deviation of a population, then the test statistic will follow a chi-square distribution with $n-1$ dgrees of freedom, and is given by the following formula.
$\chi^2 = \dfrac{(n-1)s^2}{\sigma_0^2}$ |
The television habits of 30 children were observed. The sample mean was found to be 48.2 hours per week, with a standard deviation of 12.4 hours per week. Test the claim that the standard deviation was at least 16 hours per week.
Two equal variances would satisfy the equation $\sigma_1^2 = \sigma_2^2$, which is equivalent to $\dfrac{ \sigma_1^2}{\sigma_2^2} = 1$. Since sample variances are related to chi-square distributions, and the ratio of chi-square distributions is an F-distribution, we can use the F-distribution to test against a null hypothesis of equal variances. Note that this approach does not allow us to test for a particular magnitude of difference between variances or standard deviations.
Given sample sizes of $n_1$ and $n_2$, the test statistic will have $n_1-1$ and $n_2-1$ degrees of freedom, and is given by the following formula.
$F = \dfrac{s_1^2}{s_2^2}$ |
If the larger variance (or standard deviation) is present in the first sample, then the test is right-tailed. Otherwise, the test is left-tailed. Most tables of the F-distribution assume right-tailed tests, but that requirement may not be necessary when using technology.
Samples from two makers of ball bearings are collected, and their diameters (in inches) are measured, with the following results:
Assuming that the diameters of the bearings from both companies are normally distributed, test the claim that there is no difference in the variation of the diameters between the two companies.
If the two samples had been reversed in our computations, we would have obtained the test statistic $F = 1.1741$, and performing a right-tailed test, found the p-value $p = \operatorname{Fcdf}(1.1741,\infty,119,79) = 0.2232$. Of course, the answer is the same.