Levene and Brown-Forsythe Test for Equality of Variances

Statistics
Introduced by
Howard Levene; Morton B. Brown and Alan B. Forsythe
Year
1960
Type
Homogeneity of variance test (robust)

What does it do?

The Levene and Brown-Forsythe tests check whether two or more independent groups share the same variance, a condition called homogeneity of variance.

Levene (1960) proposed comparing absolute deviations from each group's mean. Brown and Forsythe (1974) replaced the mean with more robust estimators of central location and found these alternative forms more robust under non-normality than the unmodified Levene statistic. The median-centred version is the form usually called the Brown-Forsythe test.

The intuition behind the method

Rather than comparing spreads directly, the test replaces each observation with its distance from its own group's centre. It then asks whether those distances differ systematically across groups. A group that is more spread out tends to have larger distances from its centre, and a one-way analysis of variance on these distances detects that difference. Using the median as the centre, rather than the mean, reduces the influence of skew and outliers on the distances, so the verdict is less distorted when the data are not symmetric.

History

Howard Levene introduced the test in 1960 as a robust alternative to variance-equality tests that depend heavily on normality. In 1974 Morton B. Brown and Alan B. Forsythe examined alternative formulations of Levene's statistic that use more robust estimators of central location in place of the mean, and found them more robust under non-normality. The median-centred form is usually named after them.

When to use it

Choose this test before an ANOVA, a t-test, or any procedure that assumes equal variances across two or more independent groups of a continuous response. It does not require normality, so the median-centred Brown-Forsythe form is the safer choice when the distributions are skewed or have heavy tails. A common applied use is choosing between the two independent-samples t-tests: if the test is not significant, the pooled (equal-variances) t-test is usually reported; if it is significant, the unequal-variances (Welch) t-test is used. Power falls as total and per-group sample sizes shrink, so with small samples a non-significant result is weak evidence of equal spread. Do not use it for paired or repeated measurements on the same subjects, because the test assumes independent groups.

Limitations and considerations

  • Power is limited in small samples, so a non-significant result does not establish equal variances.
  • The test assumes independent groups and a continuous response; it does not handle repeated-measures or paired structures.
  • It tests only whether the spreads differ. It says nothing about differences in group means and does not identify which specific groups differ.
  • With very large samples, even a small and unimportant difference in spread can be significant, and results can be affected by markedly unequal group sizes. Report group sizes and a measure of the size of the spread difference (for example, the ratio of group standard deviations) alongside the p-value.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Does not require the data to be normally distributed.
  • The median-centred (Brown-Forsythe) variant was found to be more robust under non-normal distributions than the unmodified mean-centred Levene statistic, so it remains usable for skewed data.
  • Conceptually simple: it is a one-way analysis of variance applied to absolute deviations from each group's centre, so the output is easy to relate to familiar ANOVA reporting.

Applications

  • Checking the equal-variance assumption before a one-way ANOVA or an independent-samples t-test.
  • Deciding whether to report the pooled (equal variances assumed) or the separate-variances (Welch) independent-samples t-test.
  • Comparing the variability of a continuous measurement across two or more independent groups.
  • Diagnosing unequal spread between groups in experimental and observational comparison studies.

How it works

How it works

1

Each observation y_ij in group i is replaced by its absolute deviation z_ij = |y_ij - c_i| from the group centre c_i. In the original Levene form c_i is the mean of group i. In the Brown-Forsythe form c_i is the median of group i, which is less affected by skew and outliers.

Formula
z_{ij} = \left| y_{ij} - c_i \right|, \quad c_i = \bar{y}_{i\cdot}\ \text{(Levene)}\ \text{or}\ c_i = \tilde{y}_{i}\ \text{(median; Brown-Forsythe)}
2

An ordinary one-way analysis of variance is run on the transformed values z_ij. The statistic W compares the between-group variation in average deviations with the within-group variation. W is referred to an F distribution with k-1 and N-k degrees of freedom; this reference distribution is an approximation, whose accuracy depends on sample size and the shape of the data. A large W (small p-value) indicates that the group spreads differ.

Formula
W = \frac{(N-k)}{(k-1)} \cdot \frac{\sum_{i=1}^{k} n_i (\bar{z}_{i\cdot} - \bar{z}_{\cdot\cdot})^2}{\sum_{i=1}^{k} \sum_{j=1}^{n_i} (z_{ij} - \bar{z}_{i\cdot})^2}

Common pitfalls

  • Using the mean-centred Levene form on skewed data, where it is less robust; the median-centred Brown-Forsythe variant is the usual alternative.
  • Reading a non-significant result in small samples as proof of equal variances when it may simply reflect low power.
  • Treating a significant result as evidence about the means; the test concerns variances, not central tendency.
  • Applying it to dependent or paired observations, which violates the independent-groups assumption.
  • Judging importance by the p-value alone, without looking at the actual difference in spread.

Frequently asked questions

What is the difference between the Levene and Brown-Forsythe versions?

Both run an ANOVA on absolute deviations from a group centre. The original Levene form uses the group mean as the centre, while the Brown-Forsythe form uses the group median, which makes it less affected by skewed distributions and outliers.

Do my data need to be normally distributed?

No. The test does not require normality. The median-centred Brown-Forsythe form is generally preferred when the distributions are skewed or have heavy tails.

What does a significant result mean?

A small p-value rejects the hypothesis that all groups have equal variance, indicating heterogeneity of variance. It says nothing about whether the group means differ; it concerns only the spread of the data.

What if my samples are very small?

With small samples the test has low power, so a non-significant result is weak evidence that the variances are equal. Consider examining the group spreads descriptively and see the related pages on permutation and bootstrap inference for alternatives.

Related methods

Sources

  1. Levene, H. (1960). Robust Tests for Equality of Variances. In Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling. Stanford University Press.

    Open publication reference
  2. Brown, M. B. & Forsythe, A. B. (1974). Robust Tests for the Equality of Variances. Journal of the American Statistical Association, 69(346), 364-367.

    Open DOI reference