MathemagiciansLibraryExplorationsDeep Dives
← Mathematics · Lower Secondary
MathematicsLower Secondary

Mean, median, mode — which average to use

L4.1 — Statistical MeasuresLecture 1 of 2~2990 words

An average that describes nobody

A small company has five people. Here are their monthly salaries, in dollars. This company is invented for this lecture.

The owner earns 48 400. The four workers earn between 2000 and 2300. The owner places an advertisement for a new worker: "Join us. Our average salary is 11 400 dollars a month."

The owner did the arithmetic correctly. The five salaries add up to 57 000, and .

Stop and think

How many of the five people earn more than the "average" salary of 11 400?

Show the answer

Only one: the owner. The four workers all earn less than a fifth of 11 400. So the number is correct, but it describes nobody in the company. A new worker who believes the advertisement will be disappointed.

Here is the disruption. You have probably used the word "average" for years and thought it meant one thing: add up, then divide. That is one kind of average, called the mean. There are two others, the median and the mode. Each one answers a slightly different question. Calculating them is not hard. The real skill is choosing which one to trust.

The mean: share everything out equally

Five friends, Ama, Ben, Chen, Dev and Ema, have 3, 5, 6, 8 and 13 sweets. They decide to put all the sweets in one pile and share them equally. How many does each friend get?

The pile holds sweets. Shared between 5 friends, that is each. This "fair share" is the mean.

05103Ama5Ben6Chen8Dev13Ema7 each
The five friends' sweets, with the fair share of 7 shown dashed. The dark parts above the line (1 + 6 = 7 sweets) exactly fill the dashed gaps below it (4 + 2 + 1 = 7 sweets).

Look at the picture. The parts of Dev's and Ema's bars above the dashed line exactly fill the gaps below the line in the other three bars. Dev gives away 1 and Ema gives away 6, which is 7 sweets. Ama needs 4, Ben needs 2 and Chen needs 1, which is also 7. Nothing is added and nothing is lost. The total stays 35. Only the way it is shared changes.

This gives the mean its formula:

Some books write this as . The symbol is the Greek capital letter sigma, and it means "add up all the values". The letter is the number of values.

The fair-share picture also explains a useful fact. If you know the mean and the number of values, you can rebuild the total:

Five friends with a mean of 7 sweets must have 35 sweets between them, whatever each one holds. No other average can do this. This is the mean's special power.

The mean is the balance point

There is a second way to see the mean, and it explains the advertisement. Put the five numbers on a number line, as if each one were a small weight on a ruler. Where must you hold the ruler so that it balances?

024678101214−4−2−1+1+6mean = 7
The values 3, 5, 6, 8 and 13 balance at 7. The gaps on the left add up to −7 and the gaps on the right add up to +7, so they cancel.

Measure how far each value is from 7. Values below 7 have negative gaps: −4, −2 and −1. Values above 7 have positive gaps: +1 and +6. Now add the gaps:

The gaps cancel exactly. This is always true for the mean, for any set of numbers. The reason is the sharing picture. A gap above the mean is what a value gives away. A gap below the mean is what a value receives. What is given away must equal what is received, so the gaps always add up to zero.

That is it. That is the whole idea of the mean. The mean is the point where the gaps above and below cancel. It is not "the middle". It is the balance point.

Now return to the company. The mean salary is 11 400. The four workers are below it by 9400, 9300, 9200 and 9100. Those four gaps add up to 37 000. The owner is above the mean by . One very large gap on one side balances four gaps on the other. A single extreme value can drag the balance point a long way from everybody else.

A value that is far away from the rest of the data is called an outlier. The mean uses every value, and it uses how big each value is. This makes the mean sensitive to outliers. That is its weakness.

Stop and think

A family survey finds that the mean number of children per family is 2.4. Does any family have 2.4 children? Must the mean always be one of the values in the data?

Show the answer

No family has 2.4 children, and that is fine. The mean is a fair share, not a member of the data. If 5 families have 12 children between them, the fair share is children per family. So the mean does not have to be one of the values. It does not even have to be a possible value. But it always lies between the smallest and the largest value, because a balance point cannot be outside all the weights.

