Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 28

Tukey's HSD for Group Mean Differences

Recommended resources

Welcome to the next lesson in our course. In our previous session, we successfully used ANOVA to determine that there were statistically significant differences in both our bra-fitting and relationship management experiments. For the relationship scenario with two groups, this was a complete answer. However, for the bra-fitting experiment with three groups (Control, 10% Off, 25% Off), the significant F-test left us with a crucial question: where exactly do the differences lie?

This lesson will equip you with the tool to answer that question. We will delve into post-hoc tests, specifically the widely-used Tukey's Honestly Significant Difference (HSD) test. You will learn how to perform the necessary calculations to compare each pair of groups, allowing you to pinpoint exactly which experimental conditions are significantly different from one another. This moves our analysis from a general conclusion to specific, actionable insights.

Why Do We Need a Special Test?

After a significant ANOVA result with more than two groups, it's tempting to simply run a series of t-tests for every possible pair of groups (e.g., Control vs. 10%, Control vs. 25%, 10% vs. 25%). However, this approach has a serious flaw. Each test carries its own risk of a Type I error (a false positive), and as you run more tests, the overall probability of making at least one such error on the same dataset—the experiment-wise error rate—inflates dramatically.

Post-hoc tests like Tukey's HSD are designed to solve this problem. They allow for all pairwise comparisons while controlling the experiment-wise error rate at our chosen significance level (e.g., ). Tukey's method does this by using a different statistical distribution, the Studentized Range distribution, to find a more conservative critical value for the comparisons.

For a foundational understanding of post-hoc tests and the specific formula for Tukey's HSD, please review the following text.

31. The One Way Analysis of Variance and Post Hoc Tests

This reading from a UPEI pressbook introduces why post-hoc tests are necessary after an ANOVA and provides the formula and a worked example for Tukey's HSD.

Please read the introductory section, Determining the Location of the Difference, which explains the role of these tests. Then, focus on the first part of the section on Tukey and Scheffe post hoc tests. Pay close attention to the formula presented for the Tukey HSD test and the data components it requires, particularly the Mean Square Within (MSW) from the ANOVA table. Note that the resource calculates a t-like statistic; we will soon see how this relates to the standard q statistic.


The Tukey HSD Procedure: The q-statistic

As you saw in the reading, the Tukey test involves comparing pairs of means. The standard approach calculates a q-statistic for each pair. This is slightly different from the formula in the reading, but is the foundational statistic for this test. The formula is:

