Statistics How To

Bartlett’s Test: Definition and Examples

Homogeneity of Variances > Bartlett’s Test

What is Bartlett’s Test?

There are actually two tests called Bartlett’s. The first part of this article is for Bartlett’s test for homogeneity of variances. If you’re looking for Bartlett’s test for sphericity (testing that the correlation matrix has an identity matrix), skip to the bottom section.

Bartlett’s test for homogeneity of variances is used to test that variances are equal for all samples. It checks that the assumption of equal variances is true before running certain statistical tests like the One-Way ANOVA. It’s used when you’re fairly certain your data comes from a normal distribution. A similar test, called Levene’s test, is a better choice for non normal distributions.

The null hypothesis for the test is that the variances are equal for all samples. In statistics terms, that’s:
H0: σ12 = σ22 = … = σk2.
The alternate hypothesis (the one you’re testing), is that the variances are not equal for one pair or more:
H0: σ12 ≠ σ22 ≠… ≠ σk2.

The test statistic is rather ugly:
bartlett's test


That’s why you’ll most likely want to use software for the test.

If you really want to run Bartlett’s test by hand, check out this article, which explains how to do it in great detail.

Bartlett’s Test for Sphericity


Bartlett’s test for Sphericity compares your correlation matrix (a matrix of Pearson correlations) to the identity matrix. In other words, it checks if there is a redundancy between variables that can be summarized with some factors.

  • In IBM SPSS 22, you can find the test in the Descriptives menu: Analyse-> Dimension reduction-> Factor-> Descriptives-> KMO and Bartlett’s test of sphericity.
  • Instructions in R.

Reference:
Snedecor, George W. and Cochran, William G. (1989), Statistical Methods, Eighth Edition, Iowa State University Press.

------------------------------------------------------------------------------

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments are now closed for this post. Need help or want to post a correction? Please post a comment on our Facebook page and I'll do my best to help!
Bartlett’s Test: Definition and Examples was last modified: November 13th, 2017 by Stephanie Glen