Lesson 6 of 8 · 16 min

Mean, median and mode

Calculate the mean, median and mode of a data set from a list, a stem-and-leaf plot or a frequency table, with and without technology.

What you will be able to do

  • Calculate the mean using xˉ=∑xn\bar{x} = \frac{\sum x}{n}, by hand and with a calculator.
  • Find the median at position (n+12)th\left(\frac{n+1}{2}\right)^{\text{th}} in the ordered data, for odd and even nn.
  • Find the mode, and recognise when there is none or more than one.
  • Calculate the mean and median from a frequency table.

Ask someone how long their bus usually takes and they'll give you one number: a typical value. Statistics has three ways to choose that number, called measures of centre.

Definition

Three measures of centre

  • The mean, xˉ\bar{x}, is the sum of the values divided by how many there are.
  • The median is the middle value when the data is in order. Half the data lies on each side of it.
  • The mode is the value that occurs most often.
The mean (on the formula sheet). ∑x\sum x means "the sum of all the values" and nn is the number of values.
xˉ=∑xn\bar{x} = \frac{\sum x}{n}

Twelve students recorded how many hours they worked in part-time jobs last week: 4, 6, 8, 8, 9, 10, 10, 10, 12, 12, 15, 30.

xˉ=∑xn=4+6+8+⋯+3012=13412≈11.2 hours\bar{x} = \frac{\sum x}{n} = \frac{4 + 6 + 8 + \cdots + 30}{12} = \frac{134}{12} \approx 11.2 \text{ hours}

The mean is the balance point of the data: if each value were a weight on a number line, the line would balance at 11.2.

The position of the median (on the formula sheet). It tells you where the median is, once the data is in order.
median=(n+12)th data value\text{median} = \left(\frac{n+1}{2}\right)^{\text{th}} \text{ data value}

Finding the median

  1. Order the data

    Write the values from smallest to largest.

  2. Find the position

    Calculate n+12\frac{n+1}{2}.

  3. Read the value

    If nn is odd, the position is a whole number: the median is that value. If nn is even, the position ends in .5: the median is the mean of the two middle values.

For the 12 work hours, already in order, the median is at position 12+12=6.5\frac{12+1}{2} = 6.5: halfway between the 6th and 7th values. Both are 10, so the median is 10 hours. The mode is also 10 hours, because 10 occurs three times, more than any other value.

Notice that the mean (11.2 hours) is larger than both. The one student who worked 30 hours pulls it up: only 4 of the 12 students worked more than the mean.

Interactive

Pull on the mean

Drag the 30-hour value down to 12 and watch the mean drop to about 9.7 while the median stays at 10. Then drag it far to the right: the mean follows it, the median doesn't.

Eight students recorded the number of minutes they exercised yesterday: 25, 40, 10, 35, 20, 60, 30, 45. Find the median.

in min

Worked example

Find the mean, median and mode from a stem-and-leaf plot

  • Simple familiar

The stem-and-leaf plot shows the scores of 15 students on a General Mathematics test marked out of 60.

StemLeaf
23
31 5 8 8
41 2 4 6 7 7 7
52 5 8

Key: 4∣14 \mid 1 = 41 marks

Find the mean, correct to one decimal place, the median and the mode.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Read the ordered values from the plot and count nn.

  2. Mean: ∑x÷n\sum x \div n.

  3. Median: count leaves to position n+12\frac{n+1}{2}.

  4. Mode: the most repeated leaf on one stem.

Watch out for

  • Giving the median as 8, its position, instead of the 8th score.

  • Reading a leaf without its stem, such as 7 instead of 47.

When the data comes in a frequency table, each value xx occurs ff times. Multiply each value by its frequency to get the total of all the data, then divide by the number of data values, ∑f\sum f. For the median, add a cumulative frequency column (a running total) to find which value sits at position n+12\frac{n+1}{2}.

The mean from a frequency table.
xˉ=∑fx∑f\bar{x} = \frac{\sum f x}{\sum f}

Worked example

Find the mean and median from a frequency table

  • Complex familiar
  • Technology active

The table shows the number of tries a Toowoomba rugby league team scored in each of its 24 matches.

Tries (xx)0123456
Matches (ff)1356432

Calculate the mean number of tries per match, correct to one decimal place, and find the median.

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Check ∑f=n\sum f = n.

  2. Find ∑fx\sum f x and divide by ∑f\sum f.

  3. Use running totals of ff to find the value at position n+12\frac{n+1}{2}.

Watch out for

  • Dividing by 7, the number of columns, instead of 24, the number of matches.

  • Taking the middle of the xx row instead of the middle of the 24 data values.

Without technology

Order the data and count to the middle for the median. Add the values (or the f×xf \times x products) and divide for the mean. Best for small data sets, and the method you must be able to show.

With technology

In your calculator's statistics mode, enter the values (turn on the frequency column for a table). It gives nn, ∑x\sum x and xˉ\bar{x} at once, and many models give the median too. Use it for larger data sets, and still write down what you entered.

The number of pets owned by 20 students is shown in the table.

Number of pets (xx)0123
Frequency (ff)4763

Calculate the mean number of pets.

Worked example

What score lifts the mean?

  • Complex unfamiliar

After 9 innings this cricket season, Priya's mean score is 34 runs per innings.

  • (a) How many runs must she score in her 10th innings to lift her mean to 37?
  • (b) Priya says she would need a century (100 runs) in her 10th innings to lift her mean to 40. Is she right? Justify your answer.
5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Total so far =n×xˉ= n \times \bar{x}.

  2. Total needed =(n+1)×= (n + 1) \times the target mean.

  3. Next score == total needed −- total so far, then check.

Watch out for

  • Answering 37−34=337 - 34 = 3 or 34+334 + 3: the new score must lift the mean of all 10 innings, not just one.

  • Using 9 instead of 10 for the new number of innings.

Common mistake

Slip-ups with the mean and median

  • Unordered data. The median is the middle of the ordered data.
  • Position for value. For n=15n = 15, n+12=8\frac{n+1}{2} = 8 means "the 8th value", not 8.
  • Frequency tables. Divide ∑fx\sum f x by ∑f\sum f, not by the number of rows, and don't just average the xx column.
  • Rounding too early. Keep the calculator's full value until the final answer.

Summary

  • Mean: xˉ=∑xn\bar{x} = \frac{\sum x}{n}, the balance point. It uses every value.

  • Median: the middle of the ordered data, at position n+12\frac{n+1}{2}. For even nn, average the two middle values.

  • Mode: the most frequent value. There may be none, or more than one.

  • From a frequency table, xˉ=∑fx∑f\bar{x} = \frac{\sum f x}{\sum f}, and a cumulative frequency column locates the median.

  • If you know the mean and nn, you know the total: ∑x=nxˉ\sum x = n \bar{x}.

Finished the lesson?

Try the 2 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 6 of 80% read

Save your progress with a free account