Tukey HSD

All pairwise comparisons of the group means with simultaneous confidence intervals (equal variances).

Statusvalidated
Version1.0.0
Minitab equivalentStat > ANOVA > One-Way > Comparisons > Tukey

Description

The Tukey HSD test (Tukey 1953; Tukey-Kramer for unequal group sizes, Kramer 1956) compares all pairs of group means while controlling the family-wise error rate. It uses the pooled standard deviation S of Fisher ANOVA with N − k degrees of freedom and the studentized range distribution. The result is adjusted p-values and simultaneous confidence intervals for μ_i − μ_j. Qprovement uses Tukey HSD after Fisher ANOVA when "Assume equal variances" is ticked. The distribution function and quantiles of the studentized range (ptukey, qtukey) follow Copenhaver & Holland (1988) and are validated against scipy.stats.studentized_range.

Formulas

d
Mean difference of the pair (i, j)
se
Standard error with the pooled standard deviation (Tukey-Kramer)
q
Studentized range test statistic
ν
Degrees of freedom of the pooled variance
p_adj
Adjusted p-value from the studentized range Q(k, ν) – valid simultaneously for all pairs
CI
Simultaneous confidence interval for μ_i − μ_j (family confidence 1 − α)

Assumptions

  • Observations are independent
  • Data within each group are (approximately) normally distributed
  • Variances are equal across groups

Limitations

  • With unequal variances the family confidence is not maintained – use Games-Howell instead
  • With unequal group sizes the procedure (Tukey-Kramer) is slightly conservative
  • Needs n_i ≥ 2 per group and a pooled variance greater than 0
  • Reference values come from scipy.stats.tukey_hsd, not from a Minitab run

References

  • Tukey, J. W. (1953), The problem of multiple comparisons, unpublished manuscript, Princeton University
  • Kramer, C. Y. (1956), Extension of multiple range tests to group means with unequal numbers of replications, Biometrics, 12, 307–310
  • Copenhaver, M. D. & Holland, B. S. (1988), Computation of the distribution of the maximum of normally distributed variables, J. Statist. Comput. Simul., 30, 1–15
  • scipy.stats.tukey_hsd, scipy.stats.studentized_range
  • Minitab Methods and Formulas, One-Way ANOVA – Tukey comparisons