Topic contents

Lesson 00

Analysis of variance: introduction and summary

Build a complete framework for analysis of variance, from research questions and two sources of variation to the F-test.

Why study several population means?

For example, compare the population mean scores for three teaching methods: are μ₁, μ₂, and μ₃ equal? Unequal sample means may simply reflect sampling variability.

The central question: are the observed differences between group means too large to be explained by natural within-group variability alone?
Notation throughout this module: SSA (between-group sum of squares) measures variation of group means around the grand mean; SSE (within-group sum of squares) measures variation of individuals around their own group mean; SST (total sum of squares) measures variation of all individuals around the grand mean, with SST = SSA + SSE.

From comparing means to analyzing variation

  1. Identify the grouping factor: teaching method (A, B, C)
  2. Observe how scores vary within each group
  3. Observe how far apart the group means are
  4. Compare the two sources of variation and calculate the F statistic
Method A: 65.0Method B: 70.0Method C: 75.0406080100Score (points)Method A: 58.6 pointsMethod A: 62.6 pointsMethod A: 64.4 pointsMethod A: 65.8 pointsMethod A: 67.4 pointsMethod A: 71.2 pointsMethod B: 63.6 pointsMethod B: 67.6 pointsMethod B: 69.4 pointsMethod B: 70.8 pointsMethod B: 72.4 pointsMethod B: 76.2 pointsMethod C: 68.6 pointsMethod C: 72.6 pointsMethod C: 74.4 pointsMethod C: 75.8 pointsMethod C: 77.4 pointsMethod C: 81.2 points
  • Grand mean 70.0
Dots represent student scores; thick horizontal lines show group sample means; the dashed line shows the grand mean.

Key concepts and research questions

Factors and levels

Factor: teaching method; levels: the three methods A, B, and C.

Response variable

The score is a quantitative variable; the grouping factor is a categorical variable.

Between-group and within-group variation

Between-group variation reflects differences between group means; within-group variation reflects the spread of observations within the same group.

Hypotheses about population means

H₀: μ₁=μ₂=μ₃; H₁: at least one population mean differs.

A significant F-test does not mean that all pairs of group means differ, nor does it directly establish a causal effect of teaching method.

Essential formulas and the ANOVA table

SST=SSA+SSESST=SSA+SSE
Meaning of mean squares: MSA (between-group mean square) = SSA / (k − 1); MSE (within-group mean square) = SSE / (N − k).
F=MSAMSE=SSA/(k−1)SSE/(N−k)F=\frac{MSA}{MSE}=\frac{SSA/(k-1)}{SSE/(N-k)}
Source of variationSum of squares (SS)Degrees of freedom dfMean square (MS)F
SSA (between groups)300.002150.008.159
SSE (within groups)275.761518.38—
SST (total)575.7617——

k: number of groups; N: total sample size. A larger F usually provides more evidence against the hypothesis that the population means of all groups are equal.

Conditions for one-way analysis of variance (ANOVA) and a lesson map

Independent observations

Observations from the same student should not be treated as repeated independent samples. Random assignment supports causal interpretation, but does not by itself guarantee the validity of the statistical calculation.

Approximately normal within-group residuals

The classical small-sample F-test usually assumes approximately normal errors within each group; it does not require the pooled distribution of all groups to look normal.

Equal variances

Classical one-way ANOVA assumes equal population error variances across groups; consider Welch's ANOVA when this assumption is clearly violated.

Scope of interpretation

Rejecting H₀ means that at least one group's population mean differs; identifying specific differences requires post hoc multiple comparisons.

01 Why do we need analysis of variance? → 02 Between-group and within-group variation → 03 F-test and conclusions