Similar to quartiles, a quantile of a list is the number q such that a given fraction of the list numbers fall at or below q. The first quartile, for example, is the quantile with the fraction 0.25.
The command quantile takes a list of numbers and a value p between 0 and 1 as arguments and returns the pth quantile. For example,
returns the quantile with p = 0.1 (the first decile):
Like quartile, the quantile command can take an argument representing weights of the list; the weights can be given as a second argument and then the value p will be the third. The command
will return