Click or drag to resize
Accord.NET (logo)

QuantileMethod Enumeration

Different methods for computing quantiles.

Namespace:  Accord.Statistics
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public enum QuantileMethod
Members
  Member nameValueDescription
Default6 The default quantile method in the framework (6).
R7 The default method in R (7).
Maple8 The dafault method in Maple (8).
Type11 Inverse of empirical distribution function. Equivalent types in other packages: R: 1, SAS: 3, Maple: 1.
Type22 The same as R-1, but with averaging at discontinuities. Equivalent types in other packages: R: 2, SAS: 5, Maple: 2.
Type33 The observation numbered closest to Np. Equivalent types in other packages: R: 3, SAS: 2.
Type44 Linear interpolation of the empirical distribution function. Equivalent types in other packages: R: 4, SAS: 1, SciPy: (0,1), Maple: 3.
Type55 Piecewise linear function where the knots are the values midway through the steps of the empirical distribution function. R-5, SciPy-(.5,.5), Maple-4.
Type66 Linear interpolation of the expectations for the order statistics for the uniform distribution on [0,1]. That is, it is the linear interpolation between points (ph, xh), where ph = h / (N + 1) is the probability that the last of (N+1) randomly drawn values will not exceed the h-th smallest of the first N randomly drawn values. Equivalence to other packages: R-6, Excel, SAS-4, SciPy-(0,0), Maple-5.
Type77 Linear interpolation of the modes for the order statistics for the uniform distribution on [0,1]. Equivalence to other packages: R: 7, Excel, SciPy: (1,1), Maple: 6.
Type88 Linear interpolation of the approximate medians for order statistics. Equivalence to other packages: R: 8, SciPy: (1/3,1/3), Maple: 7.
Type99 The resulting quantile estimates are approximately unbiased for the expected order statistics if x is normally distributed. Equivalence to other packages: R: 9, SciPy: (3/8,3/8), Maple: 8.
Remarks

When one has a sample drawn from an unknown population, the cumulative distribution function and quantile function of the underlying population are not known and the task becomes that of estimating the quantiles. There are several methods. Mathematica, Matlab, R and GNU Octave programming languages include nine sample quantile methods.SAS includes five sample quantile methods, SciPy and Maple both include eight, EViews includes the six piecewise linear functions, STATA includes two, and Microsoft Excel includes two. Mathematica supports an arbitrary parameter for methods that allows for other, non-standard, methods.

References:

See Also