Skip to content
Study Hall
Lesson 2 of 4Data and Mathematical Modelling
Unit 6 · Lesson 2 of 4

Measures of Centre, Spread and Box Plots

Summarize a list of numbers with its centre (mean, median, mode) and its spread (range, quartiles, interquartile range). Learn the quartile method used in this course, how to test for outliers with the 1.5 times IQR rule, and how to draw and read a box plot.

8 min read6 quick checks12 practice questionsInteractiveAsk AI about this →

Key things to remember

  1. 1Mean ; median = middle of the sorted list; mode = most frequent value.
  2. 2Range = greatest value − least value. .
  3. 3Quartile method: and are the medians of the lower and upper halves; when is odd, leave the median out of both halves.
  4. 4Outlier fences: lower , upper . Values outside the fences are outliers.
  5. 5Box plot: box from to , line at the median, whiskers to the least and greatest non-outliers, outliers as dots.

Imagine you are choosing a player for the last spot on a basketball team. One player scored these points in 11 games (invented data): 12, 15, 9, 18, 15, 22, 14, 11, 15, 20, 38. Is this a 17-point player? A 15-point player? How consistent are they? A list of numbers is hard to judge at a glance, so we summarize it with two kinds of numbers. A measure of centre answers "what is a typical value?" A measure of spread answers "how far apart are the values?" You need both: two players can have the same typical score while one is steady and the other is all over the place. This kind of data, one number per game, is called one-variable data because only one quantity (points) is measured for each game.

Measures of centre: mean, median, mode

The mean is the "fair share" value: add all the values and divide by how many there are. The median is the middle value once the data is sorted from least to greatest; if there is an even number of values, it is the mean of the two middle values. The mode is the value that occurs most often; a data set can have one mode, several modes, or no mode if no value repeats. For the player's points, the sorted list is 9, 11, 12, 14, 15, 15, 15, 18, 20, 22, 38. There are values, so the median is the 6th value, . The value 15 appears three times, more than any other, so the mode is also .

Why is the mean (about 17.2) bigger than the median (15)? Because of the single 38-point game. The mean uses the size of every value, so one very large value pulls it up. The median only cares about position, so it barely notices. If you drop the 38 and recalculate, the mean becomes while the median stays . That is why the median is usually the better "typical value" when a data set has an extreme value, and why news reports about house prices and incomes often give the median.

All 11 games510152025303540median = 15mode = 15mean ≈ 17.2 (balance point)The same games without the 38510152025303540median = 15mode = 15mean = 15.1 (balance point)one 38-point gamepulls the mean up
Fig 1Dot plots of the basketball points. With all 11 games, the median and mode are 15 and the mean, drawn as the balance point under the number line, is about 17.2. Without the 38, the median stays 15 and the mean drops to 15.1.
MeasureHow to find itPoints dataBest used when
MeanAdd all values, divide by n189 ÷ 11 ≈ 17.2Data has no extreme values
MedianMiddle of the sorted list (mean of the two middle values if n is even)15Data has extreme values or is lopsided
ModeMost frequent value15Data is categories (favourite colour) or you want the most common value
The three measures of centre, using the invented basketball points data.
Quick checkTry it before you read on
1
Find the mean of 3, 5, 6, 10.
Quick checkTry it before you read on
2
For the data 4, 5, 5, 6, 30, which statement is true?
VideoAn Ontario teacher finds the mean, median and mode of data sets and discusses which measure best describes the centre.Watch on YouTube

Measures of spread: range, quartiles and IQR

The range is the greatest value minus the least value: points. It is quick, but it depends only on the two most extreme values, so one unusual game changes it a lot. A sturdier measure uses quartiles, three values that split the sorted data into four parts with roughly a quarter of the data in each. The second quartile is the median. The first quartile is the median of the lower half, and the third quartile is the median of the upper half. The interquartile range is , the spread of the middle half of the data.

The quartile method used in this course
Sort the data. Find the median. Split the list into a lower half and an upper half. If is odd, leave the median out of both halves; if is even, the list splits exactly in two. Then is the median of the lower half and is the median of the upper half. Spreadsheets and some calculators use other methods (some include the median in both halves, others interpolate), so their quartiles can differ slightly from this method's.
n = 11 (odd): leave the median out of both halves911121415151518202238lower half: Q1 = 12upper half: Q3 = 20median 15left outIQR = 20 − 12 = 8n = 10 (even): the list splits exactly in two8121515182022253055lower half: Q1 = 15upper half: Q3 = 25median = (18 + 20) ÷ 2 = 19IQR = 25 − 15 = 10
Fig 2Quartiles found by splitting the sorted list. Top: the 11 basketball scores, where the median 15 is left out and the halves give Q1 = 12 and Q3 = 20. Bottom: the 10 commute times from the worked example, which split exactly between 18 and 20 (median 19) and give Q1 = 15 and Q3 = 25.
Quick checkTry it before you read on
1
Find the range of 7, 15, 3, 22, 10.
Quick checkTry it before you read on
2
Using this course's method, find Q3 for the sorted data 2, 4, 5, 7, 8, 10, 12.

