StatisticsInference for Regression and Several Means3 of 3
Inference for Regression and Several Means · 3

Multiple Comparisons After ANOVA

When an ANOVA gives a tiny p\pval{p}-value, it only tells us that at least one group differs from the others. To find out which specific groups beat which, we have to check the shared noise estimate and compare the groups pair by pair.

1

Checking the Shared Noise Estimate

Before comparing individual groups, we want to know how much individual scores naturally vary inside their groups, and whether we can trust the single noise number in the ANOVA table to describe all of them.

Shared Noise and Checking ANOVA Conditions
60\htmlClass{lc-mute}{60}
70\htmlClass{lc-mute}{70}
80\htmlClass{lc-mute}{80}
90\htmlClass{lc-mute}{90}
100\htmlClass{lc-mute}{100}
Re-reading\htmlClass{lc-ink}{\text{Re-reading}}
70\htmlClass{lc-violet}{70}
Highlighting\htmlClass{lc-ink}{\text{Highlighting}}
72\htmlClass{lc-violet}{72}
Flashcards\htmlClass{lc-ink}{\text{Flashcards}}
81\htmlClass{lc-violet}{81}
Practice Tests\htmlClass{lc-ink}{\text{Practice Tests}}
85\htmlClass{lc-violet}{85}
ANOVA: p<0.0001Reject H0\htmlClass{lc-ink}{\text{ANOVA: }\htmlClass{lc-green}{p < 0.0001}\quad\text{Reject } H_0}
Text solution
Find the typical spread within a groupTake the square root of the Error Mean Square from the ANOVA table to convert squared points back into test points.
Typical individual spread=MSError⏟shared variance = 36=36=6 points\displaystyle \begin{aligned}&\text{Typical individual spread} \\ &= \sqrt{\underbrace{\noise{\text{MS}_{\text{Error}}}}_{\text{shared variance } = \, \noise{36}}} \\ &= \sqrt{\noise{36}} = \noise{6}\text{ points}\end{aligned}
Check the equal-spread rule of thumbCompare the largest group standard deviation to the smallest to verify that no group has more than double the spread of another.
6.7⏟largest s\displaystyle \underbrace{\noise{6.7}}_{\text{largest } \noise{s}} ≤2×5.2⏟smallest s\displaystyle \le 2 \times \underbrace{\noise{5.2}}_{\text{smallest } \noise{s}} =10.4\displaystyle = \noise{10.4}

In the four study groups below, the shared noise band (±MSError\pm\sqrt{\noise{\text{MS}_{\text{Error}}}}) sits across every group average at once; when one group's spread stretches past double the smallest group's spread, the shared band widens across all four groups.

Because ANOVA combines every group’s spread into one shared noise band, a single wide group makes that band too big for the steady groups and still too small for itself.
2

Pairwise Comparisons with Pooled tt-Tests and Bonferroni

Once the conditions hold, we want to test the gaps between all 66 pairs of our 44 study groups without letting 66 separate tests inflate our false-alarm risk to about 20%\risk{20\%}.

