F-Test — Definition, Formula & Example
An F-test is a hypothesis test that checks whether two populations have the same variance by dividing one sample variance by the other. A ratio close to 1 fits equal spread. A ratio far from 1 is evidence that one population varies more than the other.
Let independent simple random samples of sizes and come from two normal populations with variances and . To test , compute . Under , this statistic follows an F-distribution with numerator and denominator degrees of freedom. The F-distribution is the reference curve. The F-test is the full procedure: hypotheses, statistic, and decision. The same distribution also supports other F-tests, such as ANOVA, which compare means rather than two variances.
Key Formula
Where:
- = Sample variance of the first sample (the numerator)
- = Sample variance of the second sample (the denominator)
- = Sample sizes of the two independent samples
- = Numerator and denominator degrees of freedom
Worked Example
Problem: A cereal company suspects that Machine A fills boxes less consistently than Machine B. A sample of 11 boxes from Machine A has a standard deviation of 0.9 ounces. A sample of 13 boxes from Machine B has a standard deviation of 0.5 ounces. Assume both fill weights are normally distributed. At , is there evidence that Machine A's fill weights have a larger variance?
Step 1: State the hypotheses. The claim is one-sided, so put Machine A's variance in the numerator. Then find the degrees of freedom.
Step 2: Square each standard deviation to get the variances. Then divide.
Step 3: An F-table gives the upper 5% critical value for as about 2.75. Compare your statistic with it.
Answer: Since 3.24 is greater than 2.75, you reject . At the 5% level, there is convincing evidence that Machine A's fill weights vary more than Machine B's.
Why It Matters
Manufacturers use this test to judge consistency, such as whether a new machine fills packages more evenly than an old one. It is not on the AP Statistics exam. You will see it in college statistics courses, where F-tests also drive ANOVA and regression output.
Common Mistakes
Mistake: Dividing the standard deviations instead of the variances, for example writing .
Correction: The F-statistic is a ratio of variances. Square each standard deviation first. In the example this gives , not 1.8. The test is also very sensitive to non-normal data, so check the normality condition before you trust the result.