The median: the middle of the line

The median asks a different question. Line up all the values in order, from smallest to largest. Which value stands in the middle of the line?

For the company, the sorted salaries are 2000, 2100, 2200, 2300, 48 400. The middle one, the 3rd of 5, is 2200. Two people earn less than 2200, and two earn more. This number describes the company far better than 11 400 does.

Sorting is not optional. "Middle" means middle in order. The middle of an unsorted list is just the value that happened to be written in the middle, and that tells you nothing.

When the number of values is odd, there is one middle value. Its position is . For 7 values, that is , so the median is the 4th value. Notice that this formula gives a position in the line, not the median itself.

When is even, there is no single middle value. There are two middle values, and the median is halfway between them. You find it by adding the two values and dividing by 2. The formula still gives the position: for 6 values, , which means "halfway between the 3rd and the 4th".

31st32nd53rd74th75th76th97thmedian 451st522nd673rd714th825th906thmedian = halfway between
Top: seven sorted values. The 4th value, 7, is the median, with three values on each side. Bottom: six sorted values. The 3rd and 4th are both in the middle, so the median is halfway between them: .

Now the important question. Why does the median ignore the owner's huge salary? Because the median only uses the order of the values. It does not use how big they are. Change the owner's salary from 48 400 to 480 000. The order does not change: the owner is still at the end of the line. So the middle value is still 2200. The mean, which uses the size of every value, jumps from 11 400 to 97 720.

We say the median is resistant to outliers. Extreme values cannot pull it. This is the median's strength. Its weakness is the same fact: it ignores the sizes of the values, so it cannot rebuild the total.

Try this yourself. Move the owner's salary and watch the two averages.

Explore — one salary moves, two averages respond

Move the owner's salary with the slider, the − and + buttons, or the preset buttons. Watch the mean (teal line) and the median (dashed line). How many people earn less than the mean?


The figure shows the five salaries with the owner at 48 400. The table shows the two averages for four different salaries of the owner. The other four salaries stay at 2000, 2100, 2200 and 2300.

025 00050 000monthly salary in dollarsWorker 1Worker 2Worker 3Worker 4Ownermedian 2200mean 11 400
The mean (teal line, 11 400) is far to the right of all four workers. The median (dashed line, 2200) sits among them.
Owner's salaryTotalMeanMedianPeople below the mean
240011 000220022002 of 5
10 00018 600372022004 of 5
48 40057 00011 40022004 of 5
100 000108 60021 72022004 of 5

Did you see it? As the owner's salary grows, the mean follows it, but the median does not move. At 2400, the two averages agree. So when the mean and the median are far apart, that is a signal: something extreme is hiding in the data.

The mode: the most common value

The third average is the simplest. The mode is the value that appears most often.

The mode has one power that the others do not have. It works for data that are not numbers at all. Suppose a class names its favourite fruit: mango, apple, mango, banana, mango, apple. The mode is mango. You cannot add "mango + apple", so there is no mean. You cannot put fruits in order of size, so there is no median. Data like this, sorted into named groups, are called categorical data. For categorical data, the mode is the only average.

A data set can have more than one mode. In 2, 3, 3, 5, 5, 8, both 3 and 5 appear twice, so there are two modes, 3 and 5. (Two modes are sometimes called bimodal.) If every value appears the same number of times, as in 4, 6, 9, 11, there is no mode. Be careful: "no mode" is not the same as "the mode is 0". A mode of 0 means that 0 is the most common value.

The three averages

Mean = sum of the values ÷ number of values. It is the fair share and the balance point. It uses every value, so outliers pull it.

Median = the middle value when the values are in order. Its position is . For an even , it is halfway between the two middle values. It uses only the order, so outliers cannot pull it.

Mode = the value that appears most often. A set can have one mode, several, or none. It is the only average for categorical data.

Worked examples

Worked Example 1 — All three averages

Find the mean, the median and the mode of 3, 7, 5, 7, 3, 9, 7.

Sort first. 3, 3, 5, 7, 7, 7, 9. There are values.

