Multiple Comparisons

What are multiple comparisons?

A multiple comparison test is a hypothesis test that is used to determine which groups have different means in a one-way ANOVA. If the F test of the one-way ANOVA is statistically significant, the null hypothesis of equal means is rejected. However, the F test can’t tell you which group means are different. A multiple comparison test identifies which group means are different from each other. A multiple comparison test controls the experiment-wise error rate instead of the comparison-wise error rate.

You can think of experiment-wise and comparison-wise error rates by using the following example. Suppose you are planning a road trip in your old car and the probability of failure of a key engine component is 5%. You might be willing to leave on your trip in this car if you had a 5% chance of engine failure over the duration of the trip. Now suppose there were 10 key components in the engine, each with a 5% change of failure during the trip. The overall chance of engine failure (assuming independent failures) is about 90%. You probably wouldn’t be willing to leave on your trip in this car! In multiple comparisons, the chance of one component failing is like testing the difference between a pair of group means. The chance of at least one component failing over the whole group of components is like testing the difference between all possible pairs of group means.

Making multiple comparisons such as comparing pairs of means using one-way ANOVA increases the possibility of declaring a difference significant when there is not a real difference in the group means. We are satisfied with a 100$\alpha$% chance of committing this type of error, where $\alpha$ is chosen by the researcher. However, the more tests you do, the more likely you are to happen upon a significant difference occurring by chance alone. If you compare all possible means in a one-way layout with many different levels, there are many possible tests, and calling a difference significant, when in reality it is not, becomes very likely.

Recall the hypotheses for the ANOVA F test:

$H_0$: all group means equal

$H_1$: not all group means equal

Rejecting the null hypothesis $H_0$ enables you to conclude that at least one mean is different from the others. It does not inform you about which group means are different. Comparing many pairs of means to each other introduces the problem of multiple comparisons.

Suppose you are using a significance level of $\alpha$ = 0.05 and your ANOVA F test is significant. You then want to know which group means are different. If you compare all means to each other using a two-samplet-test for each comparison, you have a probability of not making an error of 1 - $\alpha$ = 1 - 0.05 = 0.95 for each comparison. The probability of not making an error when the null hypothesis is true among all n comparisons is 0.95n. This probability is called the experiment-wise error rate. The significance level is the comparison-wise error rate.

Graph showing how the experiment-wise error rate increases with the number of pairwise comparisons, starting with 0.05 for two groups and ending at 0.66 for seven groups.

The figure above displays the experiment-wise error rate, that is, the probability of committing at least one Type I error when comparing all pairs of group means by the number of comparisons at $\alpha$ = 0.05. The number of comparisons made is the number of ways to choose two group means from all the group means, that is $\binom{k}{2}=\frac{k!}{2!(k-2)!}=\frac{k(k-1)}{2}$ where k is the number of groups. For example, for two groups, there is just one comparison. For three groups, there are three comparisons. For seven groups, there are 21 comparisons. Even though the comparison-wise error rate stays the same at 5%, the experiment-wise error rate – that is, the probability of at least one Type I error in all the tests – increases as the number of comparisons increases.

Multiple comparison tests

There are many different multiple comparison methods available in statistical software. They can be compared based on the number of comparisons to be made and the adjustment to the $\alpha$ level.

The table below summarizes many of these tests, ranked approximately from least conservative to most.

Procedure Control Number of comparisons Use
Student t Comparison-wise (k – 1) / 2 Single comparison
Student-Newman-Keuls Stepwise varies All comparisons
Fieller Experiment-wise k(k – 1) / 2 Tests ratios of group means, equal or unequal variances
Hsu MCB Experiment-wise k – 1 Compare with min or max
Dunnett Experiment-wise k – 1 Compare to control group
Tukey-Kramer Experiment-wise k(k – 1) / 2 All comparisons
Games-Howell Experiment-wise k(k – 1) / 2 All comparisons, unequal sample sizes, unequal variances
Bonferroni Experiment-wise k(k – 1) / 2 All comparisons

Example of the Tukey-Kramer multiple comparison test

Suppose you are studying the effect of five different fertilizers on crop yield. You have grown plants in 12 fields per fertilizer and have measured the bushels of crop per acre. The data are shown in the following table.

None Urea Ammonium Sulfate UAN-32 Enhanced Efficiency Nitrogen
100.4 95 104 113.4 106.7
99.6 101.3 105.6 111.9 104.3
101.9 98.3 108.4 109.1 101.8
100.3 99.8 110.5 104.4 101.2
98.4 100.4 102.2 108 102.6
101.1 101.1 110.5 110 104.7
103.9 103.2 110 104.1 101
102.8 105.1 108.3 109.2 103.4
97.9 101.6 106.8 109.3 103.5
96.2 106.1 105.1 110.1 105.6
98.1 100 110.4 104.4 104.6
100.1 103.1 111.9 106

First, you can graph the data. From the figure below, it appears the assumptions of normality and equal variances within each group are met. The independence assumption is satisfied by the design of the experiment. Treatments were randomly assigned to fields.

A graph of yield by fertilizer. There appears to be a difference in the distribution of data for different groups.

Next, you can fit a one-way ANOVA model to the data. The null hypothesis is that the mean yield is the same for each fertilizer treatment. The alternative is that at least one mean is different from the others. As seen below, the F test has a p-value of less than 0.0001, indicating we should reject the null hypothesis.

A screen capture of the analysis of variance table for the fertilizer yield data.

Rejecting the null hypothesis tells us that some group means are different from each other. But which ones? From the graph, it looks like None and Urea might have the same mean, and they might have different means than the other three groups. Use a Tukey-Kramer test to answer this question.

multiple-comparisons-pic3.png

The Ordered Differences Report shows which pairs of means are significantly different from each other. Using an experiment-wise $\alpha$ = 0.05, there are seven significant differences and three non-significant differences.

The circles on the plot are a graphical way of seeing the differences.

Animated picture showing how comparison circles can be used with the Tukey-Kramer test to visualize significant differences among group means.

Experiment-wise vs. comparison-wise error rates

What if you had analyzed all 10 comparisons of the fertilizer group means using two-sample t-tests – in other words, incorrectly not doing any adjustment for the multiple comparisons?

multiple-comparisons-pic4.png

You would have found more statistically significant differences! Controlling each comparison at $\alpha$ = 0.05 instead of all comparisons at $\alpha$ = 0.05 finds that there is an additional significant difference in the means between Urea and Enhanced Efficiency Nitrogen. There is a higher probability of a false alarm (making a Type I error) when finding differences in means using all two-sample t-tests. A multiple comparison test controls the experiment-wise error rate instead of the comparison-wise error rate.