Outliers and box plots

An outlier is a value far away from the rest of the data. To decide in a consistent way, this course uses the 1.5 × IQR rule: build two fences, and any value outside them is an outlier. The lower fence is and the upper fence is . For the points data, , so the fences are and . The 38-point game is above 32, so it is an outlier; every other game is inside the fences. An outlier is not automatically a mistake: it might be a typing error, or it might be a real and important game. Check before you delete anything. A box plot (box-and-whisker plot) draws the summary on a number line. The box runs from to with a line at the median, so the box holds the middle half of the data. The whiskers run out to the least and greatest values that are not outliers, and each outlier is drawn as a separate dot. A box plot built from the five values minimum, , median, , maximum is the five-number summary made visible.

Fences: 12 − 1.5 × 8 = 0 and 20 + 1.5 × 8 = 32Q1 = 12Q3 = 20median = 15outlier 38least 9greatest non-outlier = 22lower fenceupper fenceIQR = 20 − 12 = 80510152025303540points scored in a game (invented data)
Fig 3Box plot of the basketball points data on a number line from 0 to 40: whiskers at 9 and 22, box from Q1 = 12 to Q3 = 20 with the median at 15, the IQR of 8 marked under the box, the outlier 38 drawn as a separate dot, dashed fences at 0 and 32, and small dots for all 11 data values above the number line.
Loading interactive…
Enter or drag data values and watch the mean, median, quartiles and box plot update.
AMean and range
  • Use every value
  • Pulled strongly by outliers
  • Good for balanced data with no extreme values
BMedian and IQR
  • Use positions in the sorted list
  • Change little when an outlier is added
  • Good for lopsided data or data with outliers
Reading a box plot quickly
A long box means the middle half of the data is spread out; a short box means it is bunched together. If the median line sits closer to one end of the box, or one whisker is much longer than the other, the data is lopsided (skewed) in the direction of the longer piece.
Quick checkTry it before you read on
1
A data set has Q1 = 20 and Q3 = 30. What is the lower fence for outliers?
Quick checkTry it before you read on
2
A data set has one value above the upper fence. Where does the right whisker of its box plot end?
VideoKhan Academy finds the median and quartiles of a sorted list and draws the box plot from them.Watch on YouTube

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
(Invented data.) A player's points in 11 games: 12, 15, 9, 18, 15, 22, 14, 11, 15, 20, 38. Find the five-number summary, the IQR, and any outliers.
Example 2
(Invented data.) Ten people's commute times in minutes: 8, 12, 15, 15, 18, 20, 22, 25, 30, 55. Find the mean, median, , and IQR, and test 55 for being an outlier.
Example 3
(Invented data.) Battery life in hours for 9 phones of each of two brands. Brand P: 9, 10, 10, 11, 11, 12, 12, 13, 14. Brand Q: 6, 8, 9, 11, 12, 14, 15, 16, 17. Compare the medians and IQRs. Which brand is more consistent?
Example 4
The mean of five quiz marks is 78. Four of the marks are 72, 85, 80 and 70. What is the fifth mark?

Where marks get lost

  • Finding the median without sorting the data first. The middle of an unsorted list means nothing.
  • Including the median in both halves when n is odd, which gives different quartiles from this course's method. Leave it out when n is odd.
  • Drawing the whisker all the way to an outlier. The whisker stops at the greatest (or least) value that is not an outlier; the outlier is a separate dot.
  • Calling a value an outlier because it looks big, without computing the fences. Use Q1 − 1.5 × IQR and Q3 + 1.5 × IQR.
  • Thinking a longer whisker or box section means more data values. Each of the four sections holds roughly a quarter of the data; a longer section means those values are more spread out.

Flashcards 9

Mean
Median
Mode
Range
+ 5 more

Practice

1
Find the mean of 4, 7, 7, 9, 13.
2
Find the median of 3, 8, 5, 12, 10, 6.
3
Using this course's method, find the first quartile Q1 of: 21, 25, 18, 30, 27, 24, 19, 35, 22.
4
For the same data (21, 25, 18, 30, 27, 24, 19, 35, 22), find the interquartile range.
5
A data set has Q1 = 46 and Q3 = 54. What is the upper fence for outliers?
6
Data: 42, 45, 47, 48, 50, 51, 53, 55, 80. Q1 = 46, Q3 = 54. Which values are outliers?
7
(Invented data.) The ages of 10 people at a youth club event are 14, 14, 15, 15, 15, 16, 16, 17, 18, 45 (the 45 is the club leader). Which number best describes a typical age?
8
About what fraction of the data in a box plot lies inside the box?
9
Put the steps for drawing a box plot in order.
  1. 1Draw the box, median line, whiskers and outlier dots on a number line
  2. 2Compute the IQR and the fences to find any outliers
  3. 3Find Q1 and Q3 as the medians of the lower and upper halves
  4. 4Sort the data from least to greatest
  5. 5Find the median
10
Match each term to its meaning.
Median
Mode
Range
Interquartile range
11
Which measure of centre is the value that occurs most often?
12
A very large value is added to a data set. What usually happens?

Spot a mistake on this page? Let us know