Where:

  • and are the means of the two groups being compared.
  • is the Mean Square Within from the ANOVA table we calculated in the previous lesson. It's a pooled estimate of the variance across all groups.
  • is the number of subjects in each group. (Tukey's HSD is most straightforward when group sizes are equal).

We then compare our calculated q value to a critical value, , from a Studentized Range q-table. To find , we need three pieces of information:

  1. The significance level, .
  2. The number of groups in the experiment, .
  3. The degrees of freedom for the MSW term, .
A table of critical values for the Studentized Range (q) distribution at a significance level of \(\alpha=0.01\). We will use this table to find our critical value.

Decision Rule: For each pair, if , the difference between the two group means is statistically significant.



Application 1: Bra-Fitting Business – Pinpointing the Difference

In our experiment, the ANOVA test was significant. Now we must find out which discount levels actually differ.

Recall the data from our ANOVA:

  • Groups (k=3): Control (), 10% Off (), 25% Off ().
  • Observations per group (n): 4
  • Total observations (N): 12
  • ANOVA results: and .

Let's conduct the Tukey HSD test. We will use the provided q-table, which is for a significance level of .

Step 1: Find the Critical Value ()
We look up the value in the table using our parameters:

  • Significance Level:
  • Number of groups:
  • Within-group degrees of freedom:

In the table, find the column for k=3 and the row for df=9. The value at their intersection is 5.428.
So, .

Step 2: Calculate the Standard Error Term
The denominator of the q formula is the same for all comparisons. Let's calculate it once:

Step 3: Calculate the q-statistic for Each Pairwise Comparison

There are pairs to compare:

  1. 25% Off vs. Control:

  2. 25% Off vs. 10% Off:

  3. 10% Off vs. Control:

Step 4: Make Decisions and Interpret the Results

Now we compare each calculated q value to our critical value, .

  • 25% vs. Control: . The difference is statistically significant.
  • 25% vs. 10%: . The difference is statistically significant.
  • 10% vs. Control: . The difference is not statistically significant.

Conclusion for the Business: At a strict 0.01 significance level, we can confidently conclude that the 25% discount leads to a significantly higher initial purchase amount than both no discount and a 10% discount. However, the effect of the 10% discount is not strong enough to be considered statistically different from offering no discount at all. This provides a clear, data-driven recommendation: if the goal is to maximize the initial sale value, the 25% coupon is the effective strategy, while the 10% coupon is not.


An Alternative View: The "Honestly Significant Difference" Value

Another way to apply Tukey's test is to calculate the single value that represents the minimum difference between any two means required for them to be considered "honestly significantly different" (HSD).

The formula is:

Any pair of means whose absolute difference is greater than this HSD value is significantly different.

Let's re-analyze the bra-fitting data using this method:

Now, we compare the absolute differences in our means to this value:

  • |25% Off - Control|: . Since , this pair is significant.
  • |25% Off - 10% Off|: . Since , this pair is significant.
  • |10% Off - Control|: . Since , this pair is not significant.

As you can see, this method yields the exact same conclusions but can be more efficient if you have many pairs to check.



Application 2: Relationship Management – A Case of Two Groups

As noted in the last lesson, when an ANOVA with only two groups yields a significant result, a post-hoc test is technically redundant. The significant F-statistic already implies that the two group means are different.

However, to demonstrate the calculation and satisfy the requirement for a parallel example, let's run the Tukey HSD test on this data.

Recall the data from our ANOVA:

  • Groups (k=2): Control (), Treatment ().
  • Observations per group (n): 5
  • Total observations (N): 10
  • ANOVA results: and .

Step 1: Find the Critical Value ()
Using the q-table ():

Find the column for k=2 and row for df=8. The value is 4.745.
So, .

Step 2: Calculate the Standard Error Term

Step 3: Calculate the q-statistic for the Single Pair

Step 4: Make a Decision and Interpret

  • Treatment vs. Control: . The difference is statistically significant.

Conclusion: The Tukey HSD test confirms our finding from the ANOVA F-test: the structured communication protocol has a statistically significant effect on relationship satisfaction scores. This exercise also demonstrates that for , the Tukey HSD procedure provides the same conclusion as the overall F-test.


Conclusion

In this lesson, you have learned how to move beyond the general conclusion of an ANOVA to identify specific differences between groups. By mastering Tukey's HSD test, you can now conduct a complete analysis of a single-factor experiment, from calculating sums of squares to pinpointing exactly which treatments are effective.

Key Takeaways:

  • When an ANOVA with more than two groups is significant, a post-hoc test is required to determine which specific pairs of groups are different.
  • Tukey's HSD test controls the experiment-wise error rate by using a critical value () from the Studentized Range distribution.
  • The test involves calculating a -statistic for each pair of means and comparing it to .
  • A practical shortcut is to calculate a single HSD value (the minimum significant difference) and compare the absolute difference between each pair of means to this value.

The experimental designs we've analyzed over the past three lessons represent a gold standard for inferring causality because we, the researchers, controlled the assignment of treatments. However, in many real-world situations, we only have observational data. In our next module, we will shift our focus to causal analysis in these observational settings. We will begin by learning how to map out assumed causal relationships using Directed Acyclic Graphs (DAGs), a powerful tool for identifying and dealing with common statistical pitfalls like confounding.