stats[describe]
median
Median of a Statistical List
Calling Sequence
Parameters
Description
Examples
stats[describe, median](data, gap)
describe[median](data, gap)
data
-
statistical list
gap
(optional) The common size of gaps between classes.
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function median of the subpackage stats[describe, ...] finds the item in data that correspond to the median.
The median of a sorted list of numbers is either the middle value or the arithmetic mean of the two middle values. If the requested median falls between entries, it is interpolated.
The median is a measure of central tendency. The description for the mean provides more information about such measures. The median is used to find a typical value of the given data when the extreme values are not representative of the rest of the data. It corresponds to the 50th percentile of the data.
Missing data are ignored.
For information about the parameter gap, see describe[gaps].
The data must be numeric.
The command with(stats[describe],median) allows the use of the abbreviated form of this command.
with⁡stats:
The median of the numbers 1,2,3,4,250 is
describemedian⁡1,2,3,4,250
3
Note that this value is more typical of this particular data than the mean
describemean⁡1,2,3,4,250
52
For an even number of data items, interpolation is used:
describemedian⁡1,2,3,4
2+32
See Also
describe(deprecated)[decile]
describe(deprecated)[mean]
describe(deprecated)[percentile]
describe(deprecated)[quantile]
describe(deprecated)[quartile]
describe(deprecated)[range]
Statistics
Statistics[Median]
stats(deprecated)[data]
Download Help Document