The "Honestly Significantly Different" (HSD) test proposed by the statistician John Tukey is based on what is called the "studentized range distribution." To test all pairwise comparisons among means using the Tukey HSD, compute t for each pair of means using the formula:

where M