Suppose that we take a sample of sizen from each ofk populations with the samenormal distributionN(μ, σ2) and suppose that is the smallest of these sample means and is the largest of these sample means, and supposes² is the pooled sample variance from these samples. Then the following statistic has a Studentized range distribution.
Ifk is 2 or 3,[2] the studentized range probability distribution function can be directly evaluated, where is the standard normal probability density function and is the standard normal cumulative distribution function.
When the degrees of freedom approaches infinity the studentized range cumulative distribution can be calculated for anyk using the standard normal distribution.
Critical values of the studentized range distribution are used inTukey's range test.[3]
The studentized range is used to calculate significance levels for results obtained bydata mining, where one selectively seeks extreme differences in sample data, rather than only sampling randomly.
When only the equality of the two groups means is in question (i.e. whetherμ1 =μ2), the studentized range distribution is similar to theStudent's t distribution, differing only in that the first takes into account the number of means under consideration, and the critical value is adjusted accordingly. The more means under consideration, the larger the critical value is. This makes sense since the more means there are, the greater the probability that at least some differences between pairs of means will be significantly large due to chance alone.
The studentized range distribution function arises from re-scaling the sample rangeR by thesample standard deviations, since the studentized range is customarily tabulated in units of standard deviations, with the variableq =R⁄s. The derivation begins with a perfectly general form of the distribution function of the sample range, which applies to any sample data distribution.
In order to obtain the distribution in terms of the "studentized" rangeq, we will change variable fromR tos andq. Assuming the sample data isnormally distributed, thestandard deviations will beχ distributed. By further integrating overs we can removes as a parameter and obtain the re-scaled distribution in terms ofq alone.
For any probability density functionfX, the range probability densityfR is:[2]
What this means is that we are adding up the probabilities that, givenk draws from a distribution, two of them differ byr, and the remainingk − 2 draws all fall between the two extreme values. If we change variables tou where is the low-end of the range, and defineFX as the cumulative distribution function offX, then the equation can be simplified:
We introduce a similar integral, and notice that differentiating under the integral-sign gives
which recovers the integral above,[a] so that last relation confirms
The range distribution is most often used for confidence intervals around sample averages, which are asymptoticallynormally distributed by thecentral limit theorem.
In order to create the studentized range distribution for normal data, we first switch from the genericfX andFX to the distribution functionsφ and Φ for thestandard normal distribution, and change the variabler tos·q, whereq is a fixed factor that re-scalesr by scaling factors:
Multiplying the distributionsfR andfS and integrating to remove the dependence on the standard deviations gives the studentized range distribution function for normal data:
where
q is the width of the data range measured in standard deviations,
ν is the number of degrees of freedom for determining the sample standard deviation,[c] and
k is the number of separate averages that form the points within the range.
The equation for thepdf shown in the sections above comes from using
to replace the exponential expression in the outer integral.
^Technically, the relation is only true for points where, which holds everywhere fornormal data as discussed in the next section, but not for distributions whosesupport has an upper bound, likeuniformly distributed data.
^Lund, R.E.; Lund, J.R. (1983). "Algorithm AS 190: Probabilities and upper quantiles for the studentized range".Journal of the Royal Statistical Society.32 (2):204–210.JSTOR2347300.