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 , by hand and with a calculator.
- Find the median at position in the ordered data, for odd and even .
- 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, , 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.
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.
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.
Finding the median
Order the data
Write the values from smallest to largest.
Find the position
Calculate .
Read the value
If is odd, the position is a whole number: the median is that value. If 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 : 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.
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.
Worked example
Find the mean, median and mode from a stem-and-leaf plot
The stem-and-leaf plot shows the scores of 15 students on a General Mathematics test marked out of 60.
| Stem | Leaf |
|---|---|
| 2 | 3 |
| 3 | 1 5 8 8 |
| 4 | 1 2 4 6 7 7 7 |
| 5 | 2 5 8 |
Key: = 41 marks
Find the mean, correct to one decimal place, the median and the mode.
Step 1: Read the data in order
A stem-and-leaf plot is already in order: 23, 31, 35, 38, 38, 41, 42, 44, 46, 47, 47, 47, 52, 55, 58. There are scores.
Step 2: Find the mean
Add row by row: .
A calculator's statistics mode gives and directly. By hand, adding one row at a time keeps the arithmetic manageable.
Step 3: Find the median
Position , so the median is the 8th score. Counting leaves: 1 on stem 2, then 4 on stem 3 (5 so far), then the 3rd leaf on stem 4. The median is 44 marks.
Step 4: Find the mode
The leaf 7 appears three times on stem 4, more often than any other value, so the mode is 47 marks.
Try it yourself first, then check the working one step at a time.
Answer
Mean marks, median marks, mode marks.
Method
Read the ordered values from the plot and count .
Mean: .
Median: count leaves to position .
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 occurs times. Multiply each value by its frequency to get the total of all the data, then divide by the number of data values, . For the median, add a cumulative frequency column (a running total) to find which value sits at position .
Worked example
Find the mean and median from a frequency table
The table shows the number of tries a Toowoomba rugby league team scored in each of its 24 matches.
| Tries () | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| Matches () | 1 | 3 | 5 | 6 | 4 | 3 | 2 |
Calculate the mean number of tries per match, correct to one decimal place, and find the median.
Step 1: Check the number of matches
, so .
Step 2: Multiply each value by its frequency
0 1 2 3 4 5 6 Total 1 3 5 6 4 3 2 24 0 3 10 18 16 15 12 74 Three matches with 1 try each contribute tries to the total.
Step 3: Calculate the mean
Step 4: Check with technology
In statistics mode with the frequency column on, enter the values 0 to 6 with their frequencies. The calculator shows , and
Step 5: Find the median with cumulative frequencies
The median is at position , between the 12th and 13th values. The running totals of are 1, 4, 9, 15, … so values 10 to 15 in order are all 3. The 12th and 13th values are both 3.
A running total of 9 means the first 9 values are 2 or less. The next 6 values, the 10th to the 15th, are all 3.
Try it yourself first, then check the working one step at a time.
Answer
Mean tries per match. Median tries.
Method
Check .
Find and divide by .
Use running totals of to find the value at position .
Watch out for
Dividing by 7, the number of columns, instead of 24, the number of matches.
Taking the middle of the 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 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 , and 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 () | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| Frequency () | 4 | 7 | 6 | 3 |
Calculate the mean number of pets.
Worked example
What score lifts the mean?
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.
Step 1: Turn the mean into a total
Since , the total is . After 9 innings: runs.
A mean hides the total, but you can always recover it by multiplying by .
Step 2: Find the total needed for a mean of 37
After 10 innings, a mean of 37 needs a total of runs.
Step 3: Find the 10th score
runs. Check: .
Step 4: Test the claim about a century
A mean of 40 after 10 innings needs runs in total, so the 10th innings needs runs.
Step 5: Evaluate
94 is less than 100, so Priya is not right: any score of 94 or more lifts her mean to at least 40. Check: .
"Is she right?" needs a clear yes or no, the reason, and the number that supports it.
Try it yourself first, then check the working one step at a time.
Answer
(a) 64 runs. (b) No. She needs only 94 runs, not a century, because .
Method
Total so far .
Total needed the target mean.
Next score total needed total so far, then check.
Watch out for
Answering or : 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 , means "the 8th value", not 8.
- Frequency tables. Divide by , not by the number of rows, and don't just average the column.
- Rounding too early. Keep the calculator's full value until the final answer.
Summary
Mean: , the balance point. It uses every value.
Median: the middle of the ordered data, at position . For even , average the two middle values.
Mode: the most frequent value. There may be none, or more than one.
From a frequency table, , and a cumulative frequency column locates the median.
If you know the mean and , you know the total: .
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.