Analysis of variance is one of the heaviest Paper II units: 8 of 76 readable questions on 4 March 2023, about 10 of 91 on 27 October 2023 and 4 of the 28 readable questions on 19 January 2025. SSC asks who developed it (R.A. Fisher), its purpose (testing equality of several means), its assumptions, degrees of freedom in one-way, two-way and randomised block layouts, filling an ANOVA table, the F ratio, the number of hypotheses in two-way ANOVA and follow-up tests such as Duncan's multiple range test.
In brief
- Analysis of variance (ANOVA) tests whether several population means are equal by splitting the total variation into parts.
- R.A. Fisher developed ANOVA in the 1920s for agricultural experiments at Rothamsted.
- The total sum of squares is split into variation between groups (due to treatments) and within groups (error).
- The F statistic is the mean square between groups divided by the mean square within groups.
- A large F means the group means differ more than chance allows, so the null hypothesis of equal means is rejected.
- ANOVA assumes normal populations, independent observations, equal variances (homoscedasticity) and additive effects.
- In one-way ANOVA with k groups and N observations, the degrees of freedom are k - 1 between, N - k within and N - 1 total.
- The within-group sum of squares is ΣΣ(xij - x̄j)², the squared deviations of each value from its own group mean.
- The between-group sum of squares is Σnj(x̄j - x̄)², the squared deviations of group means from the grand mean, weighted by group size.
- Two-way ANOVA with one observation per cell tests two factors, such as treatments and blocks.
- With r rows and c columns and one observation per cell, the degrees of freedom are r - 1, c - 1, (r - 1)(c - 1) for error and rc - 1 in total.
- With more than one observation per cell, two-way ANOVA also tests the interaction, so it tests three hypotheses.
- The three principles of design of experiments are randomisation, replication and local control.
- A completely randomised design (CRD) is analysed by one-way ANOVA, and a randomised block design (RBD) by two-way ANOVA.
- A Latin square design controls two sources of variation, with each treatment once in each row and each column.
- After a significant F, multiple comparison tests such as LSD, Tukey's HSD and Duncan's multiple range test find which means differ.
Numbers to remember
| Number | What it is |
|---|---|
| k - 1 | treatment df in one-way ANOVA with k groups |
| N - k | error df in one-way ANOVA with N observations |
| N - 1 | total df |
| (t - 1)(r - 1) | error df in an RBD with t treatments and r blocks |
| rt - 1 | total df in an RBD |
| (m - 1)(m - 2) | error df in an m x m Latin square |
| 3 | hypotheses tested in two-way ANOVA with interaction (A, B and A x B) |
| 1 | value near which F lies when H0 is true |
Key formulas and rules
- SST = SSB + SSW
- CF = T²/N; SST = ΣΣx² - CF; SSB = ΣTj²/nj - CF
- SSW = ΣΣ(xij - x̄j)²; SSB = Σnj(x̄j - x̄)²
- One-way df: k - 1, N - k, N - 1
- F = MSB/MSE = [SSB/(k - 1)]/[SSW/(N - k)]
- Two-way (one per cell) df: r - 1, c - 1, (r - 1)(c - 1), rc - 1
- Two-way with m per cell: interaction df (r - 1)(c - 1); error df rc(m - 1)
- RBD: treatments t - 1; blocks r - 1; error (t - 1)(r - 1); total rt - 1
Common traps
- Saying ANOVA tests the equality of variances is wrong; it tests means.
- Listing unequal variances as an assumption is wrong.
- Using k instead of k - 1 for treatment df, or N - 1 instead of N - k for error df.
Solved examples
Q. The analysis of variance technique was developed by: Options: RA Fisher, Karl Pearson, PC Mahalanobis, Irving Fisher. (CGL 2022 Tier 2 Statistics, 4 Mar 2023)
Answer: RA Fisher
Step 1: R.A. Fisher developed ANOVA for agricultural experiments at Rothamsted in the 1920s. Step 2: Irving Fisher is known for the ideal index number. Step 3: So the answer is R.A. Fisher.
Q. Consider the ANOVA table: Treatments df a, SS b, MS c, F 5; Error df 12, SS d, MS 20; Total df 15, SS 540. The values of a, b, c and d are: (CGL 2022 Tier 2 Statistics, 4 Mar 2023)
Answer: 3, 300, 100 and 240
Step 1: a = 15 - 12 = 3. Step 2: d = 12 x 20 = 240. Step 3: b = 540 - 240 = 300. Step 4: c = 300/3 = 100, and F = 100/20 = 5 checks.
Q. In one-way ANOVA with three groups of 10, 9 and 10 observations, the residual (error) degrees of freedom are: (CGL 2022 Tier 2 Statistics, 4 Mar 2023)
Answer: 26
Step 1: N = 29 and k = 3. Step 2: Error df = N - k. Step 3: = 26.
What the full notes cover
- Why analysis of variance
- Assumptions
- One-way ANOVA
- Two-way ANOVA
- Principles of design of experiments
- Basic designs: CRD, RBD and Latin square
- After ANOVA: multiple comparisons and ANCOVA