stats[describe, mean]
Arithmetic Mean of a Statistical List
Calling Sequence
Parameters
Description
Examples
stats[describe, mean](data)
describe[mean](data)
data
-
statistical list
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function mean of the subpackage stats[describe, ...] computes the arithmetic mean of the given data.
The mean is defined to be the ratio of the sum of the data items (each multiplied by its weight) to the total weight.
Classes are assumed to be represented by the class mark, which is the mid-point of the class. For example, the class mark of the class 10..12 has the value 11. Missing data are simply ignored.
The mean is an example of a measure of central tendency of the data. Such measures are used to find a ``typical'' value for the data. Other measures of central tendency are the harmonic mean, the geometric mean, the quadratic mean, the median, and the mode.
A major advantage of using the mean as a measure of the central tendency is that it has a simple relation to the weighted sum of the data. It is arguably the most familiar central tendency measure.
A disadvantage of using the mean as a measure of the central tendency is that it is strongly affected by the extreme values in the data. For example, if one wants to compute the typical salary on the payroll of a sports team that has one star player that is paid substantially more than her teammates it is more appropriate to use the median.
The command with(stats[describe],mean) allows the use of the abbreviated form of this command.
with⁡stats:
What is the average of the numbers 3 and 5
describemean⁡3,5
4
A more complicated example
data≔Weight⁡3,10,missing,4,Weight⁡11..13,3
describemean⁡data
5
10⋅3+1⋅4+3⁢11+13210+1+3
See Also
describe(deprecated)[geometricmean]
describe(deprecated)[harmonicmean]
describe(deprecated)[median]
describe(deprecated)[mode]
describe(deprecated)[quadraticmean]
Statistics
Statistics[Mean]
transform(deprecated)[classmark]
Download Help Document