- Quantile function
: "See also
quantile ."In
probability theory , a quantile function of aprobability distribution is the inverse "F" −1 of itscumulative distribution function (cdf) "F". Assuming a continuous and strictly monotonic distribution function, , the quantile function returns the value below which random draws from the given distribution would fall, "p"×100 percent of the time. That is, it returns the value of "x" such that:
If the probability distribution is discrete rather than continuous thenthere may be gaps between values in the domain of its cdf, while if the cdf is only weakly monotonic there may be "flat spots" in its range.In either case, the quantile function is
:
for a probability 0 < "p" < 1, and the quantile function returns the minimum value of "x" for which the previous probability statement holds.
Simple example
For example, the quantile function for Exponential(λ) is
:
for 0 ≤ "p" < 1. The
quartile s are therefore:; first quartile : ;
median : ; third quartile :Applications
Quantile functions are used in both statistical applications and
Monte-Carlo method s.For statistical applications, users need to know key percentage points of a given distribution. For example, they require the median and 25% and 75% quartiles as in the example above or 5%, 95%, 2.5%, 97.5% levels for other applications such as assessing the
statistical significance of an observation whose distribution is known; see thequantile entry. Statistical applications of quantile functions are discussed extensively by Gilchrist (2000).Monte-Carlo simulations employ quantile functions to produce non-uniform random or
pseudorandom number s for use in diverse types of simulation calculations. A sample from a given distribution may be obtained in principle by applying its quantile function to a sample from a uniform distribution. The demands, for example, of simulation methods in moderncomputational finance are focusing increasing attention on methods based on quantile functions, as they work well withmultivariate techniques based on eithercopula or quasi-Monte-Carlo methods (see Jackel, 2002) andMonte Carlo methods in finance .Calculation
The evaluation of quantile functions often involves
numerical methods , as the example of the exponential distribution above is one of the few distributions where aclosed-form expression can be found (others include the uniform, Weibull, logistic and log-logistic). When the cdf itself has a closed-form expression, one can always use a numericalroot-finding algorithm such as thebisection method to invert the cdf. Other algorithms to evaluate quantile functions are given in theNumerical Recipes series of books. Algorithms for common distributions are built in to manystatistical software packages.Quantile functions may also be characterized as solutions of non-linear ordinary and partial
differential equation s. Theordinary differential equation s for the cases of the normal, Student, beta and gamma distributions have been given and solved (see Steinbrecher and Shaw, 2008).The normal distribution
The
normal distribution is perhaps the most important case, and, in the absence of a simple formula, approximate representations are usually used. Thorough composite rational and polynomial approximations have been given by Wichura (1988) and Acklam (see his web site in External Links). Also see the entry on theprobit function.Ordinary differential equation for the normal quantile
A non-linear ordinary differential equation for the normal quantile, "w"("p"), may be given. It is
:
with the centre (boundary) conditions
:
:
This equation may be solved by several methods, including the classical power series approach. From this solutions of arbitrarily high accuracy may be developed (see Steinbrecher and Shaw, 2008).
The Student's t-distribution
This has historically been one of the more intractable cases, as the presence of a parameter, ν, the degrees of freedom, makes the use of rational and other approximations awkward. Simple formulas exist when the ν = 1, 2, 4 and the problem may be reduced to the solution of a polynomial when ν is even. In other cases the quantile functions may be developed as power series (see Shaw (2006) for details). The simple cases are as follows:
= ν = 1 (Cauchy distribution)=:
= ν = 2=:
= ν = 4 =:
where
:
and
:
See also
*
Inverse transform sampling References
*cite book
author=Gilchrist, W.
year=2000
title=Statistical Modelling with Quantile Functions
*cite book
author=Jaeckel, P.
year=2002
title=Monte Carlo methods in finance
*cite journal
author=Wichura, M.J.
year=1988
title=Algorithm AS241: The Percentage Points of the Normal Distribution
journal=Applied Statistics
volume=37
pages=477–484
doi=10.2307/2347330
*cite journal
author=Shaw, W.T.
year=2006
title=Sampling Student’s T distribution – use of the inverse cumulative distribution function.
journal=Journal of Computational Finance
volume=9
issue=4
pages=37–73
*cite journal
author=Steinbrecher, G., Shaw, W.T.
year=2008
title=Quantile mechanics
journal=European Journal of Applied Mathematics
volume=19
issue=2
pages=87–112
doi=10.1017/S0956792508007341External links
* [http://home.online.no/~pjacklam/notes/invnorm/] An algorithm for computing the inverse normal cumulative distribution function.
* [http://www.mth.kcl.ac.uk/~shaww/web_page/papers/NormalQuantile1.pdf] Refinement of the Normal Quantile
* [http://www.mth.kcl.ac.uk/~shaww/web_page/papers/Tdistribution06.pdf] New Method's for Managing "Student's" T Distribution
* [http://portal.acm.org/citation.cfm?id=355600] ACM Algorithm 396: Student's t-Quantiles
* [http://portal.acm.org/citation.cfm?id=168387] Applying series expansion to the inverse beta distribution to find percentiles of the F-distribution
Wikimedia Foundation. 2010.