ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude
F test: comparing the variances of two samples
Compare the spread of two normal populations with the F test: divide the larger sample variance by the smaller, find the two degrees of freedom, pick the one-tailed or two-tailed critical value, and use the reciprocal rule for lower points.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Calculate the F statistic as the ratio of two sample variances, each found with divisor n - 1, with the larger variance on top.
- Find the degrees of freedom (n1 - 1, n2 - 1) of an F test and choose the upper 5 percent or upper 2.5 percent point for a one-tailed or two-tailed comparison of two variances.
- Convert standard deviations or sums of squared deviations into sample variances before forming the variance ratio for an F test.
- Use the reciprocal rule for lower points of F, and state each decision about the equality of two variances in words.
Before you start
Two machines can fill cement bags with the same average weight and still differ in how much the weights wander. The F test compares that wandering, the variance, in two populations, using one independent random sample from each. You need the sample variance s^2, found by adding the squared deviations about the mean and dividing the total by n - 1 rather than by n, and the steps of a significance test: H0, H1, a level of significance and a critical value. Here the two samples are numbered 1 and 2, with sizes n1 and n2, sample variances s1^2 and s2^2, and population variances sigma1^2 and sigma2^2. The figures in every question are made up for practice, and x means multiply.
The variance ratio and its degrees of freedom
H0 says the two population variances are equal. The test statistic is F = s1^2 / s2^2, the ratio of the two sample variances, written with the larger variance on top so that F is at least 1. If H0 is true, F tends to stay fairly close to 1; the further it rises above 1, the stronger the evidence that the spreads differ. F has two degrees of freedom, one for each variance: (n1 - 1, n2 - 1), always naming the numerator's df first. Order matters, because the F curve with (4, 10) df is not the same as the one with (10, 4) df: their upper 5 percent points are 3.48 and 5.96. An F value can never be negative, since it is a ratio of squares. The test assumes that both populations are normal and that the two samples are independent random samples. It is sensitive to departures from normality, so a strongly skewed population can make it mislead.
One tail or two tails
The critical value depends on what H1 claims. Two-tailed: H1 says the variances differ, with no direction given in advance. Put the larger variance on top and compare F with the upper point that holds half the level of significance. For a 5 percent test that is the upper 2.5 percent point, because putting the larger variance on top already restricts attention to the upper tail. One-tailed: H1 names in advance the population suspected of being more variable, say population 1. Put that sample's variance on top whatever its size, and compare with the upper 5 percent point. If that sample turns out to have the smaller variance, F is below 1 and H0 cannot be rejected, with no table needed. For df (5, 8) the upper 5 percent point is 3.69 and the upper 2.5 percent point is 4.82, so an F of 4.2 would be significant in a one-tailed 5 percent test but not in a two-tailed one. In both cases, reject H0 only when F is more than the critical value.
Getting the two variances ready
Questions rarely hand over the two variances directly, so convert first. From raw data: find each mean, the deviations and their squares, then divide the sum of squares by n - 1. From a sum of squared deviations: divide it by n - 1 for that sample; dividing the two sums directly is wrong when the sample sizes differ. From a standard deviation s found with divisor n - 1: square it, since F compares variances, not SDs. From an SD found with divisor n: first rebuild s^2 = n x SD^2 / (n - 1). Coding is safe: subtracting a constant from every value leaves a variance unchanged, and multiplying the values of both samples by the same number scales both variances alike, so F stays the same. A common use of the F test is as a check that two variances can be treated as equal before a pooled t test.
Lower points and the reciprocal rule
F tables list only upper points. A lower point comes from the reciprocal rule: the lower point of F(a, b) = 1 / (the upper point of F(b, a)) at the same percentage, with the two df swapped. For example, the upper 5 percent point of F(4, 10) is 3.48, so the lower 5 percent point of F(10, 4) is 1/3.48, about 0.2874. The rule works because if a ratio of two variances follows F(a, b), its reciprocal follows F(b, a). It is needed when someone has put the smaller variance on top. In a two-tailed 5 percent test, such an F is significant only if it is below the lower 2.5 percent point. Flipping the ratio and comparing it with the upper 2.5 percent point of the swapped df always gives the same decision, which is why the larger-on-top habit saves work.
Common mistakes
Dividing the two standard deviations instead of the variances: SDs of 0.6 and 0.3 give 2, but the variance ratio is 4. Dividing by n instead of n - 1 when finding a variance. Writing the df in the wrong order, or using n1 and n2 instead of n1 - 1 and n2 - 1. Using the upper 5 percent point in a two-tailed 5 percent test after putting the larger variance on top; the right point is the upper 2.5 percent one. In a one-tailed test, swapping the samples just to make F bigger than 1; the sample named in H1 stays on top. Using the F test to compare two means; it compares only spreads. Concluding from 'do not reject H0' that the two variances are exactly equal.
A routine for F test questions
1. Write H0: the two population variances are equal, and decide from the wording whether H1 is two-tailed or one-tailed. 2. Turn the data, sums of squares or SDs into s1^2 and s2^2, each with divisor n - 1. 3. Form F with the larger variance on top (two-tailed) or with the variance named in H1 on top (one-tailed). 4. Write the df as (numerator sample size - 1, denominator sample size - 1). 5. Use the upper 2.5 percent point for a two-tailed 5 percent test, or the upper 5 percent point for a one-tailed one. 6. Reject H0 only if F is above that point, and give the decision in words with the F value in the sentence.
Worked examples
A hotel chain buys bulbs from two factories, one in Noida and one in Pune, and wants to know whether the two differ in how consistently their bulbs last. Lives of 5 Noida bulbs, in hundreds of hours: 18, 22, 20, 25, 15. Lives of 6 Pune bulbs: 21, 19, 20, 22, 18, 20. The upper 2.5 percent point of F(4, 5) is 7.39 and its upper 5 percent point is 5.19. Test at the 5 percent level whether the two variances differ.
- H0: the two population variances are equal. H1: they are not equal, so the test is two-tailed.
- Noida: mean = 100 / 5 = 20. Deviations -2, 2, 0, 5, -5; squares 4, 4, 0, 25, 25; total 58. s1^2 = 58 / 4 = 14.5.
- Pune: mean = 120 / 6 = 20. Deviations 1, -1, 0, 2, -2, 0; squares 1, 1, 0, 4, 4, 0; total 10. s2^2 = 10 / 5 = 2.
- Larger variance on top: F = 14.5 / 2 = 7.25, with df (5 - 1, 6 - 1) = (4, 5).
- Two-tailed 5 percent test with the larger variance on top: the critical value is the upper 2.5 percent point of F(4, 5), 7.39. Since 7.25 is below 7.39, F is not in the rejection region.
- Had the chain suspected before sampling that the Noida bulbs were the more variable, the test would be one-tailed, the upper 5 percent point 5.19 would apply, and 7.25 would lead to rejection. The wording of H1 decides the tail.
Answer: F = 7.25 with (4, 5) df, just below 7.39: do not reject H0 at the 5 percent level. The samples do not show that the two factories differ in variability.
A builder in Raipur buys 50 kg cement bags from two plants. Before weighing, he suspects that bags from Plant A, which has a new packing line, vary more in weight than bags from Plant B. A sample of 9 bags from Plant A has standard deviation 0.6 kg, and a sample of 11 bags from Plant B has standard deviation 0.3 kg, both found with divisor n - 1. The upper 5 percent point of F(8, 10) is 3.07. Test at the 5 percent level.
- H0: the two population variances are equal. H1: Plant A's variance is larger. This is one-tailed, so Plant A's variance goes on top.
- Square the SDs: s1^2 = 0.6^2 = 0.36 kg^2 and s2^2 = 0.3^2 = 0.09 kg^2.
- F = 0.36 / 0.09 = 4, with df (9 - 1, 11 - 1) = (8, 10).
- One-tailed 5 percent test: compare with the upper 5 percent point of F(8, 10), which is 3.07. 4 is more than 3.07.
- Warning: the ratio of the SDs, 0.6 / 0.3 = 2, is below 3.07 and would wrongly keep H0.
Answer: F = 4 with (8, 10) df, above 3.07: reject H0 at the 5 percent level. Bags from Plant A vary more in weight than bags from Plant B.
A trainee in a Rajkot workshop compares bolt diameters from two lathes. From 6 bolts on lathe M the sample variance is 0.5 mm^2, and from 9 bolts on lathe N it is 2 mm^2. He writes F = 0.5 / 2 = 0.25 with df (5, 8). The upper 2.5 percent point of F(8, 5) is 6.76 and that of F(5, 8) is 4.82. Use the reciprocal rule to find the lower 2.5 percent point of F(5, 8), and decide at the 5 percent level (two-tailed) whether the lathes differ in variability.
- Reciprocal rule: lower 2.5 percent point of F(5, 8) = 1 / (upper 2.5 percent point of F(8, 5)) = 1 / 6.76 = 0.1479, to 4 decimal places.
- With the smaller variance on top, a two-tailed 5 percent test rejects H0 only if F is below 0.1479 or above 4.82. F = 0.25 is between them.
- Check by the usual route: with the larger variance on top, F = 2 / 0.5 = 4 with df (8, 5), and 4 is below 6.76.
- Both routes agree, as they must, because 1 / 0.25 = 4 and 1 / 0.1479 is about 6.76.
Answer: The lower 2.5 percent point of F(5, 8) is 1/6.76, about 0.1479. F = 0.25 lies above it, and equivalently F = 4 lies below 6.76, so do not reject H0: the lathes do not show different variability.
Practice checks
- Two machines in a Ludhiana factory cut steel rods. A sample of 9 rods from machine P has standard deviation 5 mm, and a sample of 13 rods from machine Q has standard deviation 4 mm, both with divisor n - 1. With the larger variance on top, find F and decide at the 5 percent level (two-tailed) whether the variances differ. The upper 2.5 percent point of F(8, 12) is 3.51.
- Daily milk yields of cows are compared on two dairy farms. Near Varanasi, 8 cows give a sample variance of 9.2 litres^2; near Agra, 11 cows give 4.0 litres^2, both with divisor n - 1. Upper 2.5 percent points: F(7, 10) = 3.95, F(10, 7) = 4.76, F(8, 11) = 3.66. Upper 5 percent point: F(7, 10) = 3.14. For a two-tailed F test at the 5 percent level, which line is right?
- From an F table, the upper 5 percent point of F(6, 10) is 3.22 and the upper 5 percent point of F(10, 6) is 4.06. Using the reciprocal rule, the lower 5 percent point of F(10, 6) is:
- A dairy lab in Karnal suspects, before testing, that a new fat-testing kit gives more variable readings than its standard kit. On the same kind of milk, the new kit gives 10 readings whose squared deviations from their mean add up to 90, and the standard kit gives 8 readings whose squared deviations add up to 35. The upper 5 percent point of F(9, 7) is 3.68. Find F and the decision at the 5 percent level.
- Which statement about the F test for two variances is correct?
Sources checked
- SSC CGL Scheme and Syllabus, labelled 2024 — Tier-II Paper-II Statistics (Statistical Inference: tests based on F statistic); not verified as the full 2026-cycle syllabus
- NIST/SEMATECH e-Handbook of Statistical Methods — Section 1.3.5.9, F-Test for Equality of Two Variances: the ratio of two sample variances with N1 - 1 and N2 - 1 degrees of freedom and its critical values for one-sided and two-sided tests; mathematical relationships only
- OpenStax, Introductory Statistics 2e — Section 13.4, the F ratio of two sample variances for comparing two population variances, assuming normal populations and independent samples; mathematical relationships only