Quantile function Created 2026-09-24 Updated 2026-10-14
The quantile function converts a cumulative probability level into a value. For a cumulative distribution function and , use the generalized inverse
It selects the first threshold reaching the requested level. The infimum handles jumps and flat portions, so this construction does not require an ordinary inverse function. Other endpoint conventions are possible at or ; the open probability interval avoids those issues. NIST introduces the inverse-direction question as the percent point function. [ref].
For the finite example under probability distribution,
Thus , , . The value at is still zero, because already reaches that level. For on , the quantile function is , giving .
Figure 1.
Quantile functions map probability levels to outcomes, including repeated outcomes
. Left: the three probability bands of widths , and map to outcomes , and . Right: the quantile function maps the same probability levels to the continuous density example. The marked levels are , and . Endpoints at and are shown open because the stated quantile function convention uses . Details.
A median is a central threshold; supplies one, though a median need not be unique. The same quantile function becomes a sampling algorithm through inverse transform sampling. Jumps in become flat bands in , precisely the mechanism needed to assign positive probability to one outcome.
For , integration gives the survival function and cumulative distribution function
Solving gives the quantile function
[ref]
For the chosen positioning model ,
The disk of radius one component standard deviation therefore contains about 39.35% of outcomes; the familiar one-dimensional normal interval percentage does not apply to a two-dimensional disk. The 95% and 99% radial thresholds are
A circle defined by itself still has probability zero; its enclosed disk carries the stated probability.
Figure 1.
Radial coverage uses disks rather than one-dimensional normal intervals
. Original chosen model: each independent centered coordinate has standard deviation . Concentric disks have radii , and the calculated 95% threshold . The curve gives exact model coverage, not empirical counts. Details.
The closed-form quantile function also gives inverse transform sampling: if has uniform distribution on , then has Rayleigh distribution. Using instead gives the same law. Endpoints are excluded so that the logarithm stays finite.
Let the numerical support of a probability distribution be . Its cumulative distribution function counts how many values have been passed:
It is zero below , equals on for , and is one at and above . Every jump is , even when the horizontal gaps differ.
For inverse transform sampling, take an ideal continuous uniform distribution for on . Partition that interval into intervals of width and output
Each interval has probability , proving the desired discrete uniform distribution. Using the floor function, the index is ; for consecutive integer values the output is . With the usual quantile function convention , one instead writes for , using the ceiling function. The endpoint conventions differ only at a finite set of points with probability zero under the ideal continuous uniform distribution.
For , the four intervals , , , and select , respectively. Thus selects , while selects . The upper half of the interval selects values at least four, recovering probability . Equal widths refer to the sampling probability coordinate, not to distances between output values. This is an exact mathematical construction assuming an ideal continuous uniform distribution; a finite computer random-number source needs its own justification of equal output chances.
Sign-truncated normal sampling Created 2026-10-07 Updated 2026-10-25
To draw restricted to a positive value, let and return for uniform . For restriction to a negative value use . These are inverse transform sampling constructions. Repeatedly drawing an untruncated normal until its sign agrees is also exact, but inefficient for rare signs.
Triangular distribution 2026-10-14
A triangular probability density function rises linearly from zero at to its mode , then falls linearly to zero at . Its peak is . Its inverse transform sampling rule is for , and otherwise.
Uniform random variable Created 2026-10-06 Updated 2026-10-14
A uniform random variable has a uniform distribution. Independent such variables can supply independent inverse transform sampling; reusing a single variable for two transforms generally creates dependence.