Lesson 7 of 8 · 20 min
Range, interquartile range and standard deviation
Measure how spread out a data set is with the range, the quartiles and interquartile range, and the sample standard deviation found with technology.
What you will be able to do
- Calculate the range of a data set.
- Find the quartiles and and the interquartile range, for odd and even .
- Use a calculator to find the sample standard deviation , and interpret it.
Two bus routes are each late by 4 minutes on average, and both have a median of 4 minutes late. Would you rely on them equally? Compare their dot plots.
Both routes have a mean and median of 4 minutes late. Which route would you rather catch to an exam?
Route A is almost always 2 to 6 minutes late. Route B is all over the place: sometimes on time, sometimes 8 minutes late. The centres match but the spread doesn't. A measure of spread says how far the data is scattered, and you'll use three of them.
Definition
Range
The range is the largest value minus the smallest:
For Route A it is minutes. For Route B it is minutes.
The range is quick, but it depends on only the two most extreme values, so one unusual day changes it completely. The next two measures use more of the data.
Quartiles split the ordered data into four parts with equal numbers of values. The lower quartile has a quarter of the data below it, the median is in the middle, and the upper quartile has a quarter of the data above it. The interquartile range, , is the spread of the middle half of the data, so extreme values can't distort it.
Finding the quartiles and the IQR
Order the data and find the median
The median is at position .
Split the data into halves
The lower half is the values below the median and the upper half is the values above it. If is odd, leave the median itself out of both halves.
Find the quartiles
is the median of the lower half. is the median of the upper half.
Subtract
.
Ten trains were late by these numbers of minutes: 0, 1, 1, 2, 3, 4, 4, 6, 8, 11. With , the median is at position 5.5, so it is minutes. The halves are the first five and the last five values:
So , and minutes: the middle half of the trains were between 1 and 6 minutes late.
Find the interquartile range of the data 1, 3, 4, 6, 7, 9, 12.
Worked example
Find the quartiles and IQR when n is odd
The distances, in kilometres, that 13 members of a running club ran last week were:
25, 18, 40, 12, 30, 21, 52, 28, 15, 35, 20, 32, 24
Find the median, the quartiles, the range and the interquartile range.
Step 1: Order the data
12, 15, 18, 20, 21, 24, 25, 28, 30, 32, 35, 40, 52, with .
Step 2: Find the median
Position , so the median is the 7th value: 25 km.
Step 3: Split into halves, leaving out the median
With odd, the median is one of the data values, and it belongs to neither half.
Step 4: Find the quartiles
is the median of the lower half: km. is the median of the upper half: km.
Step 5: Find the range and IQR
Range km. km.
Try it yourself first, then check the working one step at a time.
Answer
Median 25 km, km, km, range 40 km and IQR 14.5 km.
Method
Order the data and find the median.
Split into lower and upper halves, leaving out the median when is odd.
and are the medians of the halves, and .
Watch out for
Including the median in both halves, which gives and .
Forgetting to order the data first.
Common mistake
Quartile traps
- Keeping the median in both halves when is odd. Leave it out.
- Unordered data. Order first, every time.
- Stopping at the quartiles. If the question asks for the IQR, subtract: .
- Positions for values. is a data value (or the mean of two), not a position.
Note
Other quartile methods
Spreadsheet functions such as QUARTILE.INC use a different rule and can give slightly different quartiles. Use the median-of-halves method shown here, and write the halves in your working.
The range and the IQR each use just two values. The standard deviation uses every value: it measures how far the data values typically are from the mean. Values packed closely around the mean give a small standard deviation; widely scattered values give a large one. For the buses, minutes for Route A and minutes for Route B.
Definition
Sample standard deviation
The sample standard deviation, , is roughly the typical distance of the data values from the mean, in the same units as the data. A larger means more spread, and only when every value is the same. In General Mathematics you find with technology only.
Where the standard deviation comes from
For the data 2, 4, 4, 6, the mean is .
| 2 | 4 | |
| 4 | 0 | 0 |
| 4 | 0 | 0 |
| 6 | 2 | 4 |
| Sum | 8 |
Square each distance from the mean (so the negatives don't cancel the positives), add them, divide by , then take the square root to get back to the units of the data:
You won't calculate this way in an exam, but it shows what the number means: a typical distance from the mean, here about 1.6.
Standard deviation on a scientific calculator
Choose statistics mode
Select single-variable statistics (often STAT, then 1-VAR).
Enter the data
Type each value into the column. For a frequency table, turn on the frequency column and enter each value with its frequency.
Read the results
Open the statistics results (often under VAR or 1-Var Stats) and read and .
Check n
Make sure matches the number of data values, so no value was missed or entered twice.
Common mistake
σx or sx?
Your calculator shows two standard deviations: (sometimes labelled ), the population standard deviation, and (sometimes ), the sample standard deviation. The syllabus uses . It is slightly larger than (they are equal only when every value is the same and both are 0), which is how you can tell them apart.
Worked example
Find the mean and standard deviation with a calculator
The times, in seconds, of eight swimmers in a 50 m freestyle heat at a Brisbane swimming carnival were:
28.6, 30.2, 27.4, 29.0, 31.6, 28.1, 30.8, 29.3
Use technology to find the mean and the standard deviation of the times, correct to two decimal places, and interpret the standard deviation.
Step 1: Enter the data
In single-variable statistics mode, enter the eight times in the column. Check that .
Step 2: Read the mean
s.
Step 3: Read the sample standard deviation
The calculator shows and . Use , so s.
The syllabus uses the sample standard deviation , which is slightly larger than .
Step 4: Interpret it
A typical swimmer's time was about 1.4 seconds away from the mean of about 29.4 seconds.
Try it yourself first, then check the working one step at a time.
Answer
s and s. The times typically differ from the mean by about 1.4 seconds.
Method
Enter the data in single-variable statistics mode and check .
Read and , not .
Round at the end, and interpret in context with units.
Watch out for
Reporting instead of .
Missing a value when entering the data. Always check .
Use technology to find the standard deviation of the data 12, 15, 11, 18, 14. Give your answer correct to two decimal places.
A data set has a standard deviation of . What must be true?
Summary
Range maximum minimum. It is quick, but depends only on the two extremes.
and are the medians of the lower and upper halves of the ordered data. Leave the median out of the halves when is odd.
is the spread of the middle 50% of the data.
The sample standard deviation is a typical distance from the mean. Find it with technology and read , not .
A larger range, IQR or standard deviation means more spread. All three are in the units of the data.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.