stats[describe, mode]
Mode of a Statistical List
Calling Sequence
Parameters
Description
Examples
stats[describe, mode](data)
describe[mode](data)
data
-
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function mode of the subpackage stats[describe, ...] computes the mode of the given data.
The mode is defined to be the observation with the highest frequency. If the mode is a class, then the mode is interpolated.
If there is more than one observation with the modal frequency, they are all reported.
The mode is one measure of central tendency. For more information related to central tendency, refer to the help for the mean. An example of the use of the mode would be the following: the manager of a particular supermarket noticed that the most common number of apples that consumers buy at the same time is 12. Based on this, the store now offers packages of a dozen apples, already counted.
The interpolation formula breaks down if three contiguous classes have the modal frequency.
The data must be numeric.
The command with(stats[describe],mode) allows the use of the abbreviated form of this command.
with⁡stats:
data1≔6,12,12,12,10,5
describemode⁡data1
12
data2≔6,Weight⁡12,3,5,missing
describemode⁡data2
See Also
describe(deprecated)[mean]
Statistics
Statistics[Mode]
stats(deprecated)[data]
Download Help Document