stats[describe]
percentile
Percentiles of a Statistical List
Calling Sequence
Parameters
Description
Examples
stats[describe, percentile[which]](data, gap)
describe[percentile[which]](data, gap)
data
-
statistical list
which
percentile required
gap
(optional, default=false) the common size of gaps between classes.
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function percentile of the subpackage stats[describe, ...] finds the item in data that corresponds to the percentile specified by which. If the requested percentile falls between entries, it is interpolated.
The percentiles are values that partition the data, once sorted, into 100 equal parts.
Using percentiles, one can compute various measures of dispersion. For example, the 10-90 percentile range is the value of the 90th percentile minus that of the 10th percentile. Other similar dispersion measures constructed with the percentiles are the 20-80 and the 25-75 percentile range. For more information related to measures of dispersion, refer to describe[standarddeviation].
Missing data are ignored.
For information about the parameter gap, see describe[gaps].
The data must be numeric.
The command with(stats[describe],percentile) allows the use of the abbreviated form of this command.
with⁡stats:
data≔seq⁡i3+12,i=1..300:
describepercentile15⁡data
312
somepercentiles≔seq⁡describepercentile9⁢i,i=1..9
somepercentiles≔describepercentile9,describepercentile18,describepercentile27,describepercentile36,describepercentile45,describepercentile54,describepercentile63,describepercentile72,describepercentile81
somepercentiles⁡data
192,372,552,732,912,1092,1272,1452,1632
The 10-90 percentile range is
range_1090≔x↦describepercentile90⁡x−describepercentile10⁡x:
range_1090⁡data
80
See Also
describe(deprecated)[decile]
describe(deprecated)[gaps]
describe(deprecated)[median]
describe(deprecated)[quantile]
describe(deprecated)[quartile]
describe(deprecated)[range]
Statistics
Statistics[Percentile]
stats(deprecated)[data]
Download Help Document