Use the F Test to Compare Two Variances

Lesson 20 of 217 min6 practice questionsFree

What claim are you testing?

Two machines may have similar average output and different day-to-day variability. To test whether two population variances are equal, start with H₀: σₐ² = σᵦ². Decide in advance whether the alternative says the variance for A is greater, smaller or simply different.

This F test uses two sample variances. In one-way ANOVA, the F ratio instead uses the between-group and within-group mean squares to test equality of population means. Identify the parameter in the question before choosing the procedure.

Keep the variance ratio and degrees of freedom in the same order

Let F = sₐ²/sᵦ², with sample sizes nₐ and nᵦ. The numerator and denominator degrees of freedom are nₐ − 1 and nᵦ − 1, in that order. If the problem gives sample standard deviations, square each one first.

The classical F reference distribution under H₀ assumes independent observations from normal populations and independent samples. Keep the numerator fixed by the setup. An F ratio smaller than 1 can be informative. Swapping the groups inverts the ratio and swaps the two degrees of freedom.

Alternative, with A in the numeratorRejection region
σₐ² > σᵦ²Above the upper α cutoff
σₐ² < σᵦ²Below the lower α cutoff
σₐ² ≠ σᵦ²Below the lower α/2 cutoff or above the upper α/2 cutoff

An upper α cutoff leaves probability α on its right. A lower α cutoff leaves probability α on its left. For a lower-tail test, you can use the reciprocal of the upper cutoff after swapping the degrees of freedom.

Worked example 1 — Is machine A more variable?

Measure 9 independent outputs from A and 11 from B. The samples are independent and the populations are normal. Sample variances are 36 and 9 in squared measurement units. The claim to test is σₐ² > σᵦ².

F = 36/9 = 4, and the degrees of freedom are (8, 10). At the 5% level the upper cutoff is about 3.072. Since 4 > 3.072, reject H₀. There is evidence that A's population variance is larger.

Worked example 2 — Is either machine more variable?

In a different comparison, each independent normal sample has size 7. The sample variances for A and B are 3 and 24. With (6, 6) degrees of freedom, the 5% two-sided cutoffs are about 0.172 and 5.820, leaving 2.5% in each tail.

F = 3/24 = 0.125, below 0.172. Reject H₀. Here a small ratio signals a difference. The decision comes from the two-sided rejection rule chosen before seeing the results.

Quick check. With F = 2.1 and an upper cutoff of 2.6 for your right-tail test, what can you report? Answer. Fail to reject H₀. The sample does not provide sufficient evidence that the numerator population has the larger variance.

SSC CGL 2026, Statistics syllabus · NIST, F test for two variances

Practise this lesson6 questions · 6 marks · +1 a question · every answer explained
Start practice: F Test for Two Variances Practice

Sign in to keep your progress. Sign in