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

xˉ=x1+x2++xnn\bar{x} = \frac{x_1 + x_2 + \cdots + x_n}{n}

Worked example: grades 6, 7, 7, 8 and 9

  1. Sum: 6+7+7+8+9=376 + 7 + 7 + 8 + 9 = 37.
  2. Count: n=5n = 5.
  3. Mean: 375=7.4\dfrac{37}{5} = 7.4.

Weighted mean

When each value has a weight wiw_i:

xˉw=w1x1+w2x2++wnxnw1+w2++wn\bar{x}_w = \frac{w_1 x_1 + w_2 x_2 + \cdots + w_n x_n}{w_1 + w_2 + \cdots + w_n}

Worked example: grade 6 with weight 2 and grade 8 with weight 3

  1. Weighted sum: 26+38=12+24=362 \cdot 6 + 3 \cdot 8 = 12 + 24 = 36.
  2. Sum of weights: 2+3=52 + 3 = 5.
  3. Mean: 365=7.2\dfrac{36}{5} = 7.2.

Median

Sort the data. With an odd nn, the median is the middle value. With an even nn, it is the mean of the two middle values.

Worked example: 9, 4, 7, 10, 8

  1. Sort: 4,7,8,9,104, 7, 8, 9, 10.
  2. n=5n = 5, odd: the 3rd value is in the middle.
  3. Median: 88.

Worked example: 10, 4, 8, 7

  1. Sort: 4,7,8,104, 7, 8, 10.
  2. n=4n = 4, even: the middle values are 77 and 88.
  3. Median: 7+82=7.5\dfrac{7 + 8}{2} = 7.5.

Forgetting to sort is the most common median mistake.

Mode

It is the value that repeats most. In 3,5,5,6,93, 5, 5, 6, 9, the mode is 55. In 2,2,4,4,72, 2, 4, 4, 7, there are two modes (22 and 44): 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

  1. Mean: 3775.29\dfrac{37}{7} \approx 5.29.
  2. Median: there are 7 values, and the 4th is 33.
  3. Mode: 33.
  4. 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.
SituationBest measure
Symmetric data without outliersmean
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

  1. Computing the median without sorting the data.
  2. Using the mean to describe income or prices with a few very high values.
  3. 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.