The Median
The median, the middle value of data in order: from a list, a dot diagram, a frequency table, a histogram and a stem-and-leaf diagram, a missing value, and why an extreme value hardly moves it.
What You Should Already Know
- The mean (lesson 12.7) is the sum of the values divided by the number of values.
- A dot diagram, a stem-and-leaf diagram and an ungrouped histogram (lessons 12.1 to 12.3) show the values already in order, from the smallest to the largest.
The Middle Value
The mean uses the size of every value. The median uses only their order: it is the value in the middle when the data are lined up from the smallest to the largest. Half of the values lie at or below it, and half at or above it.
The median
Arrange the values in order, from the smallest to the largest. The median is at position .
If is odd, the median is the middle value.
If is even, ends in .5 (such as 4.5), and the median is the mean of the two middle values (the 4th and 5th).
is the position of the median, not the median.
Example 1: An odd number of values
Seven pupils scored these marks in a Science quiz: 68, 75, 82, 91, 70, 88, 79. Find the median mark.
Solution
In order: 68, 70, 75, 79, 82, 88, 91.
, so the median is at position : the 4th value, 79.
On a dot diagram, 3 marks lie below 79 and 3 above it:
The median mark is 79.
Example 2: An even number of values
The daily rainfall, in mm, in a town on 8 days of December was 12, 8, 19, 30, 14, 21, 9, 5. Find the median rainfall.
Solution
In order: 5, 8, 9, 12, 14, 19, 21, 30.
, so the position is : the median is halfway between the 4th and 5th values, 12 and 14.
Median .
No day had 13 mm of rain: the median of an even number of values need not be one of them.
The median rainfall is 13 mm.
Example 3: Repeated values
Six school bags cost $32, $15, $20, $15, $25 and $12. Find the median price.
Solution
In order: 12, 15, 15, 20, 25, 32. The price $15 occurs twice, and both are kept in the list.
: the position is , between the 3rd and 4th values, 15 and 20.
Median
The median price is $17.50.
The Median from a Dot Diagram, a Frequency Table or a Histogram
These show the values in order already, with their frequencies. There is no need to write every value out: count along, keeping a running total of the frequencies, until you reach the position of the median.
Example 4: The median from a dot diagram
The dot diagram shows how many times each of a group of people went to the supermarket in one week. Find the median number of visits.
Solution
Count the dots: people. The position is : the median is the mean of the 5th and 6th values.
Counting from the left: 1 visit is the 1st value; 2 visits are the 2nd to 4th; 3 visits are the 5th to 8th.
The 5th and 6th values are both 3, so the median .
The median is 3 visits.
Example 5: The median from a frequency table
A survey asked 30 households how many mobile phones they have. Find the median number of phones.
| Number of phones | Number of households |
|---|---|
| Total |
Solution
, so the position is : the median is the mean of the 15th and 16th values.
Keep a running total of the frequencies: 4, then , then .
| Phones | Positions |
|---|---|
| 1 | 1st to 4th |
| 2 | 5th to 11th |
| 3 | 12th to 20th |
The 15th and 16th values are among the 12th to 20th, so both are 3. There is no need to go further.
Median .
The median is 3 phones.
Example 6: The median from a histogram
The histogram shows the number of eggs laid in one week by each of 25 hens on a farm in Lim Chu Kang. Find the median number of eggs.
Solution
Read the frequencies from the bars: 2, 4, 7, 6, 4, 2, which add up to 25.
is odd, so the median is the value at position .
Running totals: 2 eggs takes positions 1 to 2; 3 eggs, 3 to 6; 4 eggs, 7 to 13.
The 13th value is 4 eggs.
The median number of eggs is 4.
The Median from a Stem-and-Leaf Diagram
The leaves of a stem-and-leaf diagram are in order, so the diagram is the data already arranged. Count the leaves row by row from the top (the smallest value) until you reach the position of the median, and read that value with the key.
Example 7: An odd number of leaves
The stem-and-leaf diagram shows the masses of the 17 pupils in a PE group. Find the median mass.
Solution
, so the median is the 9th value, at position .
Stem 3 holds 1 leaf (the 1st value). Stem 4 holds 7 leaves (the 2nd to 8th). So the 9th value is the first leaf on stem 5: 5 | 0, which is 50 kg.
The median mass is 50 kg.
Example 8: Comparing two medians
The back-to-back stem-and-leaf diagram shows the times, in seconds, that 12 boys and 12 girls took to swim 50 m. (a) Find the median time of each group. (b) Which group was faster, taken as a whole?
Solution
(a) Each group has , so the median is at position : the mean of the 6th and 7th values.
Boys (on the left, read outwards from the stem): stem 3 has 1 leaf (38); stem 4 has 5 leaves (41, 43, 45, 46, 48), the 2nd to 6th. The 6th value is 48 and the 7th is the first on stem 5, 50. Median s.
Girls: stem 4 has 4 leaves (42, 44, 47, 49), the 1st to 4th; stem 5 has 51, 53, 54, …, the 5th, 6th, 7th. Median s.
(b) A shorter time is faster. The boys' median, 49 s, is less than the girls', 53.5 s.
(a) Boys 49 s, girls 53.5 s. (b) The boys: their median time is 4.5 s shorter.
Using the Median
Example 9: A missing value
The heights, in cm, of six seedlings, from the shortest to the tallest, are 11, 14, , 20, 23, 27. The median height is 18 cm. Find .
Solution
: the median is the mean of the 3rd and 4th values, and 20.
, so and .
Check: 16 lies between 14 and 20, so the values are still in order.
Example 10: An extreme value
Five pupils took 5, 8, 10, 12 and 15 minutes to finish a task. (a) Find the mean and the median. (b) The last pupil's time was really 100 minutes, not 15. Find the mean and the median again.
Solution
(a) Mean minutes. Median the 3rd value minutes.
(b) Mean minutes. The values in order are 5, 8, 10, 12, 100, so the median is still the 3rd value, 10 minutes.
| Times | Mean | Median |
|---|---|---|
| 5, 8, 10, 12, 15 | 10 | 10 |
| 5, 8, 10, 12, 100 | 27 | 10 |
The mean uses the size of every value, so one very large value pulls it up, past four of the five times. The median depends only on the order, and the 100 is still the largest value, so the median does not move.
(a) Mean 10 minutes, median 10 minutes. (b) Mean 27 minutes, median still 10 minutes.
How far an extreme value moves the median
Making the largest value larger (or the smallest smaller) does not change the median at all. Adding or removing one value moves the median no further than the next value in the list (sometimes only halfway towards it), and sometimes not at all. So the median is hardly affected by an extreme value; the mean can be pulled a long way.
Common Mistakes
- Taking the middle of the list as it is written, before putting it in order. For 9, 3, 12, 5, 7 the middle number written is 12, but in order (3, 5, 7, 9, 12) the median is 7.
- Giving the position as the median: for 8 values, 4.5 is where the median is, not what it is.
- With an even number of values, taking only one of the two middle values.
- From a frequency table, taking the middle row, or the middle frequency, instead of counting the frequencies to the middle position.
- Leaving out a repeated value when listing the data in order.
- Reading the left side of a back-to-back stem-and-leaf diagram the wrong way: its leaves get larger going outwards from the stem.
Practice Questions
Try each question first, then open the solution to check your working.
Question 1
Find the median of 20, 16, 9, 3, 18, 11, 15.
ShowHide solution
In order: 3, 9, 11, 15, 16, 18, 20.
: the median is the 4th value, .
The median is 15.
Question 2
The ages, in years, of eight cousins are 14, 17, 12, 15, 17, 13, 16, 12. Find their median age.
ShowHide solution
In order: 12, 12, 13, 14, 15, 16, 17, 17.
: the position is 4.5, between the 4th and 5th values, 14 and 15.
Median
The median age is 14.5 years.
Question 3
The dot diagram shows how many hours each of 15 pupils watched television on a Saturday. Find the median number of hours.
ShowHide solution
: the median is the 8th value.
Running totals: 0 hours, positions 1 to 2; 1 hour, 3 to 5; 2 hours, 6 to 9. The 8th value is 2.
The median is 2 hours.
Question 4
The table shows the scores of 16 pupils in a quiz marked out of 10. Find the median score.
| Score | Number of pupils |
|---|---|
| Total |
ShowHide solution
: the position is 8.5, so the median is the mean of the 8th and 9th values.
Running totals: score 5, positions 1 to 2; score 6, 3 to 5; score 7, 6 to 10.
The 8th and 9th values are both 7, so the median is 7.
The median score is 7.
Question 5
The table shows how many times each of 20 pupils bought bubble tea last week. Find the median.
| Times | Number of pupils |
|---|---|
| Total |
ShowHide solution
: the median is the mean of the 10th and 11th values.
Running totals: 0 times, positions 1 to 2; 1 time, 3 to 5; 2 times, 6 to 10; 3 times, 11 to 16.
The 10th value is 2 and the 11th is 3, so the median .
The median is 2.5 times.
Question 6
The histogram shows the number of textbooks in the schoolbags of 30 pupils. Find the median number of textbooks.
ShowHide solution
The frequencies are 3, 5, 8, 7, 4, 3: . The median is the mean of the 15th and 16th values.
Running totals: 2 books, positions 1 to 3; 3 books, 4 to 8; 4 books, 9 to 16.
The 15th and 16th values are both 4.
The median is 4 textbooks.
Question 7
The stem-and-leaf diagram shows the marks, out of 50, of 20 pupils in a Mathematics test. Find the median mark.
ShowHide solution
: the median is the mean of the 10th and 11th values.
Stem 2 holds 5 leaves (1st to 5th). Stem 3 holds 31, 33, 33, 35, 35, 35, …, the 6th, 7th, 8th, 9th, 10th, 11th, ….
The 10th and 11th values are both 35, so the median is 35.
The median mark is 35.
Question 8
The stem-and-leaf diagram shows the masses of 13 durians sold at a stall. Find the median mass.
ShowHide solution
: the median is the 7th value, .
Stem 1 holds 5 leaves (1st to 5th). On stem 2 the leaves 0 and 1 are the 6th and 7th values.
The 7th value is 2 | 1, which is 2.1 kg by the key.
The median mass is 2.1 kg.
Question 9
Four pupils read 3, 8, and 15 books last term, in order from the fewest. The median is 10 books. (a) Find . (b) Find the mean number of books.
ShowHide solution
(a) : the median is the mean of the 2nd and 3rd values, 8 and . , so and .
Check: 12 lies between 8 and 15.
(b) Mean books.
(a) (b) 9.5 books
Question 10
Seven pupils took 8, 10, 11, 12, 14, 15 and 16 minutes to walk to school. (a) Find the mean and the median. (b) The pupil who took 16 minutes moves house and now takes 45 minutes. Find the new mean and median. Which one changed?
ShowHide solution
(a) Sum Mean minutes (to 3 significant figures). Median the 4th value minutes.
(b) New sum Mean minutes. The 45 is still the largest value, so the median is still the 4th value, 12 minutes.
(a) Mean 12.3 minutes, median 12 minutes. (b) Mean 16.4 minutes, median 12 minutes: only the mean changed.
Question 11
Find the mistake in each answer and give the right median. (a) Ahmad says the median of 9, 3, 12, 5, 7 is 12, "because it is in the middle". (b) Mei Ling says the median of 6, 9, 11, 13, 18, 20, 21, 25 is 4.5, "because ".
ShowHide solution
(a) He did not put the values in order. In order: 3, 5, 7, 9, 12; the middle (3rd) value is 7.
(b) 4.5 is the position of the median, not the median. The values are in order, and the median is halfway between the 4th and 5th values: .
(a) The median is 7. (b) The median is 15.5.
Question 12
The back-to-back stem-and-leaf diagram shows the marks of 11 pupils of Class 2G and 11 pupils of Class 2H in the same test. (a) Find each class's median mark. (b) Which class did better, taken as a whole?
ShowHide solution
(a) Each class has : the median is the 6th value.
Class 2G (read outwards on the left): stem 4 has 42, 48 (1st, 2nd); stem 5 has 51, 55, 58 (3rd to 5th); the 6th is the first on stem 6, 60.
Class 2H: stem 3 has 39 (1st); stem 4 has 45 (2nd); stem 5 has 53, 57 (3rd, 4th); stem 6 has 62, 64, … (5th, 6th). The 6th is 64.
(b) Class 2H: its median, 64, is higher than Class 2G's, 60.
(a) Class 2G 60, Class 2H 64. (b) Class 2H, whose median mark is 4 marks higher.
Key Points
- The median is the middle value of the data arranged in order.
- With values, the median is at position ; that number is the position, not the median.
- If is even, the median is the mean of the two middle values, and it need not be a value of the data.
- From a dot diagram, a frequency table or a histogram, count along with a running total of the frequencies to the middle position.
- A stem-and-leaf diagram is already in order: count the leaves from the top, and read the value with the key.
- Two sets of data can be compared by their medians.
- An extreme value hardly affects the median, but can pull the mean a long way.