ANOVA: Analysis of Variance

April 12, 2026

Problem

Three teaching methods give scores: A={85,90,88}, B={78,82,80}, C={92,95,88}. Are means different?

Explanation

What is ANOVA?

ANOVA tests whether the means of three or more groups are significantly different. Instead of running multiple t-tests (which inflates error), ANOVA tests them all at once.

The key idea

ANOVA compares two types of variation:

  • Between-group variation: How much do the group means differ from each other?
  • Within-group variation: How much do values within each group vary?

F=Between-group varianceWithin-group varianceF = \frac{\text{Between-group variance}}{\text{Within-group variance}}

If FF is large → the groups are significantly different.

Step-by-step

Groups: A = {85, 90, 88}, B = {78, 82, 80}, C = {92, 95, 88}

Step 1 — Group means: Aˉ=87.67\bar{A} = 87.67, Bˉ=80\bar{B} = 80, Cˉ=91.67\bar{C} = 91.67. Overall mean Xˉ=86.44\bar{X} = 86.44.

Step 2 — Between-group SS: SSB=3[(87.6786.44)2+(8086.44)2+(91.6786.44)2]=3[1.51+41.47+27.30]=210.89SS_B = 3[(87.67-86.44)^2 + (80-86.44)^2 + (91.67-86.44)^2] = 3[1.51 + 41.47 + 27.30] = 210.89

Step 3 — Within-group SS: Compute deviations within each group: SSW=(4.67+5.43+0.11)+(4+4+0)+(0.11+11.09+13.47)=42.89SS_W = (4.67+5.43+0.11) + (4+4+0) + (0.11+11.09+13.47) = 42.89

Step 4 — F-statistic: dfB=2df_B = 2, dfW=6df_W = 6.

F=SSB/dfBSSW/dfW=210.89/242.89/6=105.447.15=14.75F = \frac{SS_B/df_B}{SS_W/df_W} = \frac{210.89/2}{42.89/6} = \frac{105.44}{7.15} = 14.75

Step 5 — Critical value at α=0.05\alpha = 0.05: F2,6=5.14F_{2,6} = 5.14.

14.75>5.1414.75 > 5.14Reject H0H_0. The teaching methods produce significantly different results.

Try it in the visualization

Three groups of data points are displayed. The between-group and within-group variations are shown visually. The F-statistic is computed and compared to the critical value.

Interactive Visualization

Parameters

0.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
ANOVA: Analysis of Variance | MathSpin