CalcMathic

Statistics

Mean, median and mode explained with examples

Illustration for mean, median and mode

An average is a single number that tries to describe a whole list. The word "average" is slippery, because there are three common ways to calculate one, and they can give quite different answers for the same data. Knowing which to use is as important as knowing how to work each out.

The three averages

  • The mean is the total of all the values divided by how many there are.
  • The median is the middle value once the list is in order.
  • The mode is the value that appears most often.

The range is not an average. It measures how spread out the data is: the largest value minus the smallest.

A worked example

Seven students record how many books they read in a month: 4, 8, 6, 5, 3, 8, 9.

Step 1: put the data in order. 3, 4, 5, 6, 8, 8, 9.

MeasureWorkingResult
Mean(3 + 4 + 5 + 6 + 8 + 8 + 9) ÷ 7 = 43 ÷ 7about 6.14
Medianmiddle of seven values is the 4th6
Mode8 appears twice, the rest once8
Range9 - 36

Sorting first matters for the median and also helps you spot the mode and the range.

When there is an even number of values

With no single middle value, take the mean of the two middle ones. For 12, 15, 18, 20, 22, 25, there are six values, and the middle two are 18 and 20. The median is (18 + 20) ÷ 2 = 19. The mean is 112 ÷ 6, which is about 18.67.

Mode: none, one or several

  • For 2, 3, 3, 5, 7 the mode is 3.
  • For 2, 2, 5, 5, 9 there are two modes, 2 and 5. This is called bimodal.
  • For 1, 2, 3, 4, 5 every value appears once, so there is no mode.

The mode is also the only average that works for data that is not numbers. If a class votes on a favorite color, the mode tells you which color won, but a mean makes no sense.

How an outlier changes things

An outlier is a value far away from the rest. Say six employees at a small firm earn, in thousands of dollars, 30, 32, 35, 38, 40 and 250.

  • The mean is 425 ÷ 6, about 70.8, or roughly $70,800.
  • The median is (35 + 38) ÷ 2 = 36.5, or $36,500.

The single large salary drags the mean far above what most people earn. The median barely notices it. That is why house prices and incomes are usually reported as medians. When data is fairly even, with no extreme values, the mean and median come out close together, and the mean uses every piece of data, which is a point in its favor.

Use the...When...
Meanthe data is fairly even and you want to include every value, such as test scores
Medianthere are outliers or the data is lopsided, such as salaries or house prices
Modeyou want the most common choice, or the data is categories, such as shoe sizes sold

Working backward: what score do I need?

A student has scored 72, 85, 91, 68 and 79 on five tests. The mean so far is 395 ÷ 5 = 79. What does she need on the sixth test to reach a mean of 80?

  • Six tests with a mean of 80 must total 6 × 80 = 480.
  • She has 395 already.
  • She needs 480 - 395 = 85.

Check: (395 + 85) ÷ 6 = 480 ÷ 6 = 80. This total-first approach works for any "needed score" question.

Means from a frequency table

When values repeat, a table is quicker. A shop records shoe sizes sold in one day.

SizePairs soldSize × pairs
6212
7535
8648
9327

There are 2 + 5 + 6 + 3 = 16 pairs, and the sizes add up to 12 + 35 + 48 + 27 = 122. The mean size is 122 ÷ 16 = 7.625. The mode is size 8, the one with the most pairs sold. The 16 values in order have the 8th and 9th in the size 8 group (the first 7 values are sizes 6 and 7), so the median is 8.

Weighted averages

If some values count more than others, as with graded coursework, you cannot just add and divide. Multiply each value by its weight first. The percentages guide shows how a 20%, 50% and 30% weighting turns scores of 90, 78 and 84 into 82.2 and not 84.

Why the mean is sometimes not a real value

A mean describes the balance point of the data, not a value that has to occur. A family can have an average of 2.4 children without any family having 2.4. The median, by contrast, is always a value from the list or halfway between two of them, and the mode is always a value from the list itself. Knowing this helps you decide whether an answer looks sensible.

Reading averages in the news

When a headline says the average household spends a certain amount, ask which average it means. If the mean was used, a few very large values may be pulling it up. If the median was used, half the households spend more and half spend less. Neither is wrong, but they answer different questions, and comparing a mean from one report with a median from another leads to bad conclusions.

Common mistakes

  • Finding the median without sorting the data first.
  • Dividing by the wrong count when working out the mean. Count the values carefully, including repeats.
  • Giving one value for the mode when two values tie.
  • Forgetting that a mean can be a number not in the list at all, such as 6.14 above.
  • Using the mean when a big outlier makes it misleading.

Quick practice

DataMeanMedianMode
2, 4, 4, 6, 9544
10, 20, 30, 402525none
1, 1, 2, 3, 3, 832.51 and 3

Check your own lists with the mean, median and mode calculator, which sorts the data and shows each step.

Read next