Arithmetic Mean of a 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.
What is the average of the numbers 3 and 5
A more complicated example
Download Help Document
What kind of issue would you like to report? (Optional)