Lably
Skip to content

Levene's test

Statistical test of equal group variances

  • 3 min read
  • 3 chapters

Related on Lably

Through Statistics, Variance and Statistical hypothesis test

Levene's test has been used in the past before a comparison of means to inform the decision on whether to use a pooled t-test or the Welch's t-test for two sample tests or analysis of variance or Welch's modified oneway ANOVA for multi-level tests. However, it was shown that such a two-step procedure may markedly inflate the type 1 error obtained with the t-tests and thus is not recommended. Instead, the preferred approach is to just use Welch's test in all cases.

Levene's test may also be used as a main test for answering a stand-alone question of whether two sub-samples in a given population have equal or different variances.

Levene's test was developed by and named after American statistician and geneticist Howard Levene.

Definition

Levene's test is equivalent to a 1-way between-groups analysis of variance (ANOVA) with the dependent variable being the absolute value of the difference between a score and the mean of the group to which the score belongs (shown below as Zij=|Yij−Y¯i⋅| ). The test statistic, W, is equivalent to the F statistic that would be produced by such an ANOVA, and is defined as follows:

W=(N−k)(k−1)⋅∑i=1kNi(Zi⋅−Z⋅⋅)2∑i=1k∑j=1Ni(Zij−Zi⋅)2,

where

  • k is the number of different groups to which the sampled cases belong,
  • Ni is the number of cases in the ith group,
  • N is the total number of cases in all groups,
  • Yij is the value of the measured variable for thejth case from the ith group,
  • Zij={|Yij−Y¯i⋅|,Y¯i⋅ is a mean of the i-th group,|Yij−Y~i⋅|,Y~i⋅ is a median of the i-th group.

(Both definitions are in use though the second one is, strictly speaking, the Brown–Forsythe test – see below for comparison.)

  • Zi⋅=1Ni∑j=1NiZij is the mean of the Zij for group i,
  • Z⋅⋅=1N∑i=1k∑j=1NiZij is the mean of all Zij.

The test statistic W is approximately F-distributed with k−1 and N−k degrees of freedom, and hence is the significance of the outcome w of W tested against F(1−α;k−1,N−k) where F is a quantile of the F-distribution, with k−1 and N−k degrees of freedom, and α is the chosen level of significance (usually 0.05 or 0.01).

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics