Previous Up Next

20.1.7  Quantiles

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 quantile command finds quantiles.

Examples

A:=[0,1,2,3,4,5,6,7,8,9,10,11]:; quantile(A,0.1)
     
1.0           
quantile(A,A,0.25)
     
6           

Previous Up Next