# Range (statistics)

Template:Distinguish
{{#invoke:Hatnote|hatnote}}
In arithmetic, the **range** of a set of data is the difference between the largest and smallest values.^{[1]}

However, in descriptive statistics, this concept of range has a more complex meaning. The range is the size of the smallest interval which contains all the data and provides an indication of statistical dispersion. It is measured in the same units as the data. Since it only depends on two of the observations, it is most useful in representing the dispersion of small data sets.^{[2]}

## Contents

## Independent identically distributed continuous random variables

For *n* independent and identically distributed continuous random variables *X*_{1}, *X*_{2}, ..., *X*_{n} with cumulative distribution function G(*x*) and probability density function g(*x*) the range of the *X*_{i} is the range of a sample of size *n* from a population with distribution function *G*(*x*).

### Distribution

The range has cumulative distribution function^{[3]}^{[4]}

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."^{[3]}

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.^{[3]}

### Moments

The mean range is given by^{[5]}

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^{[6]}

## Independent nonidentically distributed continuous random variables

For *n* nonidentically distributed independent continuous random variables *X*_{1}, *X*_{2}, ..., *X*_{n} with cumulative distribution functions G_{1}(*x*), G_{2}(*x*), ..., G_{n}(*x*) and probability density functions g_{1}(*x*), g_{2}(*x*), ..., g_{n}(*x*), the range has cumulative distribution function ^{[4]}

## Independent identically distributed discrete random variables

For *n* independent and identically distributed discrete random variables *X*_{1}, *X*_{2}, ..., *X*_{n} with cumulative distribution function G(*x*) and probability mass function g(*x*) the range of the *X*_{i} is the range of a sample of size *n* from a population with distribution function *G*(*x*). We can assume without loss of generality that the support of each *X*_{i} is {1,2,3,...,*N*} where *N* is a positive integer or infinity.^{[7]}^{[8]}

### Distribution

The range has probability mass function^{[7]}^{[9]}^{[10]}

#### Example

If we suppose that g(*x*)=1/*N*, the discrete uniform distribution for all *x*, then we find^{[9]}^{[11]}

## Related quantities

The range is a simple function of the sample maximum and minimum and these are specific examples of order statistics. In particular, the range is a linear function of order statistics, which brings it into the scope of L-estimation.

## See also

{{#invoke:Portal|portal}}

## References

- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑
^{3.0}^{3.1}^{3.2}Template:Cite jstor - ↑
^{4.0}^{4.1}Template:Cite doi - ↑ Template:Cite jstor
- ↑ Template:Cite jstor
- ↑
^{7.0}^{7.1}Template:Cite doi - ↑ Template:Cite jstor
- ↑
^{9.0}^{9.1}Template:Cite doi - ↑ Template:Cite doi
- ↑ Template:Cite jstor