Levene's Test#
Levene's test is an inferential statistical procedure for assessing the homogeneity of variances (homoscedasticity) across two or more groups. It tests whether the variances in different groups are equal β a key assumption of many parametric procedures such as the independent samples t-test or one-way ANOVA.
Unlike the classical Bartlett's test, Levene's test is considerably more robust to departures from normality, which is why it is preferred in practice. The variant proposed by Brown and Forsythe (1974), which uses the median instead of the mean, further improves robustness.
When to Use#
- Before running an independent samples t-test to verify the equal variances assumption
- Before an ANOVA to check the homogeneity of variances assumption
- When the data may not be normally distributed (more robust than Bartlett's test)
- When comparing variability across experimental groups
- As part of a systematic assumption check before parametric analyses
Assumptions#
- Independent observations β no dependencies between or within groups
- Continuous dependent variable at least at interval scale level
- Random samples from the respective populations
Formula#
Levene's test computes an F statistic based on the absolute deviations of observations from their respective group center:
Where:
- is the number of groups
- is the total sample size
- is the sample size of the -th group
- is the absolute deviation from the group mean (classical Levene's test)
- is the mean of the in group
- is the overall mean of all
Brown-Forsythe variant: Uses the median instead of the mean, i.e., . This variant is more robust with skewed distributions.
Hypotheses#
- Hβ: The variances are equal across all groups ()
- Hβ: At least two groups differ in their variance
Under Hβ, the test statistic follows an F distribution with and degrees of freedom.
Example#
Practical Example: Variance Check for Three Teaching Methods
An educational researcher wants to use a one-way ANOVA to investigate whether exam performance differs among students under three different teaching methods (lecture, seminar, e-learning). Before running the ANOVA, he needs to check the homogeneity of variances.
Each group contains 25 students. He performs Levene's test and obtains F(2, 72) = 1.34 with p = 0.27. Since p > 0.05, the null hypothesis of equal variances cannot be rejected. The homoscedasticity assumption is met, and the standard ANOVA may be applied.
Had the test yielded a significant result, the Welch ANOVA would have been used as a robust alternative.
Effect Size#
There is no standard effect size measure for Levene's test. In practice, the F statistic and p-value are reported. Additionally, the variance ratio can serve as a descriptive measure:
| Variance Ratio | Interpretation |
|---|---|
| < 2:1 | Variances approximately equal β no concern |
| 2:1 β 4:1 | Moderate differences β caution with unequal group sizes |
| > 4:1 | Large differences β robust procedures recommended |
Note: As with all assumption tests, large samples make the test very sensitive, while small samples may miss meaningful violations. Inspecting the variance ratio is therefore a useful complement.
Further Reading
- Levene, H. (1960). Robust tests for equality of variances. In I. Olkin (Ed.), Contributions to Probability and Statistics (pp. 278β292). Stanford University Press.
- Brown, M. B., & Forsythe, A. B. (1974). Robust tests for the equality of variances. Journal of the American Statistical Association, 69(346), 364β367.
- Glass, G. V. (1966). Testing homogeneity of variances. American Educational Research Journal, 3(3), 187β190.