6.1Measures of central tendency#
In brief
The mean is the sum of all observations divided by their number.
- mean
- median
- mode
The mean is the sum of all observations divided by their number. The median is the middle value of ordered data; with an even number of items it is the average of the two middle values. The mode is the value that occurs most often. Mean is affected by extreme values, median is not, and mode can be absent or have more than one value (bimodal).
\text{Mean} = \frac{\text{Sum of observations}}{\text{Number of observations}}
\text{Weighted mean} = \frac{\sum w x}{\sum w}
For a frequency distribution, the mean is the sum of frequency times value, divided by total frequency. In a symmetric distribution, mean, median and mode are equal. For a moderately skewed distribution the empirical relation holds:
\text{Mode} = 3\\text{Median} - 2\\text{Mean}
If the distribution is positively skewed (long tail to the right), mean is greater than median, which is greater than mode. For negative skew, mode is greater than median, which is greater than mean.
For grouped data, the median class is the class where the cumulative frequency first reaches N / 2, and the modal class is the class with the highest frequency.
\text{Median} = L + \frac{N/2 - cf}{f} \times h
Here L is the lower limit of the median class, cf is the cumulative frequency before it, f is its frequency and h is its width.