Analysis of variance
The analysis of variance (ANOVA) tests for a difference among means of more than two groups.
Why we can't just perform lots of t-tests
We know how to compare two samples using a t-test, so we might be tempted to just perform lots of pairwise t-tests. The problem is that doing all of these tests will inflate our Type-I error rate. Instead we want a single test of our single null hypothesis.
Overview of ANOVA
The basics of ANOVA. How does ANOVA provide a single test for whether all population means are equal across all of our groups?
The Nuts and Bolts of ANOVA
An ANOVA uses an F test to calculate a P-value. The F statistics is based on the ratio of among-group variation relative to within-group variation. Here we will go over where all of these numbers come from and how they are calculated.
R-square in ANOVA
We can measure the proportion of variation that is explained by our among-group factor using a R-square.
ANOVA post hoc tests
While an ANOVA can tell us whether there are differences among groups, it cannot tell us which means are different from which. To do this, we need to perform a post hoc test.
Multi-Factor ANOVA and Interactions
So far we have talked only about the effects of one factor on a continuous response, but ANOVA can be used to test the effects of multiple factors and their statistical interactions at the same time.
Additional Resources
Whitlock & Schluter - The Analysis of Biological Data
Chapter 15: pages 463-486 [Sapling]
ANOVA: One-way analysis of variance
Intro: A worked example of ANOVA.
ANOVA and Kruskal-Wallis test in R
Intermediate: Code tutorial video for comparing means of multiple groups in R.
One-way ANOVA versus two-way ANOVA
Intermediate: Brief comparison of the two tests.
Review Questions
In an ANOVA with 4 groups, a rejection of the null hypothesis implies which of the following?
(A) Some subset of population means differs from some other subset of population means.
(B) The 4 population means are equal to each other.
(C) Each population mean differs significantly from all other population means.
What do you think the F value will be for the following figure?
3. What is a non-parametric alternative to the ANOVA?
The Next Steps
Confused?
Let’s move down the tree and review these concepts.
Ready to Move Forward?
Let’s move up the tree to the next topic.