- Introduced by
- Maurice Stevenson Bartlett
- Year
- 1937
- Type
- Parametric variance homogeneity test
- Family
- Variance homogeneity
What does it do?
Bartlett's test is a classical parametric procedure for checking whether two or more independent groups share a common population variance.
It is conventionally attributed to Maurice Stevenson Bartlett (1937). The null hypothesis is that all group variances are equal, and the test statistic is built from the logarithms of the pooled and individual group variances and referred to a chi-square distribution. It is commonly run before ANOVA or other procedures that assume equal variances. It should not be confused with Bartlett's test of sphericity, a separate procedure used in factor analysis (see When to use).
The intuition behind the method
If all groups truly share one variance, then the pooled estimate formed from all groups should sit close to each individual group variance. Bartlett's statistic measures the total gap between the log of the pooled variance and the group-specific log-variances, each weighted by its degrees of freedom. A large gap signals heterogeneity. A correction factor in the denominator adjusts for unequal group sizes, so the statistic is better matched to its chi-square reference than the uncorrected version would be.
History
The test is conventionally attributed to Maurice Stevenson Bartlett, whose 1937 paper in the Proceedings of the Royal Society of London, Series A, is titled 'Properties of sufficiency and statistical tests'. That paper deals with small-sample tests and sufficiency in general terms. The statistic is a modified likelihood-ratio statistic, and the correction factor in the denominator improves its chi-square approximation.
When to use it
Choose Bartlett's test when you have two or more independent groups of continuous measurements and want to check equality of variances before a procedure that assumes equal variances, such as one-way ANOVA. It assumes that each group's observations are independent and approximately normally distributed. Do not rely on it when normality is doubtful or when group samples are small. In those cases, Levene's test (including the Brown-Forsythe variant, which uses medians) or the Fligner-Killeen test are the usual alternatives. It is not suitable for ordinal or categorical outcomes. Note that SPSS and other software also offer a 'Bartlett's test of sphericity', which tests whether a correlation matrix is an identity matrix in factor analysis; that is a different procedure from the variance-homogeneity test described here. No fixed minimum group size is given here; with small or strongly unbalanced groups, check the p-value with a simulation or permutation-based approach.
Limitations and considerations
- Sensitive to non-normality: the statistic is built on the log-variance structure of normal samples, and even mild departures from normality can inflate the Type I error rate.
- Weak approximation in small samples: the chi-square reference is asymptotic, so p-values from small groups can be inaccurate even after the correction factor is applied.
- Global test only: a significant result shows that at least one group variance differs but not which one, so follow-up inspection of group standard deviations is needed.
- Continuous data only: the statistic is defined for continuous measurements and is not appropriate for ordinal or categorical variables.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Good power when the normal model holds: the statistic is derived from likelihood-ratio principles, so it is most informative when the assumption of normal within-group distributions is well supported.
- Closed-form reference distribution: the chi-square approximation allows the statistic and p-value to be computed directly from the group variances and sizes, without resampling.
- Several groups in one test: a single statistic compares all k group variances at once, rather than requiring a series of pairwise comparisons.
- Explicit handling of unequal group sizes: the correction factor in the denominator accounts for how differing group sizes affect the approximation.
Applications
- Pre-checking the homoscedasticity assumption before one-way or multi-way ANOVA
- Quality control in manufacturing to verify that process variability is consistent across production lines or shifts
- Clinical trials comparing variance of response variables across treatment groups before mixed-model analysis
- Environmental monitoring to assess whether measurement variability is stable across sampling sites or time periods
- Educational research comparing score variability across student cohorts or instructional conditions
How it works
How it works
The pooled variance is a weighted average of the group sample variances, where each group is weighted by its degrees of freedom (n_i minus 1) and the total is divided by N minus k. Under the null hypothesis it is the single best estimate of the common variance, and it serves as the reference point for the next step.
Formula
S_p^2 = \frac{1}{N - k} \sum_{i=1}^{k} (n_i - 1)\, S_i^2The numerator is the log of the pooled variance, scaled by N minus k, minus the sum of each group's log-variance weighted by its degrees of freedom. This difference is divided by a correction factor that depends on the group sizes and on k, which is intended to improve the chi-square approximation when group sizes differ.
Formula
B = \frac{(N - k)\ln S_p^2 - \sum_{i=1}^{k}(n_i - 1)\ln S_i^2}{1 + \frac{1}{3(k-1)}\left(\sum_{i=1}^{k}\frac{1}{n_i - 1} - \frac{1}{N - k}\right)}Under the null hypothesis of equal population variances, and assuming each group is normally distributed, the statistic is approximately chi-square distributed with k minus one degrees of freedom, where k is the number of groups. The result is asymptotic, so the accuracy of the p-value depends on how large the group samples are.
Formula
B \overset{H_0}{\sim} \chi^2(k - 1)The null hypothesis is rejected when the statistic exceeds the chi-square critical value with k minus one degrees of freedom at the chosen significance level. Rejection means at least one group variance differs from the others. The test does not identify which group or groups are responsible.
Formula
\text{Reject } H_0 \text{ if } B > \chi^2_{\alpha,\, k-1}Common pitfalls
- Running Bartlett's test without first checking normality can produce misleading results. When normality is doubtful, Levene's or Fligner-Killeen tests are the safer choice.
- Reading a non-significant result as proof of equal variances ignores the test's limited power, particularly when group samples are small.
- Relying on the correction factor for strongly unbalanced designs. The factor adjusts for group sizes but does not remove the sensitivity of the chi-square approximation to small or uneven samples.
- Treating a significant result as practically important. With large samples, small variance differences can be statistically detectable yet have little effect on the downstream ANOVA.
Frequently asked questions
How does Bartlett's test differ from Levene's test?
Bartlett's test is based on likelihood-ratio principles and assumes that each group is normally distributed. This gives it good power when that assumption holds, but makes it sensitive to non-normal data. Levene's test uses absolute deviations from group means or medians and is much less sensitive to non-normality, so it is usually preferred when the distribution of the data is uncertain.
What should I do if Bartlett's test is significant?
A significant result means the equal-variance assumption is likely violated. Depending on context, you may apply a variance-stabilising transformation, use an ANOVA variant that does not assume equal variances, or switch to a non-parametric alternative. Inspecting the group standard deviations helps identify which groups drive the heterogeneity.
Can Bartlett's test be used with only two groups?
Yes. With two groups, the test is still applicable and the statistic is still referred to a chi-square distribution with k minus one degrees of freedom. It is a different statistic from the two-sample F-test for equal variances, so the two do not give identical results. Because the test remains sensitive to non-normality, Levene's or Fligner-Killeen tests are better choices whenever the normality of each group cannot be confirmed.
Related methods
Sources
Bartlett, M. S. (1937). Properties of sufficiency and statistical tests. Proceedings of the Royal Society of London. Series A, 160(901), 268–282.
Open DOI reference