Contents / Statistics / Analysis of Variance

Chapter 5

Analysis of Variance

The sum-of-squares decomposition and what each mean square estimates; the F-test and its equivalence to the two-sample t-test; which assumptions matter and why; Tukey, Bonferroni, contrasts and Scheffe for multiple comparisons; two-way designs and interaction; fixed versus random effects and variance components; and ANOVA as a linear model with indicator predictors.

5.3After a significant F: multiple comparisons

A rejected says the means are not all equal. Finding out which differ means making pairwise comparisons, and doing that naively hands back exactly the error rate the -test was constructed to protect.

For that is six comparisons, and by the proposition Family-wise error rate under multiplicity, running each at gives a familywise rate of about . The whole point of post-hoc procedures is to control the second rate rather than the first.

That proof explains why Tukey beats Bonferroni here. Bonferroni bounds the familywise rate by the union bound, which ignores the fact that the comparisons are highly dependent — they share the same group means and the same . Tukey uses the exact joint distribution of the most extreme comparison, so it is not conservative: it achieves rather than staying under it, and its intervals are correspondingly narrower.

Pairwise comparisons are not the only question one might ask, and often not the interesting one.

The constraint is what makes a contrast a comparison rather than a level: it is unaffected by adding a constant to every mean. A pairwise difference is the contrast ; "treatments versus control" is ; a linear trend across ordered doses is .

Exercises for §5.3 →

About the practice questions. They check that you can carry out this chapter's computations correctly, and each one is graded on a single answer. They are not proof exercises: working through them confirms the mechanics, not that you could prove the results yourself. For that, re-read the statements above and try to reconstruct their proofs with the page closed. This chapter also has a printable problem set: proofs, sketches and find-the-error work to do on paper, with full solutions on a separate page.