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 inverseIt 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]
https://itl.nist.gov/div898/handbook/eda/section3/eda362.htm. NIST: cumulative distribution and percent point functions
.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 .
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.
Rayleigh radial thresholds and quantiles 2026-10-18
For , integration gives the survival function and cumulative distribution functionSolving gives the quantile function[ref]
The Rayleigh Distribution. Random: Probability, Mathematical Statistics, Stochastic Processes by Kyle Siegrist; The General Rayleigh Distribution, Distribution Functions: CDF, quantile and survival functions
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 areA circle defined by itself still has probability zero; its enclosed disk carries the stated probability.
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.
Sampling a discrete uniform distribution 2026-10-14
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 outputEach 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.

