quantiletype
Quantile type is a convention used in statistics to define how sample quantiles are estimated from a finite data sample. It specifies how the probability p in the interval (0, 1) is mapped to a position within the ordered data and how the corresponding quantile is computed, either by selecting a data point or by interpolating between adjacent order statistics. The concept was formalized by Rob Hyndman and Yingying Fan in 1996, who described nine distinct quantile types that are implemented in many statistical software packages.
The nine types differ in how they treat endpoints and interpolation, which can lead to different quantile
Choice of quantile type can influence summary statistics such as quartiles and medians, and it may affect
See also: Hyndman–Fan quantile types, order statistics, empirical distribution function, quantile estimation.