Range and interquartile range of grouped data
🖨 Print a self-study sheet Why print?
A school surveyed how long students in classes 12A and 12B take to travel from home to school, students in each class. The results were grouped as follows.
| Time (minutes) | |||||
|---|---|---|---|---|---|
| Class 12A | |||||
| Class 12B |
In both classes the times stretch from to minutes. So which class has the more even travel times, and which number measures that?
In grade 10 we measured the spread of raw data. This lesson does the same when we only have a grouped table.
The range of grouped data
Exploring: what do we know about the largest and smallest values?
From the table for class 12A we do not know each student's exact time. We only know that the quickest student is in the class and the slowest is in the class . So the difference between those two values is at most minutes. We take the number as the range of the grouped data.
In this lesson, grouped data have classes , , …, with frequencies , , …, and sample size . We assume that the first and last classes have non-zero frequency.
For both classes, minutes. The range cannot tell the two classes apart, because it depends only on the two classes at the ends. We need a measure that looks at the middle of the data.
The interquartile range
In grade 11 we found the quartiles of grouped data by "spreading out" the values evenly inside the class that contains them. Recall: the first quartile is at position , the third quartile at position .
The fraction tells us how far into the class position lies. For example, if the class holds values and we need more of them, then is in the middle of the class.
The first example finds all these measures for class 12A.
Doing the same for class 12B answers the opening question.
When is not a whole number, the formula is used in the same way. The class width need not be either.
Measures of grouped data are approximations
Grouping loses information about the individual values. The next example compares the measures from the raw data with those from the grouped table.
Key terms
Summary
- Grouped data , …, , frequencies , …, , sample size .
- (right end of the last class minus left end of the first class).
- , where class is the first class with cumulative frequency and is the cumulative frequency of the classes before it; : replace by .
- : the width of the middle half of the data; smaller means more even.
- These are approximate values; is less affected by the two end classes than .
Practice
Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.
The masses (g) of apples are given in the table. Find , , and .
| Mass (g) | |||||
|---|---|---|---|---|---|
| Apples |
What you need: ; the formulas for , of grouped data.
Steps:
- Write the cumulative frequencies.
- Find the classes containing position and position .
- Substitute into the formula.
Show solution
Cumulative frequencies: , , , , ; .
Answer. g, , , g.
The daily reading times (minutes) of students are given in the table. Find , and (to two decimal places).
| Time (minutes) | |||||
|---|---|---|---|---|---|
| Students |
What you need: the position of is and that of is ; the class width is .
Steps:
- Cumulative frequencies: , , , , .
- Choose the class for each position and substitute into the formula.
Show solution
Answer. ; ; minutes.
A shop tests the battery life (hours) of phones of each of two models X and Y.
| Battery life (hours) | |||||
|---|---|---|---|---|---|
| Model X | |||||
| Model Y |
Find the interquartile range of each model. If a customer wants a steady battery life, which model should they choose?
What you need: a smaller means the middle of the data is more concentrated.
Steps:
- Positions and ; write the cumulative frequencies for each model.
- Find , and for each model and compare.
Show solution
Model X (cumulative , , , , ): Model Y (cumulative , , , , ): Both models have the same hours, but the of X is much smaller.
Answer. hours (X) and hours (Y); choose model X.
The weekly hours of exercise of students are given in the table.
| Hours | |||||
|---|---|---|---|---|---|
| Students |
Is each claim true or false?
a) The range of the data is .
b) The first quartile lies in the class .
c) .
d) The interquartile range is greater than .
What you need: ; the class containing is the first class with cumulative frequency .
Steps:
- Cumulative frequencies: , , , , ; , .
- Find , and .
Show solution
a) True. .
b) True. , and .
c) True. , so .
d) False. .
Answer. a) True; b) True; c) True; d) False.
The masses (kg) of students are given in the table. Find the interquartile range (in kg, to two decimal places).
| Mass (kg) | |||||
|---|---|---|---|---|---|
| Students |
What you need: the formulas for , ; the class width is .
Steps:
- Cumulative frequencies: , , , , .
- Position lies in , position in .
Show solution
Answer. .
(Revisiting the median of grouped data, grade 11.) For the table of apple masses in Exercise 1, find the median and check that .
What you need: is found like but at position .
Steps:
- ; cumulative frequencies , , , …
- The class containing is , with , .
Show solution
Since , we have .
Answer. g.
(Revisiting Measures of dispersion.) Consider the raw data .
a) Find and of the raw data.
b) Group them into the three classes , , and find and of the grouped data.
What you need: with even, each half has values (grade 10); the formulas for grouped data.
Steps:
- a) is the median of the first values, the median of the last .
- b) Count the frequency of each class; positions and .
Show solution
a) ; , , .
b) Frequencies , , (cumulative , , ), .
Answer. a) , ; b) , . Here is a very good approximation, while is larger than the true value.
For class 12A (Example 1) we have and minutes. A new student who joins the class takes minutes to get to school. By the rule, is this time an outlier?
What you need: a value is an outlier if it is greater than or less than .
Steps:
- Compute and .
- Compute the upper limit and compare it with .
Show solution
and . The upper limit is
Answer. Yes, minutes is an outlier for this class.
Grouped data have the following frequency table, where is an unknown positive integer.
| Class | ||||
|---|---|---|---|---|
| Frequency |
We know that and that lies in the class . Find .
What you need: ; .
Steps:
- Write in terms of with , , , .
- Solve the equation, then check the condition for choosing the class.
Show solution
Check. , and , so does lie in : .
Answer. .
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
The times (minutes) that passengers waited for a bus are given in the table. The range of these grouped data is
| Time (minutes) | |||||
|---|---|---|---|---|---|
| Passengers |
. Option B uses the left end of the last class, option A is the width of one class, and option D is the difference of two frequencies, .
The cumulative frequencies are , , , , , and lies between and , so is in the class (in fact ). Option A is the class with the largest frequency; options C and D are classes that come after the 30th value.
lies in the class with , : . Option B forgets to multiply by the width , option C includes the quartile's own class in , and option A uses the class by mistake.
An outlier lies further from the middle of the data than times the interquartile range. Option B would make half of the data outliers; option D describes the values that are not outliers.
Part II. True or false
The m running times (seconds) of students are given in the table.
| Time (seconds) | |||||
|---|---|---|---|---|---|
| Students |
| a) The range of the data is seconds. | ||
| b) . | ||
| c) The third quartile lies in the class . | ||
| d) By the rule, a time of seconds is an outlier. |
a) True: . b) True: the cumulative frequencies are , , , , , and . c) False: lies between and , so is in the class : . d) True: and .
Part III. Short answer
The monthly electricity use (kWh) of households is given in the table. Find the interquartile range of the data, giving your answer to 1 decimal place.
| Electricity use (kWh) | |||||
|---|---|---|---|---|---|
| Households |
The cumulative frequencies are , , , , . and , so kWh.
The upper limit is , which rounds to kWh.
Show answers and explanations
- Part I, question 1: C. . Option B uses the left end of the last class, option A is the width of one class, and option D is the difference of two frequencies, .
- Part I, question 2: B. The cumulative frequencies are , , , , , and lies between and , so is in the class (in fact ). Option A is the class with the largest frequency; options C and D are classes that come after the 30th value.
- Part I, question 3: D. lies in the class with , : . Option B forgets to multiply by the width , option C includes the quartile's own class in , and option A uses the class by mistake.
- Part I, question 4: A. An outlier lies further from the middle of the data than times the interquartile range. Option B would make half of the data outliers; option D describes the values that are not outliers.
- Part II, question 1: a) True; b) True; c) False; d) True. a) True: . b) True: the cumulative frequencies are , , , , , and . c) False: lies between and , so is in the class : . d) True: and .
- Part III, question 1: 82.5. The cumulative frequencies are , , , , . and , so kWh.
- Part III, question 2: 336. The upper limit is , which rounds to kWh.