TOPICS
Search

Quantile


A quantile of a distribution is a value that divides its probability mass in a specified proportion. If a random variable X has distribution function F_X, a standard quantile function is the generalized inverse defined, for 0<p<1, by

 Q(p)=inf{x in R:F_X(x)>=p}.
(1)

When F_X is continuous and strictly increasing, Q(p) is the unique value x satisfying F_X(x)=p. For a discontinuous distribution, such an equality need not have a solution, which is why the generalized-inverse definition is used (Hyndman and Fan 1996).

The kth n-tile is the quantile Q(k/n) for k=1, ..., n-1 (Kenney and Keeping 1962). If n=4, the interior quantiles are called quartiles, and if n=100, they are called percentiles.

The standard names for several common divisions are summarized below. Dividing a distribution into n equal parts requires n-1 interior cut points. In particular, the two cut points that divide a distribution into thirds are tertiles, while the three resulting groups are terciles.

number of partscut-point namenumber of cut points
3tertile2
4quartile3
5quintile4
10decile9
100percentile99

A parametrized version of quantile is implemented as Quantile[list, q, {{a, b}, {c, d}}], which returns

 q_(a,b;c,d)(X_1,...,X_N)=Y_(|_x_|)+(Y_([x])-Y_(|_x_|))(c+dfrac(x)),
(2)

where Y_i is the ith order statistic, |_x_| is the floor function, [x] is the ceiling function, frac(x) is the fractional part, and

 x=a+(N+b)q.
(3)

For a nonempty sample and 0<=q<=1, extend the order statistics by Y_i=Y_1 for i<1 and Y_i=Y_N for i>N. There are a number of slightly different definitions of the quantile that are in common use, as summarized in the following table.

#abcdplotting positiondescription
Q10010i/ninverted empirical CDF
Q2--------i/ninverted empirical CDF with averaging
Q3----------nearest order statistic, with ties to even
Q40001i/nCalifornia Department of Public Works method
Q51/2001(i-1/2)/nHazen's model (popular in hydrology)
Q60101i/(n+1)Weibull quantile
Q71-101(i-1)/(n-1)interpolation points divide sample range into n-1 intervals
Q81/31/301(i-1/3)/(n+1/3)approximately median-unbiased
Q93/81/401(i-3/8)/(n+1/4)approximate unbiased estimate for a normal distribution

The Wolfram Language's fixed four-parameter formula handles Q1 and Q4 through Q9. Q2 and Q3 require separate rules at discontinuities. In Q1, the empirical distribution function is the estimated cumulative proportion of the data set that does not exceed any specified value. Q2 is essentially the same as Q1 except that averages are taken at points of discontinuity. In Q3, the qth quantile is the order statistic whose index is the nearest integer to qn, with ties resolved toward the even integer and the index clipped to the interval [1,n], where n is the sample size. Q4 uses interpolation at plotting positions i/n for i=1, ..., n. For n distinct order statistics, their values divide the sample range into n-1 adjacent intervals. For an independent sample from a continuous distribution, the order statistics divide the sample space into n+1 regions, each with expected probability 1/(n+1). Q6 uses the corresponding plotting positions i/(n+1), which are the means of the transformed order statistics F(Y_i). Hyndman and Fan (1996) attribute these positions to Weibull (1939) and Gumbel (1939). For n>1, Q7 uses the plotting positions (i-1)/(n-1) and linear interpolation between adjacent positions and their order statistics. Q8 plots Y_i at an approximation to the median plotting position. Q9 is used in quantile-quantile plots. If P(X) is the normal distribution and p_k is the plotting position of Y_k, then Q9(p_k) is an approximately unbiased estimate of P^(-1)(p_k).


See also

Decile, Order Statistic, Percentile, Plotting Position, Quantile Function, Quantile-Quantile Plot, Quartile, Quintile, Tercile, Tertile, Variate

Portions of this entry contributed by Christopher Stover

Explore with Wolfram|Alpha

References

Barnett, V. "Probability Plotting Methods and Order Statistics." Appl. Stat. 24, 95-108, 1975.Cunnane, C. "Unbiased Plotting Positions--A Review." J. Hydrology 37, 205-222, 1978.Evans, M.; Hastings, N.; and Peacock, B. Statistical Distributions, 3rd ed. New York: Wiley, 2000.Harter, H. L. "Another Look at Plotting Positions." Comm. Stat., Th. and Methods 13, 1613-1633, 1984.Hyndman, R. J. and Fan, Y. "Sample Quantiles in Statistical Packages." Amer. Stat. 50, 361-365, 1996.Kenney, J. F. and Keeping, E. S. "Quantiles." §3.5 in Mathematics of Statistics, Pt. 1, 3rd ed. Princeton, NJ: Van Nostrand, pp. 37-38, 1962.

Referenced on Wolfram|Alpha

Quantile

Cite this as:

Weisstein, Eric W., with contributions by Christopher Stover. "Quantile." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Quantile.html

Subject classifications