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)

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
Q31/2000(i+1/2)/nobservation numberer closest to qn
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)unbiased median
Q93/81/401(i-3/8)/(n+1/4)approximate unbiased estimate for a normal distribution

The Wolfram Language's parametrization can handle all of these but Q2. 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 observation numbered closest to qn, where n is the sample size. In Q4, the interpolation points divide the sample range into n intervals. In Q6, the vertices divide the sample into n+1 regions, each with probability 1/(n+1) on average. It was proposed by Weibull in 1939, and plots X_i at the mean position. Q7 divides the range into n-1 intervals, of which exactly 100q% lie to the left of q. Q8 plots X_i at the median position. Q9 is used in quantile-quantile plots. If P(X) is the normal distribution and p_k is the plotting position of X_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