3.2 two sample Hypothesis Testing for Variance (F - test)
🧠 Purpose
The F-test is used to compare the variances of two independent samples to determine if they come from populations with equal variances.
Common applications: - Testing homogeneity of variance - Validating assumptions before using parametric tests (e.g. t-tests)
📐 Hypotheses
- Null Hypothesis H_0: \sigma_1^2 = \sigma_2^2
- Alternative Hypothesis H_1:
- \sigma_1^2 \neq \sigma_2^2 (two-tailed)
- \sigma_1^2 > \sigma_2^2 or \sigma_1^2 < \sigma_2^2 (one-tailed)
🧮 Test Statistic
The F-statistic is calculated as:
Where: - s_1^2: variance of the first sample (larger variance usually goes in the numerator) - s_2^2: variance of the second sample
⚠️ Always put the larger sample variance in the numerator to ensure F \geq 1
🎯 Distribution
- The test statistic follows an F-distribution with:
- Use F-tables or software to find critical values at the desired significance level \alpha.
📋 Example
Sample A: s_1^2 = 25, n_1 = 16
Sample B: s_2^2 = 10, n_2 = 21
Step 1: Compute F
Step 2: Degrees of Freedom
- df_1 = 16 - 1 = 15
- df_2 = 21 - 1 = 20
Step 3: Conclusion
Compare F = 2.5 with the critical value from the F-distribution table for df_1 = 15, df_2 = 20, and your significance level (e.g., \alpha = 0.05).
If F exceeds the critical value, reject H_0 — variances are significantly different.
From F - distribution table, we got F_{crit}= 3.50,F =2.5,
\therefore F <F_{crit} , we felt to reject H_0
Tags: #math #statistics