1 Definition and Basic Notation
1.1 Quantiles as distribution levels
A quantile is a value that corresponds to a specified proportion of probability mass. For a real-valued random variable with distribution, the \(p\)-quantile identifies a point in the distribution such that roughly \(p\) of the probability lies at or below that point (with the precise inequality depending on the convention). Common examples include the median (the 0.5 quantile) and lower/upper quartiles (the 0.25 and 0.75 quantiles).
1.2 Quantile function versus quantile functional
A *quantile function* is typically a function \(Q(p)\) mapping a probability index \(p\in[0,1]\) to a corresponding quantile value. A *quantile functional* generalizes this idea by viewing quantiles as outputs derived from an input object—most often a probability measure—so the mapping may be written schematically as \[ \rho \mapsto Q_\rho(p), \] where \(\rho\) denotes a distribution (or uncertainty representation) and \(Q_\rho\) is the resulting quantile function.
1.3 Relationship to the cumulative distribution function
Quantiles are determined by the cumulative distribution function (CDF), \(F(x)=\mathbb{P}(X\le x)\). Intuitively, a \(p\)-quantile is a value \(x\) that satisfies \(F(x)\) near \(p\). When \(F\) is continuous and strictly increasing, the relationship is exact and the \(p\)-quantile equals the usual inverse \(F^{-1}(p)\). With discontinuities or flat regions, careful “inverse” definitions are needed to map a probability level \(p\) to a set of candidate \(x\)-values.
1.4 Common conventions and edge cases
Different fields adopt slightly different conventions for quantiles in the presence of atoms (point masses) or discontinuous CDFs. Edge cases include \(p=0\) and \(p=1\), for which quantiles may correspond to lower/upper bounds of support. Another practical convention concerns whether one chooses the smallest \(x\) achieving \(F(x)\ge p\) or the largest \(x\) achieving \(F(x)\le p\), which can shift reported values when ties occur in discrete data.
2 Mathematical Construction
2.1 General definition via inverse CDF
A standard route to a quantile functional uses an inverse of the CDF. In general, define the quantile at level \(p\) as the smallest threshold at which the CDF reaches or exceeds \(p\).
2.1.1 Generalized inverse (left-continuous) formulation
One widely used construction is the generalized inverse \[ Q_\rho(p) := \inf\{x\in\mathbb{R}: F_\rho(x)\ge p\}, \] where \(F_\rho\) is the CDF corresponding to \(\rho\). This choice yields a left-continuous quantile function in \(p\) under typical conditions and behaves well with jumps in \(F_\rho\).
2.1.2 Handling discrete and mixed distributions
For discrete distributions, the set \(\{x: F(x)\ge p\}\) may start at a jump point, so the quantile may “stick” to the nearest atom above the target probability. For mixed distributions (combining continuous parts with atoms), the same generalized inverse definition partitions the \(p\)-index range into regions: continuous portions where quantiles vary smoothly, and atom-induced intervals where the quantile remains constant.
2.2 Existence, uniqueness, and non-strict monotonicity
Quantiles exist for every \(p\in[0,1]\) under broad assumptions because the CDF is nondecreasing and bounded between 0 and 1. Uniqueness is not guaranteed when the CDF has flat regions: multiple \(x\)-values can correspond to the same probability level. With the infimum convention, the quantile is uniquely selected, though the resulting quantile function is typically nondecreasing rather than strictly increasing.
2.3 Quantile mappings under probability measures
When the input is a probability measure \(\rho\), the quantile functional is a mapping from measures to real numbers (for fixed \(p\)) or to functions (for varying \(p\)). This perspective emphasizes that quantiles are *distributional* summaries: changing the underlying measure changes the CDF, which in turn alters the quantile output.
2.4 Alternative characterizations
Quantiles can also be characterized without explicitly referencing inverse CDFs.
2.4.1 Quantile as optimization/threshold value
A common optimization viewpoint interprets quantiles as minimizers of certain piecewise linear loss functions. For instance, conditional and unconditional quantiles arise as solutions to problems involving asymmetric absolute deviations. This connects quantile functionals to variational principles and clarifies why quantiles serve as natural targets for robust, tail-sensitive estimation.
3 Functional Properties
3.1 Monotonicity and order preservation
The quantile functional is monotone in the probability index: if \(p_1\le p_2\), then \(Q_\rho(p_1)\le Q_\rho(p_2)\). Moreover, under distribution ordering assumptions, quantiles respect that order. For example, if one distribution is stochastically smaller than another, its quantiles are uniformly lower (under standard stochastic dominance definitions).
3.2 Continuity and right/left limits
Because CDFs may jump, quantile functions can exhibit discontinuities as well. Typically, the quantile function has right and left limits everywhere on \((0,1)\), and jump discontinuities in the CDF correspond to flat or jump features in the quantile representation. Continuity properties depend on whether the distribution has atoms and on the form of the generalized inverse used.
3.3 Measurability and regularity considerations
In theoretical work, one studies how quantile functionals behave as random objects when the input distribution is random or estimated. Measurability ensures that events like “the estimated quantile exceeds a threshold” are well-defined. Regularity considerations address how small perturbations in the input (in a suitable metric space) affect quantiles.
3.4 Lipschitz-type behavior under distance metrics
Quantile functionals often satisfy stability bounds relative to distribution distances. In many settings, Wasserstein-type metrics, Kolmogorov distance, or other norms on distribution functions can bound the deviation between quantiles. Such results formalize the idea that quantile estimates are more stable when the underlying distribution is regular near the target probability level.
3.5 Stochastic monotonicity and coupling views
Another lens treats quantiles through couplings between random variables. If one can construct random variables \(X\) and \(Y\) on a common probability space such that \(X\le Y\) almost surely, then their quantiles satisfy corresponding inequalities. This coupling viewpoint underlies monotonicity claims and helps interpret quantile comparisons in probabilistic terms.
4 Quantiles in Inference and Estimation
4.1 Empirical quantile functional
Given observations \(X_1,\dots,X_n\), the empirical distribution induces an empirical quantile functional. After sorting data \(X_{(1)}\le\cdots\le X_{(n)}\), a basic empirical quantile at level \(p\) is taken from a corresponding order statistic, possibly with interpolation depending on the software convention. The output is a random variable because it depends on the sample.
4.2 Consistency and convergence basics
Sample quantiles typically converge to their population counterparts as \(n\) grows. Consistency means that, for each fixed \(p\), the empirical quantile converges in probability (and often almost surely) to the true quantile under mild conditions. The rate and limiting distribution depend on smoothness near the quantile level.
4.2.1 Asymptotic behavior of sample quantiles
Under regularity conditions (e.g., the CDF behaving nicely near the target point and the density being nonzero there), properly normalized sample quantiles have asymptotic normality. When the distribution has flat or highly irregular behavior near the target \(p\), the limiting behavior can differ, and convergence may slow or become nonstandard.
4.3 Bootstrap and resampling perspectives
Resampling methods such as the bootstrap can approximate the sampling distribution of empirical quantiles. The bootstrap approach recomputes quantiles on resampled datasets to estimate variability and construct confidence intervals. Performance depends on the quantile level, tail heaviness, and how discrete features affect the stability of the empirical inverse.
4.4 Robustness and sensitivity to tail behavior
Quantiles are often described as robust summaries relative to mean-based methods, because they depend on order rather than magnitudes of extreme values. Nonetheless, tail quantiles can be sensitive when the sample contains few observations in the relevant tail region. In practice, uncertainty increases for high or low \(p\), and specialized procedures may be used to control bias and variance.
5 Quantile Regression and Extensions
5.1 Conditional quantiles as functionals
Quantile regression targets conditional quantiles: for covariates \(Z\), one considers the quantile of an outcome \(Y\) given \(Z=z\). This yields a functional of the conditional distribution, mapping \((z,p)\) to a value \(Q_{Y\mid Z=z}(p)\). Unlike mean regression, which averages the conditional distribution, quantile regression captures how different parts of the outcome distribution shift with predictors.
5.2 Estimation objectives for quantile regression
A common estimation strategy models the conditional quantile as a parametric or semiparametric function \(q_\theta(z,p)\) and chooses parameters by minimizing an asymmetric loss, reflecting the direction and magnitude of deviation relevant to quantile level \(p\). This formulation explains why the estimate focuses on the specified percentile rather than the center of the distribution.
5.3 Checking model assumptions and diagnostics
Diagnostics in quantile regression often include evaluating whether the chosen functional form captures systematic patterns across \(p\), inspecting residual-like quantities derived from the fitted model, and testing for heterogeneity across quantile levels. Model checks may also address quantile crossing, where estimated conditional quantiles violate monotonicity in \(p\).
5.4 Connections to linear programming formulations
Because the quantile regression loss is piecewise linear, many formulations reduce to linear programming or related convex optimization problems. This structure enables efficient computation and supports theoretical guarantees under standard conditions. In computational libraries, solvers exploit sparsity and convexity properties for scalability.
6 Applications
6.1 Summaries of distributions in descriptive statistics
Quantile functionals provide compact descriptions of distributions beyond central tendency. They support reporting of medians and spread via interquartile ranges, and they can convey distribution asymmetry through multiple percentile summaries. Compared with parametric summaries, quantiles require fewer distributional assumptions.
6.2 Tail-based analysis and risk-oriented metrics
Many practical risk measures correspond to high-level quantiles, capturing scenarios focused on adverse outcomes. Tail quantiles can translate into operational thresholds, such as service-level cutoffs or reliability limits, where the concern is with rare but impactful events.
6.3 Comparing groups via quantile functions
Quantiles facilitate group comparisons by showing how entire percentile curves differ between populations. Rather than focusing on a single statistic, one can compare quantile functions across levels to reveal whether one group dominates across the distribution or only in certain regions (e.g., lower tail versus upper tail).
6.4 Streaming/online quantile computation
In online settings, data arrive sequentially and exact recomputation of sorted lists becomes expensive. Approximate quantile algorithms maintain compact summaries of the stream and produce estimates of quantile functionals on demand. These methods trade off accuracy against memory and processing time.
6.5 Data visualization using percentile bands
Percentile bands summarize variability over time or across settings. For example, plotting multiple quantile curves with shaded regions provides a visual sense of distribution spread, uncertainty, and potential skewness. This approach is common in exploratory analysis and in communicating model predictions.
7 Quantile-Based Comparisons and Metrics
7.1 Quantile function distance measures
Distance metrics can be defined directly on quantile functions by comparing values across the probability index \(p\). For instance, integrated squared differences between quantile curves yield a measure of how much distributions differ in their percentile structure. Such metrics emphasize alignment across probability levels rather than comparing moments.
7.2 Wasserstein distance links (informal overview)
In many settings, optimal transport links distribution distances to quantile differences. Intuitively, one can map mass from one distribution to another in a way that moves probability “along” the quantile scale. This connection explains why quantile-based measures often relate closely to Wasserstein distances, especially in one-dimensional problems.
7.3 Majorization and distribution ordering
Majorization concepts compare distributions by how their ordered statistics relate. Quantile functions provide a continuous analog of comparing sorted values, enabling ordering statements using integrals of quantile curves. These comparisons are used to formalize when one distribution is more “spread out” or more variable in an ordering sense.
7.4 Interpretability of quantile differences
A practical advantage of quantile comparisons is interpretability: a difference at a specific \(p\) corresponds to a shift in a particular percentile. For example, if a higher upper-tail quantile increases while median remains stable, the interpretation focuses on tail risk rather than typical behavior.
8 Computational Aspects
8.1 Algorithms for empirical quantiles
Empirical quantiles are computed by sorting and then selecting or interpolating order statistics. Sorting dominates computation with \(O(n\log n)\) time for exact quantiles. When only a small number of quantile levels are needed, selection algorithms can reduce overhead by avoiding full sorting.
8.2 Handling large datasets and approximate methods
For very large datasets, exact quantile computation may be prohibitive. Approximate algorithms use sketches or summaries to estimate the quantile functional within controllable error bounds. These methods are designed to work efficiently with limited memory and to support merging across partitions.
8.3 Interpolation choices between order statistics
When \(np\) does not correspond to an integer index, interpolation rules determine the reported quantile. Different conventions—linear interpolation between neighboring order statistics, midpoint rules, or “nearest rank” approaches—produce slightly different outcomes. The choice matters most when the sample size is small or the distribution has discrete components.
8.4 Complexity and numerical stability
Numerical stability concerns are usually mild but become relevant in tails, where quantile estimates may be sensitive to ordering errors. Implementations must also handle ties, missing values, and floating-point comparisons. For interpolation and for confidence interval computations, care is needed to avoid artifacts introduced by rounding.
9 Generalizations and Related Concepts
9.1 Integrated quantile functionals
Integrated quantile functionals summarize the quantile curve over an interval of \(p\)-values. Such constructions can emphasize particular parts of the distribution (e.g., averaging over tail levels) and connect to risk-sensitive summaries. Integration smooths local fluctuations and can improve robustness for certain tasks.
9.2 Spectral/risk-measure style generalizations
In risk theory and decision modeling, one encounters generalized risk measures that weight quantiles across levels \(p\). These spectral constructions represent uncertainty with a distribution over probability indices, yielding a functional that aggregates quantile values according to a specified importance profile.
9.3 Comonotonicity and rearrangement interpretations
Quantile maps relate to rearrangements of random variables. Comonotonicity describes dependence structures that align order statistics across variables, and quantile-based representations can express certain extremal properties under such dependence. These ideas clarify why quantile functions are powerful for comparing distributions in structured ways.
9.4 Connections to rearrangement inequalities
Rearrangement inequalities often involve comparing integrals of products after sorting. Quantile functions provide a natural way to express sorted values continuously, enabling results that bound or order distributional comparisons. This connection helps unify quantile functionals with broader themes in analysis and probability.
10 Common Pitfalls and Practical Guidelines
10.1 Different definitions yield slightly different outputs
Quantiles are defined using conventions (especially for discrete distributions). As a result, software packages and textbooks may output slightly different values at the same nominal \(p\). Users should document the definition used, particularly in reporting and in downstream calculations.
10.2 Interpolation and quantile index conventions
Interpolation choices depend on how one maps \(p\) to order statistic indices. Indexing conventions (e.g., whether indices are 0-based or 1-based) affect results near boundaries and with small samples. For reproducibility, analysts should record the exact rule used.
10.3 Discrete data ties and ambiguity
When data are discrete, multiple observations can correspond to the same rank region, producing quantile ties. Interpreting quantile differences then requires caution: a “change” in percentile may reflect a shift in the probability mass at a particular value rather than a smooth movement in the underlying distribution.
10.4 Tail quantiles with limited sample support
Estimating extreme quantiles can be unreliable if few observations inform the tail. Variance can be large, and bias may persist if the empirical tail is sparse. Practical guidelines include using larger samples, reporting uncertainty, and considering tail-appropriate modeling or smoothing when appropriate.