Levene's Test for Equality of Variances

Test whether two or more groups have equal variances. More robust than the F-test when data is not normally distributed.

Please verify you are human to use the calculator.

About the Levene's Test for Equality of Variances

Levene’s test assesses whether the variances of two or more groups are equal (homoscedasticity). It is a critical assumption check for ANOVA and the pooled two-sample t-test. This calculator uses the median-based variant (also known as the Brown-Forsythe test), which is the most robust version.

The test works by replacing each observation with its absolute deviation from the group median, then performing a one-way ANOVA on these deviations. If the groups have similar spreads, the deviations will have similar means across groups, yielding a small F-statistic. The median-based version is preferred over the mean-based version because it is much less sensitive to non-normality and outliers.

While Levene’s test is more robust than the F-test for variances, the modern recommendation is often to simply use statistical methods that do not assume equal variances. Welch’s t-test and Welch’s ANOVA perform well regardless of whether variances are equal, effectively making the pre-test for equal variances unnecessary in many situations.

A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.

Related calculations

  • Two sample t test: Compare independent-group means with a method whose variance assumptions fit the design.
  • Shapiro wilk: Normality is a separate diagnostic from equality of group variances.
  • F-test for variances: Compare the classical normal-theory variance-ratio procedure and its stronger assumptions.
  • Anova: Review the group-mean comparison separately from its variance assumption.
  • Mann whitney: Inspect an independent-group rank comparison while remembering that ranks can reflect spread as well as location.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Levene's Test for Equality of Variances FAQ

Common questions about the levene's test for equality of variances