What is Bartlett’s Test for Homogeneity of Variances?

Bartlett’s Test for Homogeneity of Variances is a statistical hypothesis test used to determine whether the variances of two or more populations are equal. It is used to compare the variances of two or more groups to determine if the group variances are significantly different from each other. The test is used to assess the homogeneity of the variances of two or more samples, and it can be used to determine if a normal distribution is a good model for a set of data.


Bartlett’s Test is a statistical test that is used to determine whether or not the variances between several groups are equal.

Many statistical tests (like a ) assume that variances are equal across samples. Bartlett’s test can be used to verify that assumption.

The following steps explain how to perform Bartlett’s test.

Note: Don’t confuse this test with , which is used to compare an observed correlation matrix to the identity matrix.

Steps to Perform Bartlett’s Test

Bartlett’s Test uses the following null and alternative :

H0: The variance among each group is equal.

HA: At least one group has a variance that is not equal to the rest.

The test statistic can be calculated as follows:

B = (n-k)lns2 – Σ(nj-1)lnsj2 / c

where:

  • n: The total number of observations across all groups
  • k: The total number of groups
  • ln: This stands for “natural log”
  • s2: The pooled variance
  • nj: The number of observations in group j
  • sj2: The variance of group j

And where c is calculated as:

  • c = 1 + (1/3(k-1))*(Σ(1/(nj-1)) – (1/(n-k))

This test statistic follows a Chi-Square distribution with k-1 degrees of freedom. That is, B ~ X2(k-1).

If the that corresponds to the test statistic is less than some significance level (like α = 0.05) then we can reject the null hypothesis and conclude that not all groups have the same variance.

Example: Bartlett’s Test

She randomly assigns 10 students to use each technique for one week, then makes each student take an exam of equal difficulty. 

The exam scores of the 30 students are shown below:

Example dataset for Bartlett's Test

The professor wants to conduct a one-way ANOVA to see if the three techniques lead to different average exam scores, but she first must conduct Bartlett’s Test to verify that the three groups have equal variances.

It’s cumbersome to perform Bartlett’s Test by hand, so we’ll enter the following data values into the :

Bartlett's Test for equal variances

The test returns the following results:

  • Test statistic B3.30244
  • P-value: 0.19182

Since the p-value is not less than 0.05, the professor will fail to reject the null hypothesis. In other words, she doesn’t have sufficient evidence to say that the three groups have different variances.

Thus, she can proceed to perform the one-way ANOVA.

x