Tukey's test is based on a formula very similar to that of the
-test. In fact, Tukey's test is essentially a -test, except that it corrects for
family-wise error rate. The formula for Tukey's test is : q_\mathsf{s} = \frac{\ \left| Y_\mathsf{A} - Y_\mathsf{B} \right|\ }{\ \mathsf{SE}\ }\ , where and are the two means being compared, and SE is the
standard error for the sum of the means. The value is the sample's test statistic. (The notation means the
absolute value of ; the magnitude of with the sign set to , regardless of the original sign of .) This test statistic can then be compared to a value for the chosen significance level from a table of the
studentized range distribution. If the value is
larger than the critical value obtained from the distribution, the two means are said to be significantly different at level Since the
null hypothesis for Tukey's test states that all means being compared are from the same population (i.e. ), the means should be normally distributed (according to the
central limit theorem) with the same model
standard deviation , estimated by the merged
standard error, \ \mathsf{SE}\ , for all the samples; its calculation is discussed in the following sections. This gives rise to the normality assumption of Tukey's test. ==The studentized range () distribution==