Statistical Tests

Bartlett's Test Calculator

Free online Bartlett's test calculator for testing equality of variances. Test homoscedasticity across multiple groups with step-by-step results.

Enter Data Groups

āš ļø Note: Bartlett's test is sensitive to departures from normality. If your data is not normally distributed, consider using Levene's test instead, which is more robust to non-normality.

How to Use the Bartlett’s Test Calculator

  1. Enter data for each group (at least 2 groups, 2+ values each)
  2. Add more groups as needed
  3. Select your significance level (α)
  4. Click ā€œRun Bartlett’s Testā€

What is Bartlett’s Test?

Bartlett’s test tests the null hypothesis that all groups have equal variances (homoscedasticity). It’s commonly used before ANOVA to verify the equal variance assumption.

Hypotheses:

  • Hā‚€ (null): Ļƒā‚Ā² = Ļƒā‚‚Ā² = … = Ļƒā‚–Ā² (all variances are equal)
  • H₁ (alternative): At least one variance differs

The Bartlett’s Test Statistic

The test statistic is:

B = [(N - k) Ɨ ln(Sp²) - Ī£(nįµ¢ - 1) Ɨ ln(sᵢ²)] / C

Where:

  • N = total sample size
  • k = number of groups
  • Sp² = pooled variance
  • sᵢ² = sample variance of group i
  • nįµ¢ = sample size of group i
  • C = correction factor

The correction factor:

C = 1 + [1/(3(k-1))] Ɨ [Ī£(1/(nįµ¢-1)) - 1/(N-k)]


Test Distribution

Under the null hypothesis, Bartlett’s test statistic approximately follows a chi-square distribution with (k - 1) degrees of freedom.

Groups (k)Degrees of Freedom
21
32
43
54

Interpreting Results

P-value vs αConclusion
p < αReject Hā‚€: Variances are significantly different (heteroscedastic)
p ≄ αFail to reject Hā‚€: No evidence of unequal variances (homoscedastic)

What to do if variances are unequal:

  1. Use Welch’s ANOVA instead of standard ANOVA
  2. Transform data (log, square root, etc.)
  3. Use non-parametric alternatives (Kruskal-Wallis test)
  4. Report heteroscedasticity and use robust standard errors

Important Assumptions

Bartlett’s test assumes:

AssumptionDescription
NormalityEach group follows a normal distribution
IndependenceObservations are independent
Random samplingData is randomly sampled

Warning: Bartlett’s test is sensitive to non-normality. If your data violates normality, the test may incorrectly reject Hā‚€.


Bartlett’s Test vs. Levene’s Test

AspectBartlett’s TestLevene’s Test
Sensitivity to normalityVery sensitiveRobust to non-normality
Power with normal dataHigherLower
Best forNormal dataNon-normal or unknown distributions
Test statisticChi-squareF-distribution

Recommendation: Use Levene’s test unless you’re confident your data is normally distributed.


Example Calculation

Testing three treatment groups:

  • Group A: 23, 25, 28, 31, 27 (s² = 9.3)
  • Group B: 45, 48, 42, 51, 47 (s² = 12.5)
  • Group C: 34, 36, 33, 38, 35 (s² = 3.7)

Results:

  • Pooled variance: 8.5
  • Test statistic: 1.82
  • Degrees of freedom: 2
  • P-value: 0.402

Conclusion: p > 0.05, so we fail to reject Hā‚€. The variances are not significantly different.


Applications

Bartlett’s test is commonly used in:

FieldApplication
Medical researchComparing treatment group variability
Quality controlTesting manufacturing process consistency
PsychologyVerifying experimental group homogeneity
AgricultureComparing crop yield variability
ANOVA preparationChecking assumptions before analysis

Statistical Tables
Z-table, t-table, chi-square & F-table — free printable reference tables.
View Tables →

Want to learn the theory?

Our lessons explain the statistical concepts behind this calculator with clear examples.

Browse Lessons →