UNIHIVE

Study Hub UNIPORT STA 260.1

STA 260.1 · Introduction to Probability and Statistics

One-way analysis of variance (ANOVA)

Comparing three or more means by splitting variation into between-group and within-group parts, the F test.

Our notes

2 min read

Why not many t tests

Comparing four groups in pairs needs 6 t tests; at 5% each, the chance of at least one false alarm rises to about 26%. ANOVA tests all means at once.

The idea

H₀: μ₁ = μ₂ = … = μ_k. H₁: at least one mean differs.
Total variation splits into:

  • between groups (SSB): how far group means are from the grand mean;
  • within groups (SSW, also called error or residual): how far observations are from their own group mean.

SST = SSB + SSW.

The table

SourceSSdfMSF
BetweenSSBk − 1SSB/(k − 1)MSB/MSW
WithinSSWN − kSSW/(N − k)
TotalSSTN − 1

If H₀ is true, F follows the F distribution with (k − 1, N − k) degrees of freedom; large F means the group means differ more than chance allows.

Worked example

Yields (tonnes per plot) under three fertiliser rates:

  • A: 4, 5, 6 (mean 5)
  • B: 6, 7, 8 (mean 7)
  • C: 8, 9, 10 (mean 9)

Grand mean = 7.
SSB = 3[(5 − 7)² + (7 − 7)² + (9 − 7)²] = 3(4 + 0 + 4) = 24.
SSW = each group has squared deviations 1 + 0 + 1 = 2, so 6.
SST check: Σ(x − 7)² = 9 + 4 + 1 + 1 + 0 + 1 + 1 + 4 + 9 = 30 = 24 + 6 ✓.
MSB = 24/2 = 12; MSW = 6/6 = 1; F = 12.
F₀.₀₅(2, 6) = 5.14. 12 > 5.14: reject H₀; the rates give different mean yields.
(Checked by computer: F = 12.0.)

Assumptions

  • Observations independent.
  • Each group roughly normal.
  • Equal variances in the groups (check the largest SD is not more than about twice the smallest).

After a significant F

F says "some means differ", not which. Follow with a multiple-comparison method (Tukey's HSD, LSD, Scheffé) to find the pairs.

Two-way ANOVA (a glance)

Two factors at once (fertiliser and variety), with an interaction term when the effect of one depends on the other. You will meet it in design of experiments.

Exams usually ask

  • Complete an ANOVA table from data or from partly given sums of squares.
  • State H₀, df, the critical F and the conclusion.
  • List the assumptions.

Common mistake

Using N − 1 for the within-groups df. It is N − k: each group mean uses up one degree of freedom.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All STA 260.1 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.