Test of a Single Variance — Definition, Formula & Example
The test of a single variance is a hypothesis test that checks whether a population's spread (its variance or standard deviation) differs from a claimed value. It uses a chi-square statistic instead of a z or t statistic.
Take a simple random sample of size from a normal population with variance . To test , use the statistic . When is true, it follows a chi-square distribution with degrees of freedom. Reject when falls in the rejection region set by . The chi-square distribution is right-skewed, so a two-tailed test needs two different critical values. The test requires a normal population. Unlike the t-test, it is not robust to non-normality, even for large samples.
Key Formula
Where:
- = The chi-square test statistic
- = Sample size
- = Sample variance (the square of the sample standard deviation)
- = Population variance claimed in the null hypothesis
- = Degrees of freedom for the chi-square distribution
Worked Example
Problem: A coffee-bagging machine is built so the standard deviation of fill weights is 0.2 ounces. An inspector weighs a random sample of 25 bags and finds a sample standard deviation of 0.25 ounces. Assume fill weights are normally distributed. At the 0.05 significance level, is there evidence that the machine's fill weights vary more than the specification allows?
Step 1: Write the hypotheses using variances, not standard deviations. The claimed variance is , and the sample variance is . The concern is too much variation, so the test is right-tailed.
Step 2: Compute the test statistic with degrees of freedom.
Step 3: Look up the right-tail critical value for area 0.05 and 24 degrees of freedom in a chi-square table. It is 36.415. The statistic lies beyond it, so it falls in the rejection region.
Answer: Reject . The p-value is between 0.025 and 0.05. At the 0.05 level, there is sufficient evidence that the standard deviation of fill weights is greater than 0.2 ounces, so the machine needs adjustment.
Why It Matters
In manufacturing quality control, consistency often matters as much as the average. A tablet press can have the correct mean dose and still produce unsafe pills if the variance is too high. Engineers use this test to check whether a process meets its spread specification, and the same chi-square statistic gives the confidence interval for a population variance in a college statistics course.
Common Mistakes
Mistake: Plugging standard deviations into the formula instead of variances. In the example, this gives , which is below 36.415 and leads to the wrong decision.
Correction: The formula uses and . Square both standard deviations before you substitute them. If a problem states its claim as a standard deviation, convert it to a variance in your hypotheses.
