Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Hypothesis Testing for Comparing Two Population Variances Using the F-Test

Quick fact

The F-test for comparing variances is extremely sensitive to the assumption of normality, so sensitive that a significant result might indicate non-normal data rather than unequal variances.

Why this is interesting

You've just measured the consistency of two different machines, and one seems more variable. How do you know if that difference is real or just random noise?

Read the full explanation

Understanding Hypothesis Testing for Comparing Two Population Variances Using the F-Test

Imagine you have two machines filling bags. Machine A produces bags that weigh fairly consistently, while Machine B's bags vary more. You want to know if Machine B is truly more inconsistent. To compare their variability, you need a way to measure and compare the spread of their outputs. In statistics, we summarize spread with the variance, which is the average squared deviation from the mean. The F-test for comparing two variances is a way to decide if one variance is significantly larger than the other. The idea is simple: you take a sample from each process, calculate the sample variance for each, and then form a ratio. The larger variance goes on top. This ratio is the test statistic. The key question is: is this ratio big enough to be considered evidence of a difference? If the processes were equally variable, we would expect the ratio to be close to 1. But random sampling causes fluctuations, so even equal variances can produce ratios somewhat above or below 1. The F-test tells us how far from 1 the ratio must be to be considered 'unlikely' to have occurred by chance. The test relies on a theoretical distribution called the F-distribution. This distribution depends on the sample sizes (specifically, the degrees of freedom: n1-1 and n2-1). By comparing our calculated ratio to the F-distribution, we can obtain a p-value, which tells us the probability of seeing such an extreme ratio if the true variances were equal. If this p-value is less than our significance level (like 0.05), we reject the null hypothesis of equal variances and conclude that there is a significant difference.

A deeper explanation

The mathematical engine behind the F-test is the ratio of two chi-squared variables divided by their degrees of freedom. For normally distributed data, the sample variance (times (n-1) / σ²) follows a chi-squared distribution. So, if the population variances are equal, the ratio of the two sample variances (each divided by its true variance) has an F-distribution with (n1-1) and (n2-1) degrees of freedom. This is why the test statistic is simply the sample variance ratio. Crucially, the F-test is very sensitive to the assumption that both samples come from normal populations. If the data are not normal, the distribution of the sample variance ratio can be very different from the theoretical F-distribution, leading to incorrect conclusions. This is a key limitation: a significant F-test could indicate a violation of normality rather than a true difference in variances. This test matters because it provides a formal way to compare the variability of two groups. This is often a preliminary step before conducting other analyses. For example, the two-sample t-test assumes equal variances (for the pooled version), and ANOVA also assumes homogeneity of variances. By checking this assumption with the F-test, we can decide whether to use a more robust procedure, such as the Welch's t-test that does not assume equal variances, or a nonparametric alternative. In practice, you set up the null hypothesis (H0: σ1² = σ2²) and the alternative (Ha: σ1² ≠ σ2², or one-sided alternatives). The test statistic is F = s1²/s2² (the larger sample variance goes in the numerator). You then find the critical value or p-value from the F-distribution with degrees of freedom (n1-1, n2-1). Depending on the directionality, you may use a two-tailed test (looking for both tails) or a one-tailed test (only looking for one variance being larger).

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.