Mean, median and mode are measures of central tendency: each summarizes a data set with a single typical value. They answer different questions, and choosing the wrong one can distort the conclusion.
Arithmetic mean
Worked example: grades 6, 7, 7, 8 and 9
- Sum: .
- Count: .
- Mean: .
Weighted mean
When each value has a weight :
Worked example: grade 6 with weight 2 and grade 8 with weight 3
- Weighted sum: .
- Sum of weights: .
- Mean: .
Median
Sort the data. With an odd , the median is the middle value. With an even , it is the mean of the two middle values.
Worked example: 9, 4, 7, 10, 8
- Sort: .
- , odd: the 3rd value is in the middle.
- Median: .
Worked example: 10, 4, 8, 7
- Sort: .
- , even: the middle values are and .
- Median: .
Forgetting to sort is the most common median mistake.
Mode
It is the value that repeats most. In , the mode is . In , there are two modes ( and ): the set is bimodal.
The mode is the only one of the three that works with categorical data: if “bus” is the most cited means of transport in a survey, it is the mode. There is no mean of means of transport.
When to use each one
Worked example: salaries at a small company (in thousands): 2, 2, 3, 3, 3, 4, 20
- Mean: .
- Median: there are 7 values, and the 4th is .
- Mode: .
- Six of the seven people earn 4 thousand or less. The mean of 5.29 thousand is pulled up by the 20 thousand salary and does not represent the typical employee; the median and the mode do.
| Situation | Best measure |
|---|---|
| Symmetric data without outliers | mean |
| Outliers or skewed distribution (income, home prices) | median |
| Categorical data or the most common value (best-selling clothing size) | mode |
| Values with different importance (weighted grades) | weighted mean |
Common mistakes
- Computing the median without sorting the data.
- Using the mean to describe income or prices with a few very high values.
- In a weighted mean, dividing by the number of values instead of the sum of the weights.
Frequently asked questions
Why are salaries usually reported with the median?
Because a few very high salaries pull the mean up. The median marks the value that splits people into two halves and is not affected by those extremes.
Can a data set have more than one mode, or none?
Yes. With two values tied as most frequent, the set is bimodal. If every value appears the same number of times, it is usually said to have no mode.
Does the median have to be one of the values in the set?
No. With an even number of values, the median is the mean of the two middle ones and may not appear in the data.
How does the weighted mean show up in grades?
When exams have different weights: multiply each grade by its weight, add everything up and divide by the sum of the weights.