Mean. The sum is . So the mean is (3 significant figures).

Median. The position is . The 4th value in the sorted list is 7.

Mode. 7 appears three times, more than any other value. The mode is 7.

Check. The mean, 5.86, lies between the smallest value, 3, and the largest, 9. ✓ The mean is below the median here. The two 3s pull the balance point down, but they do not change which value is in the middle.

Worked Example 2 — An even number of values

Six students score 45, 52, 67, 71, 82 and 90 in a test. Find the median and the mean.

Median. The scores are already in order. With , the position is , so the median is halfway between the 3rd and 4th scores, 67 and 71:

Mean. The sum is , so the mean is .

Check. Three scores are below 69 and three are above it. ✓ The median of an even number of values does not have to be one of the values, and here it is not.

Worked Example 3 — Working backwards from a mean

The mean of four numbers is 12. A fifth number is added, and the mean of all five becomes 14. What is the fifth number?

Use the mean's special power: total = mean × number of values.

Total of the first four: . Total of all five: .

The fifth number made the difference: .

Check. The mean went up, so the new number must be above the old mean of 12. ✓ It must also be above the new mean of 14, because it pulled the balance point up to 14. 22 is above both. ✓

Worked Example 4 — Choosing the average

A shoe shop sells 12 pairs of shoes in one morning, in these sizes: 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 9. The owner wants to know which size to order most of. Which average should she use?

Mean. The sum is 83, so the mean is . No shoe is made in size 6.9, so the mean cannot be ordered.

Median. With 12 values, the median is halfway between the 6th and 7th. Both are 7, so the median is 7.

Mode. Size 7 appears five times. The mode is 7.

The owner's question is "which size sells most often?" That is exactly the question the mode answers. The median is also 7 here, but only by chance.

Choosing the right average

Every average throws some information away. Choose the one that keeps what your question needs.

Here is a real case. Every year, Singapore's Department of Statistics reports both the mean and the median of household income. Take 2023 and households with at least one working member. Their monthly income from work, for each household member, had a mean of about 4265 dollars. The median was about 3091 dollars. (These figures leave out employers' contributions to the national savings fund.) The mean is about 1170 dollars higher than the median. The reason is the same as in our invented company. A smaller number of households with very high incomes pull the balance point up, but they cannot move the middle. This is why reports on "typical" income usually quote the median.

Now practise the choice. Sort each situation into the average that suits it best.

Sort — which average fits the question?

Put each card in the box for the average you would use. Each card gives its reason when you place it.

Each situation is listed with the average that suits it and the reason.

SituationAverageReason
The most popular colour of school bag in a classModeColours are categories. They cannot be added or put in order.
The shoe size a shop should order most ofModeThe question is "which is most common?", and a mean size may not exist.
A typical house price in a town with a few huge mansionsMedianThe mansions are outliers. They would pull the mean up.
Your usual journey time to school, when one day the bus broke down and you took 95 minutesMedianThe 95-minute day is an outlier. The median ignores how far out it is.
A typical salary in a company where the owner earns 20 times as much as everyone elseMedianOne extreme salary drags the mean away from everybody.
Splitting the bill for a meal equally between friendsMeanSharing a total equally is exactly what the mean does.
Finding a year's total rainfall from the average rainfall per monthMeanOnly the mean rebuilds a total: mean × 12.
The typical mass of apples from one tree, with no unusual applesMeanNo outliers, and every apple should count.

Notice the last card. With no unusual values, the mean and the median are almost the same. The choice matters most when the data contain something extreme.

Trap 1 — Finding the middle without sorting

For the scores 8, 2, 9, 4, 6, the value written in the middle is 9. But 9 is the largest score, not the middle one. Sorted, the list is 2, 4, 6, 8, 9, and the median is 6. Write the sorted list on a new line every time, before you look for the middle.

Trap 2 — Giving the position instead of the value

For 15 values, . The median is not 8. The median is the 8th value in the sorted list. The formula tells you where to look, not what you will find.

Trap 3 — Leaving out the zeros

