How to use this calculator
Test equal population variances across normally distributed independent groups.
- Enter Observations, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Bartlett normal group variance test explained
Bartlett’s test compares independent groups’ sample variances under a normal-population assumption. It contrasts the log pooled variance with the weighted group log variances, applies a small-sample correction, and compares the statistic with a chi-square distribution with one fewer degree of freedom than groups.
Inputs, symbols, and units
x— Observations- Observations in one consistent measurement unit; each needs a matching group label.
g— Matching integer group labels- Integer group identifier for each observation in the same order; labels assign membership, not numeric weights.
Formula and method
sₚ²=Σ(nᵢ−1)sᵢ²/(N−k); C=1+[Σ1/(nᵢ−1)−1/(N−k)]/[3(k−1)]; T=[(N−k)ln(sₚ²)−Σ(nᵢ−1)ln(sᵢ²)]/C; df=k−1.
Here nᵢ is group size, N is total observations, k is the number of groups, and sᵢ² is unbiased sample variance. The p-value is the upper-tail probability of the approximate chi-square distribution.
A worked scenario
Observations = 1, 2, 5, 3, 4, 8, 5, 6, 12; Matching integer group labels = 1, 1, 1, 2, 2, 2, 3, 3, 3.
- Bartlett chi-square: 0.59712135
- Degrees of freedom: 2
- Approximate p-value: 0.74188527
The three sample variances are 4.333333, 7 and 14.333333, with pooled variance 8.555556. The correction factor is 1.222222. The corrected statistic is 0.59712135 with 2 degrees of freedom and an upper-tail p-value of 0.74188527; this does not prove that the population variances are identical.
Assumptions and edge cases
Highly sensitive to nonnormality; each group needs at least two observations and a positive sample variance.
Frequently asked questions
Why is normality emphasized?
Nonnormal distributions can make the test reject for reasons beyond unequal variance.
Can constant groups be entered?
Their zero log variance makes this form undefined.
Is Brown–Forsythe an alternative?
It is less sensitive to some departures from normality.
How do I use the Bartlett normal group variance test calculator?
Enter Observations, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Bartlett normal group variance test?
Observations = 1, 2, 5, 3, 4, 8, 5, 6, 12; Matching integer group labels = 1, 1, 1, 2, 2, 2, 3, 3, 3. Bartlett chi-square: 0.59712135 Degrees of freedom: 2 Approximate p-value: 0.74188527 The three sample variances are 4.333333, 7 and 14.333333, with pooled variance 8.555556. The correction factor is 1.222222. The corrected statistic is 0.59712135 with 2 degrees of freedom and an upper-tail p-value of 0.74188527; this does not prove that the population variances are identical.
Method reference: NIST Bartlett test.
Read our calculation methodology.