ANOVA Calculator
One-way ANOVA · F-statistic · group charts
Group 1
Group 2
Group 3
Result
Enter group data and click Calculate
Compare means of multiple groups with one-way ANOVA.
Box Plots & F-Distribution
Python Compiler
What Is ANOVA?
Analysis of Variance (ANOVA) is a statistical method that tests whether the means of three or more groups are significantly different. Instead of running multiple t-tests, ANOVA compares the variance between groups to the variance within groups using a single F-test.
Compare Multiple Groups
Test whether 3 or more group means differ significantly in a single test, avoiding multiple comparison problems.
F-Statistic
The ratio of between-group variance to within-group variance. A large F indicates the group means are spread apart more than expected by chance.
Beyond T-Tests
Running multiple t-tests inflates Type I error. ANOVA controls the overall error rate while testing all groups simultaneously.
ANOVA Table Explained
The ANOVA table summarizes the decomposition of total variance into between-group and within-group components.
| Source | SS | df | MS | F |
|---|---|---|---|---|
| Between | SSB | k − 1 | MSB | F = MSB / MSW |
| Within | SSW | N − k | MSW | |
| Total | SST | N − 1 |
Key: k = number of groups, N = total number of observations. SST = SSB + SSW. The F-statistic follows an F-distribution with (k−1, N−k) degrees of freedom.
Key Formulas
SSB = 3(5−6)² + 3(8−6)² + 3(5−6)² = 3 + 12 + 3 = 18
SSW = (1+0+1) + (0+1+1) + (1+0+1) = 6
MSB = 18 / 2 = 9, MSW = 6 / 6 = 1
F = 9 / 1 = 9.0, df = (2, 6), p = 0.0156
Effect Size: Eta-Squared
Eta-squared (η²) measures how much of the total variance in the data is explained by group membership. It complements the p-value by indicating practical significance.
Assumptions & Alternatives
Independence
Observations must be independent within and across groups. Random sampling or random assignment satisfies this.
Normality
Data within each group should be approximately normally distributed. ANOVA is robust to moderate violations, especially with larger samples.
Homogeneity of Variances
Group variances should be roughly equal. Use Levene’s test to check. If violated, consider Welch ANOVA.
Alternatives & Post-Hoc Tests
Kruskal-Wallis test (no normality assumption)
Welch ANOVA (robust to heteroscedasticity)
Tukey HSD (controls family-wise error rate)
Bonferroni (α / number of comparisons)