A football team scores 0, 2, 0, 1 and 3 goals in five matches. The total is 6. Some students divide by 3, because only three matches "had goals", and get a mean of 2. But a 0 is a real value. The team played five matches, so the mean is goals per match. Count every value, including the zeros.

Try it yourself

Work each one on paper first. Open a hint only when you are stuck.

  1. Find the mean, the median and the mode of 12, 15, 11, 15, 18, 15, 12, 14.

    Hint 1

    Sort the eight values first. With an even number of values, the median is halfway between two values.

    Hint 2

    Sorted: 11, 12, 12, 14, 15, 15, 15, 18. The middle pair is the 4th and 5th values.

    Full answer

    Sum = 112, so the mean is .

    Median: the 4th and 5th sorted values are 14 and 15, so the median is .

    Mode: 15 appears three times, so the mode is 15.

    Check: the gaps from the mean are −3, −2, −2, 0, +1, +1, +1, +4, which add up to 0. ✓

  2. The mean of five numbers is 8. Four of the numbers are 6, 9, 10 and 4. Find the fifth number.

    Hint 1

    Use the mean to rebuild the total of all five numbers.

    Hint 2

    The total is . What do the four known numbers add up to?

    Full answer

    Total of five = . The four known numbers add up to . So the fifth number is .

    Check: , and . ✓

  3. Write down five whole numbers with a mean of 6, a median of 5 and a mode of 4.

    Hint 1

    Start from what each average forces. The mean tells you the total. The median tells you the middle number. The mode tells you which number appears most often.

    Hint 2

    The total must be . The 3rd sorted number must be 5. For the mode to be 4, put two 4s below the middle: 4, 4, 5, ?, ?.

    Full answer

    The list starts 4, 4, 5. The first three add up to 13, so the last two must add up to . They must both be bigger than 5 (to keep 5 in the middle) and different from each other (so that 4 stays the only mode). One answer is 4, 4, 5, 7, 10.

    Check: sum = 30, mean = 6 ✓; the middle value is 5 ✓; 4 appears twice and every other number once ✓. Other answers work too, such as 4, 4, 5, 6, 11 or 4, 4, 5, 8, 9.

  4. In cricket, a batter's "batting average" is not runs ÷ innings. It is total runs ÷ the number of times the batter was out. A batter scores 12, 45 not out, 0, 88, 7 and 30 not out in six innings. ("Not out" means the innings ended before the batter was out.) (a) Find the batting average. (b) Find the mean runs per innings and the median score. (c) Which number best describes a typical innings?

    Hint 1

    Add all the runs. Then count how many times the batter was out: every innings except the two "not out" ones.

    Hint 2

    Total runs = 182. Outs = 4. For the median, sort the six scores: 0, 7, 12, 30, 45, 88.

    Full answer

    (a) Batting average = .

    (b) Mean runs per innings = . Median: halfway between 12 and 30, which is 21.

    (c) The median, 21. Half the innings scored less than 21 and half scored more. The batting average, 45.5, is higher than four of the six scores. It divides by outs, not innings, so every "not out" makes it bigger. The mean, 30.3, is pulled up by the one big score of 88.

    Check: ✓ and ✓. The batting average answers a different question: "how many runs does this batter score for each time they are out?" That is a fair question in cricket, but it is not "what is a typical innings?"

The bigger idea

An average is a summary: one number that stands for many. Every summary keeps some information and throws the rest away. The mean keeps the total. The median keeps the order. The mode keeps the most common value. None of them is "the true average". Each is the honest answer to its own question.

The three names have a history. Mathematicians and astronomers used means for centuries to combine repeated measurements. The word "mode" for the most common value was introduced in the 1890s by the English statistician Karl Pearson, who also gave statistics many of its other modern words.

This is why statistics can be used to mislead, and why it can protect you. When someone says "the average", ask: which average? The owner in this lecture told the truth and still misled people. The same data told a different story through the median. In the next lecture you will meet the other half of the picture. Two data sets can have the same average and still be completely different, because one is tightly packed and the other is spread out. That spread needs its own measures.

Key concepts in this lesson