Levene's and Brown–Forsythe tests for equal variances
Test whether several groups have equal population variances by running a one-way ANOVA on absolute deviations from each group's mean (Levene) or median (Brown–Forsythe).
- Centre of group i: the mean (Levene) or the median (Brown–Forsythe, the engine default).
- Absolute deviation of observation j in group i from its centre.
- Group and overall means of the deviations.
When to use
To check the equal-variance assumption of the pooled t-test, classic ANOVA or Tukey HSD — and because differences in spread can be interesting in themselves (process consistency). The median-centred Brown–Forsythe version is robust to non-normality; prefer it to the classic F test for two variances and to Bartlett's test, which are very sensitive to non-normal data.
Assumptions
Independent observations and groups.
How to interpret
A small p-value is evidence that the spreads differ. A large p-value does not establish equal variances — small samples have little power. Look at the group SDs directly.
Common mistakes
- Using this test as a gatekeeper to choose between pooled and Welch t-tests (just use Welch).
- Concluding "variances are equal" from p > 0.05.
Example
Groups (4, 5, 6, 5), (2, 9, 5, 10), (5, 6, 7, 6): Brown–Forsythe on (2, 9) df, ; Levene (mean-centred) , . The second group is much more variable, so use Welch's ANOVA rather than classic ANOVA.