Mathwords logoMathwords

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 nn from a normal population with variance σ2\sigma^2. To test H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2, use the statistic χ2=(n−1)s2σ02\chi^2 = \frac{(n-1)s^2}{\sigma_0^2}. When H0H_0 is true, it follows a chi-square distribution with n−1n - 1 degrees of freedom. Reject H0H_0 when χ2\chi^2 falls in the rejection region set by HaH_a. 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

χ2=(n−1)s2σ02,df=n−1\chi^2 = \frac{(n-1)s^2}{\sigma_0^2}, \qquad df = n - 1
Where:
  • χ2\chi^2 = The chi-square test statistic
  • nn = Sample size
  • s2s^2 = Sample variance (the square of the sample standard deviation)
  • σ02\sigma_0^2 = Population variance claimed in the null hypothesis
  • dfdf = 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 0.22=0.040.2^2 = 0.04, and the sample variance is 0.252=0.06250.25^2 = 0.0625. The concern is too much variation, so the test is right-tailed.
H0:σ2=0.04Ha:σ2>0.04H_0: \sigma^2 = 0.04 \qquad H_a: \sigma^2 > 0.04
Step 2: Compute the test statistic with n−1=24n - 1 = 24 degrees of freedom.
χ2=(25−1)(0.0625)0.04=1.50.04=37.5\chi^2 = \frac{(25-1)(0.0625)}{0.04} = \frac{1.5}{0.04} = 37.5
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.
χ2=37.5>36.415=χ0.05, 242\chi^2 = 37.5 > 36.415 = \chi^2_{0.05,\,24}
Answer: Reject H0H_0. 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 24(0.25)0.2=30\frac{24(0.25)}{0.2} = 30, which is below 36.415 and leads to the wrong decision.
Correction: The formula uses s2s^2 and σ02\sigma_0^2. 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.

Related Terms