One-Way ANOVA
To tell whether several group means really differ, compare how far apart the group means are with how much the values bounce around inside each group. If the gaps between groups are big next to that everyday noise, the means probably aren't all equal.
What the symbols mean
- F statistic
Near 1 when the group means are equal; large when they differ.
- Between-group sum of squares
Group size times squared distance of each group mean from the grand mean, added up.
- Within-group sum of squares
Squared distances of each value from its own group mean, added up.
- Number of groups
Degrees of freedom between groups: k − 1.
- Total observations
Degrees of freedom within groups: N − k.
Explanation
ANOVA is simply a test of whether three or more groups share the same average, like whether three fertilizers grow plants equally well. The name, short for analysis of variance, sounds like it's about spread rather than averages, and that's because of how it decides: it compares two kinds of variation to judge the means. The formula looks heavy, but it's one fraction: on top (how far the group averages are from each other) and on the bottom (how much individual values scatter inside their own group, which is just noise). If the top is a lot bigger than the bottom, the groups really differ. Each piece is a sum of squared distances divided by a count, nothing you haven't seen before, so bear with it.
Why not several t-tests? You already know how to compare two means with a t-test, so the obvious move with three groups is to run three of them: A vs B, A vs C, B vs C. The trouble is that each test has its own 5% chance of a false alarm. Run enough of them and the chance that at least one goes off by luck alone balloons. ANOVA asks a single question instead: are all the means equal?
Hypotheses: . : at least one mean differs.
Where the F comes from. Think about what you'd expect if were true. The group means would still wobble a bit, just from sampling, and how much they wobble depends on how noisy the individual values are. So we estimate the noise two ways. measures it directly, from how spread out each group is around its own mean. measures it indirectly, from how spread out the group means are around the grand mean. When holds, both estimate the same thing and their ratio sits near . When some mean really is different, the group means get pushed apart, grows, and gets large. That's why only large counts as evidence: the test is right-tailed.
The F distribution depends on two degrees of freedom, and . The second one is because each group uses up one degree of freedom estimating its own mean, the same way a single sample loses one in .
Assumptions: independent random samples, roughly normal populations, and similar standard deviations in the groups.
A common mistake. When you reject , it's tempting to say all the means differ. ANOVA doesn't tell you that. It only says at least one mean is off from the rest. To find out which ones, you need follow-up comparisons.
See it
Worked examples
Groups A ; B ; C . Compute .
- 1
The group means are , and the grand mean of all nine values is .
Practice
Type your answer and check it. Solve them all to complete the lesson.
For the three groups above, find the grand mean.
Find .
Find .
Find .
The critical value is for at . Decision?
An experiment compares 3 fertilizers on 12 plots in all. It finds and . Compute .
An ANOVA has groups and observations. What are the two degrees of freedom of its statistic? Enter both.
The hardest one here. Get it, and you've got this lesson.
Three groups of three: A = {4, 5, 6}, B = {6, 7, 8} and C = {8, 9, 10}. Compute .
Where it's used
Agricultural trials compare several fertilizers, drug studies compare doses, and manufacturers compare machines or suppliers with ANOVA.