Hypothesis tests for a population variance
Explore variability in data, learn about the χ² distribution, and complete a variance test
Test settings
Try it
The means may be the same while the variability differs
For example, two production lines both have a mean product net content close to 500 g, but product weights are more concentrated on one line and more variable on the other. Population variance σ² describes this variability.
What are we testing?
Suppose a production line's population variance should be 4 g². We can state:
H₀: σ² = 4 H₁: σ² ≠ 4
Test settings
Try it
Why does a test for a population variance use the χ² distribution?
For independent observations from a normal population, the standardized sample variance follows a χ² distribution. It takes only nonnegative values and is usually right-skewed, rather than symmetric like the standard normal distribution.
- Sample size n
- 10
- Degrees of freedom df
- 9
- Right-tail 5% critical value
- 16.92
Statistic for a population variance χ² test
Here, n is the sample size, s² is the sample variance, and σ₀² is the variance specified by the null hypothesis.
Test settings
Try it
Write the formula, then substitute the sample data
Unlike a mean test, this test compares the sample variance s² with the population variance σ₀² specified by the null hypothesis.
H₀: σ² = 4
H₁: σ² ≠ 4
- Original formula
- Substitute the example values
- Sample size n
- 20
- Degrees of freedom df
- 19
- χ² statistic
- 28.500
Test settings
Try it
Same χ² distribution: test direction determines the rejection region
Switch between two-sided, right-tailed, and left-tailed tests, then change α to observe the shaded rejection regions and critical values. The two critical values for a two-sided test are not symmetric positive and negative values.
H₀: σ² = 4
H₁: σ² ≠ 4
- χ² distribution
- Rejection region
- Critical value
- Degrees of freedom df
- 19
- Significance level α
- 0.05
- Critical value
- 8.907 / 32.85
Test settings
Try it
Complete a hypothesis test for a population variance
Choose an example, drag the sample variance, and change α. Observe how the two decision methods from z-tests apply to χ² tests: the critical-value and p-value methods should agree.
H₀: σ² = 4
H₁: σ² ≠ 4
- χ² distribution
- Sample χ² position
- Rejection region
- Critical value
Original formula → numerical substitution
- χ² statistic
- 28.500
- p-value
- 0.1485
- Significance level α
- 0.05
P > α → fail to reject H₀. P = 0.1485; α = 0.05. The sample evidence is insufficient to reject the null hypothesis; this does not prove H₀.