In descriptive statistics, the range of a set of data is size of the narrowest interval which contains all the data. It is calculated as the difference between the largest and smallest values (also known as the sample maximum and minimum). It is expressed in the same units as the data. The range provides an indication of statistical dispersion. Closely related alternative measures are the Interdecile range and the Interquartile range. Range of continuous IID random variables. For "n" independent and identically distributed continuous random variables "X"1, "X"2, ..., "X""n" with the cumulative distribution function G("x") and a probability density function g("x"), let T denote the range of them, that is, T= max("X"1, "X"2, ..., "X""n")- min("X"1, "X"2, ..., "X""n"). Distribution. The range, T, has the cumulative distribution function formula_1 Gumbel notes that the "beauty of this formula is completely marred by the facts that, in general, we cannot express "G"("x" + "t") by "G"("x"), and that the numerical integration is lengthy and tiresome." If the distribution of each "X""i" is limited to the right (or left) then the asymptotic distribution of the range is equal to the asymptotic distribution of the largest (smallest) value. For more general distributions the asymptotic distribution can be expressed as a Bessel function. Moments. The mean range is given by formula_2 where "x"("G") is the inverse function. In the case where each of the "X""i" has a standard normal distribution, the mean range is given by formula_3 Derivation of the distribution. Please note that the following is an informal derivation of the result. It is a bit loose with the calculation of the probabilities. Let formula_4 denote respectively the min and max of the random variables formula_5. The event that the range is smaller than formula_6 can be decomposed into smaller events according to: For a given index formula_8 and minimum value formula_7, the probability of the joint event: is:formula_13Summing over the indices and integrating over formula_7 yields the total probability of the event: "the range is smaller than formula_6" which is exactly the cumulative density function of the range:formula_16which concludes the proof. The range in other models. Outside of the IID case with continuous random variables, other cases have explicit formulas. These cases are of marginal interest. Related quantities. The range is a specific example of order statistics. In particular, the range is a linear function of order statistics, which brings it into the scope of L-estimation.