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
How to Use the Bartlettās Test Calculator
- Enter data for each group (at least 2 groups, 2+ values each)
- Add more groups as needed
- Select your significance level (α)
- 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 |
|---|---|
| 2 | 1 |
| 3 | 2 |
| 4 | 3 |
| 5 | 4 |
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:
- Use Welchās ANOVA instead of standard ANOVA
- Transform data (log, square root, etc.)
- Use non-parametric alternatives (Kruskal-Wallis test)
- Report heteroscedasticity and use robust standard errors
Important Assumptions
Bartlettās test assumes:
| Assumption | Description |
|---|---|
| Normality | Each group follows a normal distribution |
| Independence | Observations are independent |
| Random sampling | Data 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
| Aspect | Bartlettās Test | Leveneās Test |
|---|---|---|
| Sensitivity to normality | Very sensitive | Robust to non-normality |
| Power with normal data | Higher | Lower |
| Best for | Normal data | Non-normal or unknown distributions |
| Test statistic | Chi-square | F-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:
| Field | Application |
|---|---|
| Medical research | Comparing treatment group variability |
| Quality control | Testing manufacturing process consistency |
| Psychology | Verifying experimental group homogeneity |
| Agriculture | Comparing crop yield variability |
| ANOVA preparation | Checking assumptions before analysis |
Related Resources
- ANOVA - Analysis of variance
- T-Test Calculator - Compare two groups
- Standard Deviation Calculator - Calculate variance
- Descriptive Statistics Calculator - Group statistics
Want to learn the theory?
Our lessons explain the statistical concepts behind this calculator with clear examples.
Browse Lessons ā