Pooled t-Tests and the Bonferroni Adjustment
Error\htmlClass{lc-ink}{\text{Error}}
df  36\htmlClass{lc-ink}{\text{df}\;36}
SS  1296\htmlClass{lc-ink}{\text{SS}\;1296}
MS  36\htmlClass{lc-ink}{\htmlClass{lc-orange}{\text{MS}\;36}}
70\htmlClass{lc-violet}{70}
72\htmlClass{lc-violet}{72}
81\htmlClass{lc-violet}{81}
85\htmlClass{lc-violet}{85}
Re-reading\htmlClass{lc-ink}{\text{Re-reading}}
Highlighting\htmlClass{lc-ink}{\text{Highlighting}}
Flashcards\htmlClass{lc-ink}{\text{Flashcards}}
Practice Tests\htmlClass{lc-ink}{\text{Practice Tests}}
6 pairs\htmlClass{lc-ink}{\text{6 pairs}}
Text solution
Pooled standard error of the differencePlug the shared variance MSError=36\noise{\text{MS}_{\text{Error}}} = \noise{36} into the two-sample standard error formula for two groups of size n=10n = 10.
SE of Difference=MSErrorn1+MSErrorn2=3610+3610=7.2≈2.68 points\displaystyle \begin{aligned}&\se{\text{SE of Difference}} \\ &= \sqrt{\frac{\noise{\text{MS}_{\text{Error}}}}{n_1} + \frac{\noise{\text{MS}_{\text{Error}}}}{n_2}} \\ &= \sqrt{\frac{\noise{36}}{10} + \frac{\noise{36}}{10}} = \sqrt{7.2} \\ &\approx \se{2.68}\text{ points}\end{aligned}
Pooled t\se{t}-statisticDivide the gap between the two sample averages by the pooled standard error, using df=36\text{df} = 36 from the Error row of the ANOVA table.
t=Flashcards−HighlightingSE of Difference=81−722.68=92.68=3.36(p=0.0019 with df=36)\displaystyle \begin{aligned}&\se{t} = \\ &\frac{\avg{\text{Flashcards}} - \avg{\text{Highlighting}}}{\se{\text{SE of Difference}}} \\ &= \frac{\avg{81} - \avg{72}}{\se{2.68}} = \frac{\gap{9}}{\se{2.68}} = \se{3.36} \\ &(\pval{p} = \pval{0.0019}\text{ with }\text{df} = 36)\end{aligned}
Bonferroni cutoffDivide the overall α=0.05\risk{\alpha} = \risk{0.05} false-alarm budget equally across all 66 pairwise comparisons.
α∗⏟Bonferroni cutoff\displaystyle \underbrace{\risk{\alpha^*}}_{\text{Bonferroni cutoff}} =0.056⏟pairs\displaystyle = \frac{\risk{0.05}}{\underbrace{6}_{\text{pairs}}} =0.0083\displaystyle = \risk{0.0083}

Because p=0.0019<0.0083\pval{p} = \pval{0.0019} < \risk{0.0083} (or equivalently, the Bonferroni-adjusted p\pval{p}-value is 0.0019×6=0.0114<0.05\pval{0.0019} \times 6 = \pval{0.0114} < \risk{0.05}), Flashcards genuinely outperform Highlighting, whereas the 2\gap{2}-point gap between Re-reading and Highlighting (p=0.460\pval{p} = \pval{0.460}) and the 4\gap{4}-point gap between Flashcards and Practice Tests (p=0.145\pval{p} = \pval{0.145}) cannot be separated from noise.

3

Finding a Single Cutoff with Tukey’s HSD

When all groups have the same sample size nn, we want a single point cutoff that tells us right away how far apart any two group averages must be to count as a real difference across all pairs at once.

