FS2 6.2 - The F-test for two variances
Two processes can have similar average outputs but very different consistency. You will compare two normal population variances with an F-test, keep the two degrees of freedom in order and select one- or two-tailed critical regions without confusing variance with standard deviation.
A ratio of two independent sample variances
If you exchange the names of two production lines, should the evidence that their variances differ change?
It should not. The ratio becomes , but its reference distribution and tail change too. A reciprocal ratio can carry exactly the same evidence; using the old critical value with the new ratio would change the test.
You already know
Use the unbiased sample variances , each with denominator . A one-sample normal variance gives a chi-squared statistic. Variance hypotheses concern population parameters, and non-rejection is not proof of equality.
Here we have two independent random samples, each from a normal population. The population means may differ. Equality of variances does not mean equality of means, nor do equal-looking sample means establish equal population variances.
The F sampling distribution
For independent samples from and , with and positive population variances,
In particular, under ,
The first degree of freedom belongs to the numerator sample; the second belongs to the denominator sample. The normalised ratio is supplied, and the null ratio follows by cancellation. In the formula booklet.
The F distribution is positive and generally skewed. Its two degrees of freedom have different jobs: swapping them usually changes its critical values. We use the supplied distribution result without proving its density.
Do not use this independent-sample test for measurements paired on the same subjects without checking the sampling structure. A large sample is not a replacement for the stated normal-population assumptions of this exact test.
Key idea
Attach each sample's to its position in the variance ratio. Changing the ratio's orientation changes the order of the degrees of freedom and which tail is relevant.
Choose the setup from the sampling design, rather than from how similar the two sample means look.
Testing a specified direction of variability
For , putting A's sample variance in the numerator makes large ratios support the alternative. Choose this direction from the research question, before looking at the sample.
The F table gives upper-tail percentage points. Its numerator degrees of freedom run across the columns; denominator degrees of freedom run down the rows. At upper probability , has cutoff , while has cutoff . Quote table entries in full.
Reciprocating an F ratio
If , then
If , then the lower cutoff for satisfies
Both the ordered degrees of freedom and the tail reverse. The booklet states this reciprocal relationship for upper and lower percentage points. In the formula booklet.
If the required F probability is unavailable in the printed table, a suitable calculator can supply a critical value or p-value. Record the distribution, degrees of freedom and tail probability so the calculation is clear.
Worked example 1: is line A more variable?
Question. Independent random samples of component lengths from normal populations give
| Production line | Sample size | Sample standard deviation |
|---|---|---|
| A | ||
| B |
The standard deviations are the square roots of the unbiased sample variances. Test at whether line A has the greater population variance.
Plan. Square the standard deviations and put A in the numerator for an upper-tail test.
Why this step? A larger A variance makes the chosen ratio large; the upper tail matches the pre-specified alternative.
Answer. Reject . There is sufficient evidence at that component lengths from line A have greater population variance than those from line B.
Check. The upper-tail p-value for at is approximately , agreeing with rejection.
Worked example 2 changes only the pre-specified alternative to whether line A has the smaller population variance. Keep the same labelled ratio to see the tail change.
Worked example 2: a lower-tail alternative
Question. With the same samples and assumptions, test at whether line A has smaller population variance.
Plan. Keep , but obtain its lower cutoff by reciprocating the reversed-degrees upper cutoff.
Why this step? The reciprocal relationship needs the degrees of freedom in reverse order; would be the lower cutoff for a different F distribution.
Answer. Do not reject . There is insufficient evidence at that line A has smaller population variance.
Check. The observed spread is larger in A. It cannot supply evidence in this lower rejection tail. The lower-tail p-value is approximately .
You could instead put B in the numerator and use an upper tail for this alternative, provided you also use . A fixed orientation throughout a solution usually makes the reasoning easier to follow.
Watch out
Wrong: calculate , always put the larger observed standard deviation on top, or invert a cutoff without swapping its degrees of freedom. Right: use variances, follow the alternative and keep each sample size attached to its variance.
Change only line A's observed sample standard deviation from Worked example 2.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account