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-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
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.
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.
largest s6.7≤2×smallest s5.2=10.4
In the four study groups below, the shared noise band (±MSError) 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 t-Tests and Bonferroni
Once the conditions hold, we want to test the gaps between all 6 pairs of our 4 study groups without letting 6 separate tests inflate our false-alarm risk to about 20%.
Pooled t-Tests and the Bonferroni Adjustment
Text solution
Pooled standard error of the differencePlug the shared variance MSError=36 into the two-sample standard error formula for two groups of size n=10.
SE of Difference=n1MSError+n2MSError=1036+1036=7.2≈2.68 points
Pooled t-statisticDivide the gap between the two sample averages by the pooled standard error, using df=36 from the Error row of the ANOVA table.
t=SE of DifferenceFlashcards−Highlighting=2.6881−72=2.689=3.36(p=0.0019 with df=36)
Bonferroni cutoffDivide the overall α=0.05 false-alarm budget equally across all 6 pairwise comparisons.
Bonferroni cutoffα∗=pairs60.05=0.0083
Because p=0.0019<0.0083 (or equivalently, the Bonferroni-adjusted p-value is 0.0019×6=0.0114<0.05), Flashcards genuinely outperform Highlighting, whereas the 2-point gap between Re-reading and Highlighting (p=0.460) and the 4-point gap between Flashcards and Practice Tests (p=0.145) cannot be separated from noise.
3
Finding a Single Cutoff with Tukey’s HSD
When all groups have the same sample size n, 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
Text solution
Standard error of a single group's meanDivide the shared variance MSError=36 by the sample size n=10 of one group and take the square root.
Any two study methods with sample averages more than 7.23 points apart are significantly different, while any two closer than 7.23 points cannot be told apart with 10 students per group.
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
Text solution
Simultaneous 95% confidence intervalAdd and subtract the 7.23-point HSD cutoff from each pair's sample difference.
Because 80.0 sits within 7.23 points of both 85.0 and 76.0, our sample isn't precise enough to separate Flashcards from either Practice Tests or Highlighting, even though Practice Tests clearly beat Highlighting.
As a group's average moves between the other three groups, its 7.23-point HSD window moves with it; whenever that window reaches two groups that are more than 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 and its degrees of freedom dfError from the Error row of the ANOVA table. Taking MSError gives the typical spread of individual scores around their group averages (36=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). Do not use pooled follow-up tests when a group violates this 2× 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-scores, use the pooled standard error of the difference, n1MSError+n2MSError (1036+1036=2.68), and protect against multiple testing by comparing the two-sided p-value (using dfError) to the Bonferroni cutoff α∗=number of pairsα. To find a single point cutoff across equal-sized groups, use Tukey's HSD, multiplying the Tukey table value q∗ by a single group's standard error: HSD=q∗nMSError (3.81×1036=7.23 points). On a software printout, each simultaneous confidence interval is Difference±HSD, and the `Adjusted p-value` already has the multiple-testing penalty built in, so compare it straight to 0.05, never to α∗. Finally, when two groups share a grouping letter (or their confidence interval includes 0), 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 30 plots to 3 fertilizer formulas (10 plots per formula) and measures crop yield in kilograms. The ANOVA table reports MSError=16 with 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,s2=2.4 kg, and s3=6.2 kg. (a) Based on MSError, 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?
Watch out: don't leave MSError as 16 kg, which is in squared units.Watch out: don't divide by n=10 to get 1016=1.26 kg, which is the standard error of a group average rather than the spread of individual plots.
Variance in the ANOVA table is measured in squared kilograms. To check equal spread, compare the largest group's s to double the smallest group's s.
(a) Take the square root of MSError to get the typical individual spread:
Typical spread=16=4 kg
(Watch out: don't leave MSError as 16 kg, which is in squared units, and don't divide by n=10 to get 1016=1.26 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=4.2 kg
(Watch out: always compare the largest s to the smallest s=2.1, though here even 2×2.4=4.8 fails.) Using the shared noise estimate of 4 kg overestimates the noise between the two consistent groups (s1=2.1 kg and s2=2.4 kg), which can hide a real difference between Formula 1 and Formula 2, while underestimating the noise in Formula 3 (s3=6.2 kg), making random noise in Formula 3 look like a real difference.
2
A clinic tests 5 physical therapy routines on 45 patients, with 9 patients randomly assigned to each routine. The ANOVA table reports MSError=18 (in squared pain-relief points) and dfError=40. Routine A has a sample mean of 24.0 points (sA=3.9) and Routine B has a sample mean of 18.0 points (sB=4.5). (a) Assuming all ANOVA conditions hold, find the pooled standard error of the difference, the pooled t-statistic, and the degrees of freedom for comparing Routine A and Routine B. (b) With 5 routines, there are 10 pairwise comparisons. If the raw two-sided p-value for Routine A versus Routine B is 0.0046, find the Bonferroni cutoff α∗ at the 0.05 overall level and the Bonferroni-adjusted p-value, and state whether the two routines differ significantly.
Watch out: don't plug in the separate sample standard deviations sA=3.9 and sB=4.5 to get 93.92+94.52=1.99.Watch out: don't forget the square root and use 4.0 as the standard error, which would give t=1.50.
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 budget across all 10 pairs.
(a) Use MSError=18 with n=9 per group:
SE=918+918=4=2.0 points
(Watch out: don't plug in the separate sample standard deviations sA=3.9 and sB=4.5 to get 93.92+94.52=1.99, and don't forget the square root and use 4.0 as the standard error, which would give t=1.50.)
t=2.024.0−18.0=3.00,df=40
(Watch out: df=40 comes from the Error row of the ANOVA table across all 45 patients; don't use 9+9−2=16 from only Routines A and B.)
(b) Divide and multiply by the 10 pairwise comparisons:
α∗=100.05=0.005,Adjusted p=0.0046×10=0.046
(Watch out: don't divide or multiply by 5 groups instead of 10 pairs, which would give α∗=0.01 and adjusted p=0.023.) Because 0.0046<0.005 (or 0.046<0.05), we reject H0 and conclude that Routine A and Routine B differ significantly.
3
An experiment compares 4 battery brands with n=8 batteries per brand, finding MSError=50 hours2 with dfError=28. A student computes the standard error of the difference between two means as 850+850=3.54 hours, looks up the Tukey multiplier q∗=3.86 for 4 groups and df=28 at the 5% level, and multiplies 3.86×3.54=13.66 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,Brand X=108.0,Brand Y=111.0, and Brand Z=120.0 hours, which pairs of brands are significantly different, and which real differences did the student’s mistake miss?
The student multiplied q∗ by the standard error of the difference (3.54 hours) instead of the standard error of a single group's mean.
Check which standard error the Tukey multiplier q∗ is built to multiply, then compare every pair's gap to your corrected HSD cutoff.
(a) The student multiplied q∗ by the standard error of the difference (3.54 hours) instead of the standard error of a single group's mean:
One group’s SE=850=6.25=2.50 hours
(Watch out: divide MSError=50 by the sample size n=8 per brand, not by the 4 brands.)
HSD=3.86×2.50=9.65 hours
(b) Compare all 6 pairwise gaps to the 9.65-hour cutoff. (Watch out: check all 6 pairs, not just adjacent sorted averages like 108−100=8.0,111−108=3.0, and 120−111=9.0, which are all below 9.65 and would miss all three real differences.) Three pairs beat 9.65 hours and differ significantly: Brand Z vs. Brand W (gap=20.0), Brand Z vs. Brand X (gap=12.0), and Brand Y vs. Brand W (gap=11.0). The student's inflated 13.66-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 4 diets, with the same number of people on each diet (6 pairs in total), includes these two rows: Diet 1−Diet 2 has Difference=6.0 lb,95% CI=(1.2,10.8),Adjusted p-value=0.009;Diet 1−Diet 3 has Difference=3.0 lb,95% CI=(?,?),Adjusted p-value=0.340. (a) Find the Tukey HSD cutoff used by the software and the missing 95% confidence interval for Diet 1−Diet 3. (b) To test at the 5% overall level, should you compare the Adjusted p-value of 0.009 to 0.05 or to 60.05=0.0083? Explain. (c) A colleague sees the Diet 1−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.
Watch out: don't subtract the lower endpoint from the upper endpoint to get 10.8−1.2=9.6 lb, which is the full width 2×HSD and would give (−6.6,12.6).
Every Tukey simultaneous confidence interval is built as Difference±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=10.8−6.0=4.8 lb
(Watch out: don't subtract the lower endpoint from the upper endpoint to get 10.8−1.2=9.6 lb, which is the full width 2×HSD and would give (−6.6,12.6).) For Diet 1−Diet 3, the 95% CI is:
3.0±4.8=(−1.8,7.8) lb
(b) Compare 0.009 directly to 0.05, because the adjustment for testing all 6 pairs is already built into the Adjusted p-value. (Watch out: comparing 0.009 to 60.05=0.0083 penalizes the test twice and wrongly fails to reject a real difference.)
(c) The interval (−1.8,7.8) includes 0, so no difference was detected, but it also shows that Diet 1 could plausibly cause anywhere from 1.8 lb less weight loss to 7.8 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=12 employees) have sample mean scores of Program P=92.0,Program Q=86.0,Program R=81.0, and Program S=70.0. The Tukey HSD cutoff at the 5% level is 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) and give letter `A` to every program within 8.5 points of it; then check which programs lie within 8.5 points of the next group.
(a) Compare each gap to the 8.5-point cutoff:
92.0−86.092.0−81.086.0−81.081.0−70.0=6.0<8.5and=11.0>8.5⟹P and Q get A=5.0<8.5and=11.0>8.5⟹Q and R get B
(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 and 81.0 are significantly different.) Because Program S (70.0) is more than 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) and Program R (81.0) are 11.0 points apart, which beats the 8.5-point cutoff, so P beats R and they cannot share a letter. Program Q (86.0) is only 6.0 points below P and 5.0 points above R. Both gaps are smaller than 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.