Finding a Single Cutoff with Tukey’s HSD
Bonferroni: α∗=0.056=0.0083\htmlClass{lc-ink}{\text{Bonferroni: }\htmlClass{lc-orange}{\alpha^*} = \dfrac{\htmlClass{lc-orange}{0.05}}{6} = \htmlClass{lc-orange}{0.0083}}
μ\htmlClass{lc-violet}{\mu}
Text solution
Standard error of a single group's meanDivide the shared variance MSError=36\noise{\text{MS}_{\text{Error}}} = \noise{36} by the sample size n=10n = 10 of one group and take the square root.
One group’s SE=MSErrorn=3610=3.6≈1.90 points\displaystyle \begin{aligned}&\se{\text{One group's SE}} \\ &= \sqrt{\frac{\noise{\text{MS}_{\text{Error}}}}{n}} = \sqrt{\frac{\noise{36}}{10}} \\ &= \sqrt{3.6} \approx \se{1.90}\text{ points}\end{aligned}
Tukey HSD cutoffMultiply one group's standard error by the Tukey table multiplier q∗=3.81\se{q^*} = \se{3.81} (for 44 groups and df=36\text{df} = 36 at the 5%\risk{5\%} level).
HSD=q∗⏟Tukeymultiplier×MSErrorn⏟one group’s SE=3.81×3.6≈7.23 points\displaystyle \begin{aligned}\se{\text{HSD}} &= \underbrace{\se{q^*}}_{\begin{gathered}\text{Tukey} \\ \text{multiplier}\end{gathered}} \times \underbrace{\sqrt{\frac{\noise{\text{MS}_{\text{Error}}}}{n}}}_{\text{one group's SE}} \\ &= \se{3.81} \times \sqrt{3.6} \\ &\approx \se{7.23}\text{ points}\end{aligned}

Any two study methods with sample averages more than 7.23\se{7.23} points apart are significantly different, while any two closer than 7.23\se{7.23} points cannot be told apart with 1010 students per group.

70\htmlClass{lc-violet}{70}
72\htmlClass{lc-violet}{72}
81\htmlClass{lc-violet}{81}
85\htmlClass{lc-violet}{85}
2\htmlClass{lc-mute}{2}
7.23\htmlClass{lc-pink}{7.23}
9\htmlClass{lc-blue}{9}
7.23\htmlClass{lc-pink}{7.23}
4\htmlClass{lc-mute}{4}
7.23\htmlClass{lc-pink}{7.23}
Re-reading\htmlClass{lc-ink}{\text{Re-reading}}
Highlighting\htmlClass{lc-ink}{\text{Highlighting}}
Flashcards\htmlClass{lc-ink}{\text{Flashcards}}
Practice Tests\htmlClass{lc-ink}{\text{Practice Tests}}
4

Reading Tukey Output and Grouping Letters

Statistical software reports Tukey comparisons in two ways: simultaneous confidence intervals that show the plausible range for each true difference, and grouping letters that summarize which averages are more than one HSD cutoff apart.

Reading Tukey Output and Grouping Letters
HSD=7.23MSError=36\htmlClass{lc-ink}{\htmlClass{lc-pink}{\text{HSD} = 7.23}\qquad\htmlClass{lc-orange}{\text{MS}_\text{Error} = 36}}
Comparison\htmlClass{lc-ink}{\text{Comparison}}
DifferenceSE ofDiff\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\raisebox{-0.6em}{\text{Difference}}}\hspace{4.3838em}\mathclap{\begin{matrix}\text{SE of}\\[-0.3em]\text{Diff}\end{matrix}}}
Highlight−Reread\htmlClass{lc-ink}{\text{Highlight} - \text{Reread}}
2.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{2.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Flashcards−Reread\htmlClass{lc-ink}{\text{Flashcards} - \text{Reread}}
11.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{11.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Practice−Reread\htmlClass{lc-ink}{\text{Practice} - \text{Reread}}
15.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{15.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Flashcards−Highlight\htmlClass{lc-ink}{\text{Flashcards} - \text{Highlight}}
9.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{9.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Practice−Highlight\htmlClass{lc-ink}{\text{Practice} - \text{Highlight}}
13.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{13.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Practice−Flashcards\htmlClass{lc-ink}{\text{Practice} - \text{Flashcards}}
4.002.68\htmlClass{lc-ink}{\hspace{3.0183em}\mathclap{\htmlClass{lc-blue}{4.00}}\hspace{4.3838em}\mathclap{\htmlClass{lc-pink}{2.68}}}
Text solution
Simultaneous 95%\level{95\%} confidence intervalAdd and subtract the 7.23\se{7.23}-point HSD cutoff from each pair's sample difference.
Flashcards−Highlighting:9.00±7.23⏟HSD=(+1.77, +16.23) pointsPractice Tests−Flashcards:4.00±7.23⏟HSD=(−3.23, +11.23) points\displaystyle \begin{aligned}&\text{Flashcards} - \text{Highlighting}: \\ &\quad \gap{9.00} \pm \underbrace{\se{7.23}}_{\se{\text{HSD}}} \\ &\quad = (+1.77,\, +16.23)\text{ points} \\[8pt] &\text{Practice Tests} - \text{Flashcards}: \\ &\quad \gap{4.00} \pm \underbrace{\se{7.23}}_{\se{\text{HSD}}} \\ &\quad = (-3.23,\, +11.23)\text{ points}\end{aligned}
Assigning overlapping grouping lettersFor group averages of 85.0\avg{85.0}, 80.0\avg{80.0}, 76.0\avg{76.0}, and 65.0\avg{65.0} with HSD=7.23\se{\text{HSD}} = \se{7.23}, compare each gap to 7.23\se{7.23} starting from the top.
85.0−76.0=9.0>7.23  ⟹  Practice Tests (85.0)gets A;Highlighting (76.0)gets B85.0−80.0=5.0<7.23and 80.0−76.0=4.0<7.23  ⟹  Flashcards (80.0)shares both: A B\displaystyle \begin{aligned}&\avg{85.0} - \avg{76.0} = \gap{9.0} > \se{7.23} \\ &\implies \text{Practice Tests (}\avg{85.0}\text{)} \\ &\qquad \text{gets A;} \\ &\qquad \text{Highlighting (}\avg{76.0}\text{)} \\ &\qquad \text{gets B} \\[8pt] &\avg{85.0} - \avg{80.0} = \gap{5.0} < \se{7.23} \\ &\text{and } \\ &\avg{80.0} - \avg{76.0} = \gap{4.0} < \se{7.23} \\ &\implies \text{Flashcards (}\avg{80.0}\text{)} \\ &\qquad \text{shares both: A B}\end{aligned}

Because 80.0\avg{80.0} sits within 7.23\se{7.23} points of both 85.0\avg{85.0} and 76.0\avg{76.0}, our sample isn't precise enough to separate Flashcards from either Practice Tests or Highlighting, even though Practice Tests clearly beat Highlighting.

65.0\htmlClass{lc-violet}{65.0}
76.0\htmlClass{lc-violet}{76.0}
80.0\htmlClass{lc-violet}{80.0}
85.0\htmlClass{lc-violet}{85.0}
C\htmlClass{lc-ink}{\text{C}}
B\htmlClass{lc-ink}{\text{B}}
A B\htmlClass{lc-ink}{\text{A B}}
A\htmlClass{lc-ink}{\text{A}}
Group A (within 7.23 of 85.0)\htmlClass{lc-ink}{\text{Group A (within }\htmlClass{lc-pink}{7.23}\text{ of }\htmlClass{lc-violet}{85.0}\text{)}}
Group B (within 7.23 of 76.0)\htmlClass{lc-ink}{\text{Group B (within }\htmlClass{lc-pink}{7.23}\text{ of }\htmlClass{lc-violet}{76.0}\text{)}}

As a group's average moves between the other three groups, its 7.23\se{7.23}-point HSD window moves with it; whenever that window reaches two groups that are more than 7.23\se{7.23} points apart from each other, the middle group picks up both of their letters (`A B`) while both pairwise confidence intervals cross zero.

Drag Flashcards to see how a group shares a letter with every group inside its window, and gets two letters when it sits close enough to two separated groups at once.

Key concepts

After a significant ANOVA, every follow-up comparison relies on the shared noise estimate MSError\noise{\text{MS}_{\text{Error}}} and its degrees of freedom dfError\text{df}_{\text{Error}} from the Error row of the ANOVA table. Taking MSError\sqrt{\noise{\text{MS}_{\text{Error}}}} gives the typical spread of individual scores around their group averages (36=6\sqrt{\noise{36}} = \noise{6} points). You can trust this pooled estimate when observations are independent, each group's data or residuals have no extreme outliers or heavy skew, and the largest group standard deviation is no more than double the smallest (largest s≤2×smallest s\text{largest } \noise{s} \le 2 \times \text{smallest } \noise{s}). Do not use pooled follow-up tests when a group violates this 2×2\times spread check, because pooling can hide real gaps between low-spread groups and trigger false alarms in the wide group.

To test pairs by hand with t\se{t}-scores, use the pooled standard error of the difference, MSErrorn1+MSErrorn2\sqrt{\tfrac{\noise{\text{MS}_{\text{Error}}}}{n_1} + \tfrac{\noise{\text{MS}_{\text{Error}}}}{n_2}} (3610+3610=2.68\sqrt{\tfrac{\noise{36}}{10} + \tfrac{\noise{36}}{10}} = \se{2.68}), and protect against multiple testing by comparing the two-sided p\pval{p}-value (using dfError\text{df}_{\text{Error}}) to the Bonferroni cutoff α∗=αnumber of pairs\risk{\alpha^*} = \tfrac{\risk{\alpha}}{\text{number of pairs}}. To find a single point cutoff across equal-sized groups, use Tukey's HSD, multiplying the Tukey table value q∗\se{q^*} by a single group's standard error: HSD=q∗MSErrorn\se{\text{HSD}} = \se{q^*} \sqrt{\tfrac{\noise{\text{MS}_{\text{Error}}}}{n}} (3.81×3610=7.23\se{3.81} \times \sqrt{\tfrac{\noise{36}}{10}} = \se{7.23} points). On a software printout, each simultaneous confidence interval is Difference±HSD\gap{\text{Difference}} \pm \se{\text{HSD}}, and the `Adjusted p-value` already has the multiple-testing penalty built in, so compare it straight to 0.05\risk{0.05}, never to α∗\risk{\alpha^*}. Finally, when two groups share a grouping letter (or their confidence interval includes 00), it means their gap is smaller than the HSD cutoff, not that their true averages are equal.

5

Practice

1

An agricultural study randomly assigns 3030 plots to 33 fertilizer formulas (1010 plots per formula) and measures crop yield in kilograms. The ANOVA table reports MSError=16\noise{\text{MS}_{\text{Error}}} = \noise{16} with df=27\text{df} = 27. Dot plots of the three groups are roughly mound-shaped with no outliers, and the group standard deviations are s1=2.1 kg\noise{s_1} = \noise{2.1}\text{ kg}, s2=2.4 kg\noise{s_2} = \noise{2.4}\text{ kg}, and s3=6.2 kg\noise{s_3} = \noise{6.2}\text{ kg}. (a) Based on MSError\noise{\text{MS}_{\text{Error}}}, by how many kilograms does an individual plot typically vary from its group average? (b) Check the three conditions for trusting this shared noise estimate. Which condition fails, and how will using the shared noise estimate distort a comparison between Formula 1 and Formula 2 versus a comparison involving Formula 3?

Variance in the ANOVA table is measured in squared kilograms. To check equal spread, compare the largest group's s\noise{s} to double the smallest group's s\noise{s}.

(a) Take the square root of MSError\noise{\text{MS}_{\text{Error}}} to get the typical individual spread:
Typical spread\displaystyle \text{Typical spread} =16\displaystyle = \sqrt{\noise{16}} =4 kg\displaystyle = \noise{4}\text{ kg}
(Watch out: don't leave MSError\noise{\text{MS}_{\text{Error}}} as 16 kg16\text{ kg}, which is in squared units, and don't divide by n=10n = 10 to get 1610=1.26 kg\sqrt{\tfrac{\noise{16}}{10}} = 1.26\text{ kg}, which is the standard error of a group average rather than the spread of individual plots.)
(b) Independence holds (random assignment of separate plots) and normality holds (mound-shaped dot plots with no outliers), but equal variance fails because the largest standard deviation is more than double the smallest:
6.2>2×2.1\displaystyle \noise{6.2} > 2 \times \noise{2.1} =4.2 kg\displaystyle = \noise{4.2}\text{ kg}
(Watch out: always compare the largest s\noise{s} to the smallest s=2.1\noise{s} = \noise{2.1}, though here even 2×2.4=4.82 \times \noise{2.4} = \noise{4.8} fails.) Using the shared noise estimate of 4 kg\noise{4}\text{ kg} overestimates the noise between the two consistent groups (s1=2.1 kg\noise{s_1} = \noise{2.1}\text{ kg} and s2=2.4 kg\noise{s_2} = \noise{2.4}\text{ kg}), which can hide a real difference between Formula 1 and Formula 2, while underestimating the noise in Formula 3 (s3=6.2 kg\noise{s_3} = \noise{6.2}\text{ kg}), making random noise in Formula 3 look like a real difference.
2

A clinic tests 55 physical therapy routines on 4545 patients, with 99 patients randomly assigned to each routine. The ANOVA table reports MSError=18\noise{\text{MS}_{\text{Error}}} = \noise{18} (in squared pain-relief points) and dfError=40\text{df}_{\text{Error}} = 40. Routine A has a sample mean of 24.0\avg{24.0} points (sA=3.9\noise{s_A} = \noise{3.9}) and Routine B has a sample mean of 18.0\avg{18.0} points (sB=4.5\noise{s_B} = \noise{4.5}). (a) Assuming all ANOVA conditions hold, find the pooled standard error of the difference, the pooled t\se{t}-statistic, and the degrees of freedom for comparing Routine A and Routine B. (b) With 55 routines, there are 1010 pairwise comparisons. If the raw two-sided p\pval{p}-value for Routine A versus Routine B is 0.0046\pval{0.0046}, find the Bonferroni cutoff α∗\risk{\alpha^*} at the 0.05\risk{0.05} overall level and the Bonferroni-adjusted p\pval{p}-value, and state whether the two routines differ significantly.

Use the pooled variance and degrees of freedom from the Error row of the ANOVA table rather than the two groups' separate values; in part (b), split the 0.05\risk{0.05} budget across all 1010 pairs.

(a) Use MSError=18\noise{\text{MS}_{\text{Error}}} = \noise{18} with n=9n = 9 per group:
SE\displaystyle \se{\text{SE}} =189+189\displaystyle = \sqrt{\frac{\noise{18}}{9} + \frac{\noise{18}}{9}} =4\displaystyle = \sqrt{4} =2.0 points\displaystyle = \se{2.0}\text{ points}
(Watch out: don't plug in the separate sample standard deviations sA=3.9\noise{s_A} = \noise{3.9} and sB=4.5\noise{s_B} = \noise{4.5} to get 3.929+4.529=1.99\sqrt{\tfrac{\noise{3.9}^2}{9} + \tfrac{\noise{4.5}^2}{9}} = 1.99, and don't forget the square root and use 4.04.0 as the standard error, which would give t=1.50\se{t} = 1.50.)
t\displaystyle \se{t} =24.0−18.02.0\displaystyle = \frac{\avg{24.0} - \avg{18.0}}{\se{2.0}} =3.00,df\displaystyle = \se{3.00}, \quad \text{df} =40\displaystyle = 40
(Watch out: df=40\text{df} = 40 comes from the Error row of the ANOVA table across all 4545 patients; don't use 9+9−2=169 + 9 - 2 = 16 from only Routines A and B.)
(b) Divide and multiply by the 1010 pairwise comparisons:
α∗\displaystyle \risk{\alpha^*} =0.0510\displaystyle = \frac{\risk{0.05}}{10} =0.005,Adjusted p\displaystyle = \risk{0.005}, \quad \pval{\text{Adjusted } p} =0.0046×10\displaystyle = \pval{0.0046} \times 10 =0.046\displaystyle = \pval{0.046}
(Watch out: don't divide or multiply by 55 groups instead of 1010 pairs, which would give α∗=0.01\risk{\alpha^*} = 0.01 and adjusted p=0.023\pval{p} = 0.023.) Because 0.0046<0.005\pval{0.0046} < \risk{0.005} (or 0.046<0.05\pval{0.046} < \risk{0.05}), we reject H0H_0 and conclude that Routine A and Routine B differ significantly.
3

An experiment compares 44 battery brands with n=8n = 8 batteries per brand, finding MSError=50 hours2\noise{\text{MS}_{\text{Error}}} = \noise{50}\text{ hours}^2 with dfError=28\text{df}_{\text{Error}} = 28. A student computes the standard error of the difference between two means as 508+508=3.54 hours\sqrt{\tfrac{\noise{50}}{8} + \tfrac{\noise{50}}{8}} = \se{3.54}\text{ hours}, looks up the Tukey multiplier q∗=3.86\se{q^*} = \se{3.86} for 44 groups and df=28\text{df} = 28 at the 5%\risk{5\%} level, and multiplies 3.86×3.54=13.66 hours\se{3.86} \times \se{3.54} = 13.66\text{ hours} to get the HSD cutoff. (a) What mistake did the student make, and what is the correct Tukey HSD cutoff? (b) If the four sample averages are Brand W=100.0\text{Brand W} = \avg{100.0}, Brand X=108.0\text{Brand X} = \avg{108.0}, Brand Y=111.0\text{Brand Y} = \avg{111.0}, and Brand Z=120.0 hours\text{Brand Z} = \avg{120.0}\text{ hours}, which pairs of brands are significantly different, and which real differences did the student’s mistake miss?

Check which standard error the Tukey multiplier q∗\se{q^*} is built to multiply, then compare every pair's gap to your corrected HSD cutoff.

(a) The student multiplied q∗\se{q^*} by the standard error of the difference (3.54 hours\se{3.54}\text{ hours}) instead of the standard error of a single group's mean:
One group’s SE\displaystyle \se{\text{One group's SE}} =508\displaystyle = \sqrt{\frac{\noise{50}}{8}} =6.25\displaystyle = \sqrt{6.25} =2.50 hours\displaystyle = \se{2.50}\text{ hours}
(Watch out: divide MSError=50\noise{\text{MS}_{\text{Error}}} = \noise{50} by the sample size n=8n = 8 per brand, not by the 44 brands.)
HSD\displaystyle \se{\text{HSD}} =3.86×2.50\displaystyle = \se{3.86} \times \se{2.50} =9.65 hours\displaystyle = \se{9.65}\text{ hours}
(b) Compare all 66 pairwise gaps to the 9.65-hour\se{9.65}\text{-hour} cutoff. (Watch out: check all 66 pairs, not just adjacent sorted averages like 108−100=8.0\avg{108} - \avg{100} = \gap{8.0}, 111−108=3.0\avg{111} - \avg{108} = \gap{3.0}, and 120−111=9.0\avg{120} - \avg{111} = \gap{9.0}, which are all below 9.65\se{9.65} and would miss all three real differences.) Three pairs beat 9.65 hours\se{9.65}\text{ hours} and differ significantly: Brand Z vs. Brand W (gap=20.0\text{gap} = \gap{20.0}), Brand Z vs. Brand X (gap=12.0\text{gap} = \gap{12.0}), and Brand Y vs. Brand W (gap=11.0\text{gap} = \gap{11.0}). The student's inflated 13.66-hour13.66\text{-hour} cutoff missed the differences between Brand Z and Brand X and between Brand Y and Brand W.
4

A computer printout for Tukey Simultaneous Tests comparing 44 diets, with the same number of people on each diet (66 pairs in total), includes these two rows: Diet 1−Diet 2\text{Diet 1} - \text{Diet 2} has Difference=6.0 lb\text{Difference} = \gap{6.0}\text{ lb}, 95% CI=(1.2,10.8)\level{95\%}\text{ CI} = (1.2, 10.8), Adjusted p-value=0.009\text{Adjusted } \pval{p}\text{-value} = \pval{0.009}; Diet 1−Diet 3\text{Diet 1} - \text{Diet 3} has Difference=3.0 lb\text{Difference} = \gap{3.0}\text{ lb}, 95% CI=(?,?)\level{95\%}\text{ CI} = (?, ?), Adjusted p-value=0.340\text{Adjusted } \pval{p}\text{-value} = \pval{0.340}. (a) Find the Tukey HSD cutoff used by the software and the missing 95%\level{95\%} confidence interval for Diet 1−Diet 3\text{Diet 1} - \text{Diet 3}. (b) To test at the 5%\risk{5\%} overall level, should you compare the Adjusted p\pval{p}-value of 0.009\pval{0.009} to 0.05\risk{0.05} or to 0.056=0.0083\tfrac{\risk{0.05}}{6} = \risk{0.0083}? Explain. (c) A colleague sees the Diet 1−Diet 3\text{Diet 1} - \text{Diet 3} result and claims, "Diet 1 and Diet 3 produce the exact same weight loss." Use the confidence interval from part (a) to explain why this claim is wrong.

Every Tukey simultaneous confidence interval is built as Difference±HSD\gap{\text{Difference}} \pm \se{\text{HSD}}. For part (b), check what the word "Adjusted" in the column header already accounts for.

(a) Subtract the difference from the upper endpoint of the first confidence interval to find the HSD cutoff:
HSD\displaystyle \se{\text{HSD}} =10.8−6.0\displaystyle = 10.8 - \gap{6.0} =4.8 lb\displaystyle = \se{4.8}\text{ lb}
(Watch out: don't subtract the lower endpoint from the upper endpoint to get 10.8−1.2=9.6 lb10.8 - 1.2 = 9.6\text{ lb}, which is the full width 2×HSD2 \times \se{\text{HSD}} and would give (−6.6,12.6)(-6.6, 12.6).) For Diet 1−Diet 3\text{Diet 1} - \text{Diet 3}, the 95%\level{95\%} CI is:
3.0±4.8\displaystyle \gap{3.0} \pm \se{4.8} =(−1.8, 7.8) lb\displaystyle = (-1.8,\, 7.8)\text{ lb}
(b) Compare 0.009\pval{0.009} directly to 0.05\risk{0.05}, because the adjustment for testing all 66 pairs is already built into the Adjusted p\pval{p}-value. (Watch out: comparing 0.009\pval{0.009} to 0.056=0.0083\tfrac{\risk{0.05}}{6} = \risk{0.0083} penalizes the test twice and wrongly fails to reject a real difference.)
(c) The interval (−1.8, 7.8)(-1.8,\, 7.8) includes 00, so no difference was detected, but it also shows that Diet 1 could plausibly cause anywhere from 1.8 lb1.8\text{ lb} less weight loss to 7.8 lb7.8\text{ lb} more weight loss than Diet 3; our sample simply isn't precise enough to tell them apart.
5

Four employee training programs (each with n=12n = 12 employees) have sample mean scores of Program P=92.0\text{Program P} = \avg{92.0}, Program Q=86.0\text{Program Q} = \avg{86.0}, Program R=81.0\text{Program R} = \avg{81.0}, and Program S=70.0\text{Program S} = \avg{70.0}. The Tukey HSD cutoff at the 5%\risk{5\%} level is 8.5\se{8.5} points. (a) Assign Grouping Information letters (`A`, `B`, `C`, etc.) to the four programs from highest to lowest. (b) Explain why Program Q gets two letters and why that does not create a contradiction between Program P and Program R.

Start at the highest mean (Program P=92.0\text{Program P} = \avg{92.0}) and give letter `A` to every program within 8.5\se{8.5} points of it; then check which programs lie within 8.5\se{8.5} points of the next group.

(a) Compare each gap to the 8.5\se{8.5}-point cutoff:
92.0−86.0=6.0<8.5and92.0−81.0=11.0>8.5  ⟹  P and Q get A86.0−81.0=5.0<8.5and81.0−70.0=11.0>8.5  ⟹  Q and R get B\displaystyle \begin{aligned}\avg{92.0} - \avg{86.0} &= \gap{6.0} < \se{8.5} \quad\text{and} \\ \avg{92.0} - \avg{81.0} &= \gap{11.0} > \se{8.5} \\ &\implies \text{P and Q get A} \\[6pt] \avg{86.0} - \avg{81.0} &= \gap{5.0} < \se{8.5} \quad\text{and} \\ \avg{81.0} - \avg{70.0} &= \gap{11.0} > \se{8.5} \\ &\implies \text{Q and R get B}\end{aligned}
(Watch out: don't skip Program Q when forming group `B` just because Q already got letter `A`, which would wrongly give `A`, `A`, `B`, `C` and imply that 86.0\avg{86.0} and 81.0\avg{81.0} are significantly different.) Because Program S (70.0\avg{70.0}) is more than 8.5\se{8.5} points below all other programs, the letters are: Program P: `A`; Program Q: `A B`; Program R: `B`; Program S: `C`.
(b) Program P (92.0\avg{92.0}) and Program R (81.0\avg{81.0}) are 11.0\gap{11.0} points apart, which beats the 8.5\se{8.5}-point cutoff, so P beats R and they cannot share a letter. Program Q (86.0\avg{86.0}) is only 6.0\gap{6.0} points below P and 5.0\gap{5.0} points above R. Both gaps are smaller than 8.5\se{8.5}, so Q shares `A` with P and `B` with R. This is not a contradiction because sharing a letter means a gap is too small to detect with this sample size, not that the true group averages are equal.