All Labs

ANOVA & Experimental Design Lab

Compare means across multiple groups using one-way Analysis of Variance. Enter data for 2 to 6 groups, compute the F-statistic and p-value, measure effect size with eta-squared, and visualize distributions with side-by-side box plots.

Guided Experiment: Comparing Group Means

If three fertilizers have different effects on plant height, the between-group variation should be large relative to within-group variation. What F-statistic and p-value would indicate a real difference?

Write your hypothesis in the Lab Report panel, then click Next.

Controls

n = 5
n = 5
n = 5

ANOVA Results

SourceSSdfMSFp-value
Between4.468022.234052.7717< 0.0001
Within0.5080120.0423
Total4.976014
Reject H₀ at α = 0.05

There is statistically significant evidence that at least one group mean differs from the others.

F-statistic
52.7717
p-value
< 0.0001
Grand Mean
4.5600
Effect Size (η²)
0.8979(large)
Key Formulas
F=MSBMSW=2.230.04=52.77F = \frac{MSB}{MSW} = \frac{2.23}{0.04} = 52.77
η2=SSBSST=4.474.98=0.8979\eta^2 = \frac{SSB}{SST} = \frac{4.47}{4.98} = 0.8979
Group Summaries
GroupnMeanStd Dev
Fertilizer A54.380.28
Fertilizer B55.300.16
Fertilizer C54.000.16

Visualization

Box Plots by Group

44.5055.50Fertilizer An=5Fertilizer Bn=5Fertilizer Cn=5
Group means connectedGrand meanGroup mean

F-Distribution (df₁ = 2, df₂ = 12)

0204060FF = 52.77p = < .0001
F-distribution p-value area

Data Table

(0 rows)
#TrialGroupsF-statisticdf_Bdf_Wp-valueη²Conclusion
0 / 500
0 / 500
0 / 500

Reference Guide

The ANOVA Table

ANOVA partitions the total variation in data into between-group and within-group components. The ANOVA table summarizes these sources of variation.

SST=SSB+SSWSST = SSB + SSW
SSB=ni(xˉixˉ)2,SSW=(xijxˉi)2SSB = \sum n_i(\bar{x}_i - \bar{x})^2, \quad SSW = \sum\sum(x_{ij} - \bar{x}_i)^2

Between-group variation (SSB) measures how far group means are from the grand mean. Within-group variation (SSW) measures spread within each group.

F-Distribution and Hypothesis Test

The F-statistic is the ratio of between-group to within-group mean squares. Under the null hypothesis (all group means are equal), F follows an F-distribution.

F=MSBMSW=SSB/(k1)SSW/(Nk)F = \frac{MSB}{MSW} = \frac{SSB / (k-1)}{SSW / (N-k)}

A large F-statistic (small p-value) provides evidence that at least one group mean differs from the others. The null hypothesis states all group means are equal.

Effect Size (Eta-Squared)

Statistical significance alone does not tell you how important the effect is. Eta-squared measures the proportion of total variation explained by group membership.

η2=SSBSST\eta^2 = \frac{SSB}{SST}

Guidelines for interpreting eta-squared: small (0.01), medium (0.06), large (0.14 or greater). A value of 0.14 means 14% of the total variation is due to group differences.

Conditions for ANOVA

One-way ANOVA assumes three conditions. Violations can reduce the reliability of the test.

  • Independence — Observations within and across groups are independent of each other.
  • Normality — The data in each group are approximately normally distributed (less critical with larger samples due to the Central Limit Theorem).
  • Equal variances — The population variances are roughly equal across groups (homogeneity of variance). A common rule of thumb is that the largest variance should be no more than 4 times the smallest.