Grouped data
Goals
- Explain why and when we group data, and form classes correctly (consecutive, non-overlapping, covering all the data).
- Build a grouped frequency table and draw and read a histogram of grouped data.
- Find and use the relative frequency and the cumulative frequency of each class.
- Find the representative value (midpoint) of a class and see what information is lost by grouping.
Remember
- Grouping data means dividing them into consecutive classes that do not overlap and cover all the data, usually of equal width.
- The frequency is the number of data values in a class; the frequencies add up to the sample size .
- Relative frequency: ; they add up to .
- The cumulative frequency of a class is the sum of the frequencies from the first class up to it; it gives the number of values less than the upper boundary of the class.
- The representative value of the class is .
- Grouping loses information: we only know which class each value lies in, so many quantities can only be estimated.
Exercises
Exercise 1
The heights (in cm) of students are . Build a grouped frequency table with the classes , , , , , .
Exercise 2
Grouped heights (in cm) of a sample of size : has , has , has , has , has 5 people. Find the relative frequency and cumulative frequency of each class.
Exercise 3
Each of the following grouped tables of weights (in kg) has an error. Point out the error and correct it.
a) [40, 45), [45, 50], [50, 55), [55, 60).
b) [40, 45), [45, 50), [55, 60), [60, 65).
Exercise 4
Suppose the monthly household water use (in \text{m}^3) of 50 households is grouped as: [0, 5) has 4 households, [5, 10) has 16, [10, 15) has 18, [15, 20) has 9, [20, 25) has 3. What percentage of the households use less than 15\ \text{m}^3 a month?
Exercise 5
The heights of 40 students are grouped: [150, 155) has 4, [155, 160) has 10, [160, 165) has 14, [165, 170) has 9, [170, 175) has 3 students.
a) Write the representative value of each class.
b) Assuming that the heights in each class are spread evenly, estimate the number of students shorter than 162.5 cm.
Exercise 6
Take the journey-time table from the lesson ([0, 10): 6; [10, 20): 14; [20, 30): 12; [30, 40): 6; [40, 50): 2). Decide whether each statement is true or false.
a) The class [10, 20) has the greatest frequency.
b) The relative frequency of the class [20, 30) is 12\%.
c) Exactly 20 students take less than 20 minutes.
d) The cumulative frequency of the class [30, 40) is 38.
Exercise 7
A grouped data set of size 50 has cumulative frequencies 5, 17, 38, 46, 50 for five consecutive classes. Find the frequency of the third class.
Exercise 8 Revision
Prove that if the classes of a grouped data set all have the same width h, then their representative values form an arithmetic progression with common difference h.
Exercise 9 Challenge
A grouped frequency table has five classes [0, 10), [10, 20), [20, 30), [30, 40), [40, 50) and some cells are smudged. We know that the class [0, 10) has frequency 4, the class [20, 30) has frequency 18 and relative frequency 36\%, the class [40, 50) has frequency 3, and the cumulative frequency of the class [10, 20) is 14. Find the sample size and the frequencies of the classes [10, 20) and [30, 40).
Mini test
15 minutes, without looking back at the lesson. Part I: circle one letter; Part II: write T or F for each statement; Part III: write the answer in the box.
Part I. Multiple choice
Part II. True or false
| a) The relative frequency of the class [0, 5) is 7\%. | T / F |
| b) 15 passengers wait less than 10 minutes. | T / F |
| c) The cumulative frequency of the class [10, 15) is 23. | T / F |
| d) 5 passengers wait at least 15 minutes. | T / F |
Part III. Short answer
Score: ........ / 10
Hints (only when stuck)
What you need: every value belongs to exactly one class of the form [a, b); check that the frequencies add up to 20.
Steps:
- For each number, decide which class contains it (note that 150 belongs to [150, 155)).
- Count the frequencies and add them up as a check.
What you need: f_i=\dfrac{m_i}{n}\cdot100\%; the cumulative frequency is a running total.
Steps:
- Divide each frequency by 50 and multiply by 100\%.
- Add up the frequencies as a running total.
What you need: the classes must be consecutive, non-overlapping and without gaps.
Steps:
- Check whether the upper boundary of each class equals the lower boundary of the next.
- Look for any interval that is not covered.
What you need: the cumulative frequency of the class [10, 15) gives the number of households using less than 15\ \text{m}^3.
Steps:
- Add the frequencies of the first three classes.
- Divide by 50 and multiply by 100\%.
What you need: the representative value is the midpoint of the class; 162.5 is the midpoint of the class [160, 165).
Steps:
- Find the midpoint of each class.
- Add the classes that lie entirely below 162.5 and half of the class [160, 165).
What you need: relative frequency is \dfrac{m_i}{n}\cdot100\% with n=40; cumulative frequency is a running total.
Steps:
- a) Compare the frequencies.
- b) Find \dfrac{12}{40}.
- c), d) Add up the frequencies as a running total.
What you need: the frequency of a class is the difference of two consecutive cumulative frequencies.
Steps:
- The frequency of the third class is the third cumulative frequency minus the second.
What you need: class i is [a_i, a_i+h) and the next class starts at a_{i+1}=a_i+h; from the lesson on arithmetic progressions, a sequence with constant consecutive differences is an arithmetic progression.
Steps:
- Write the representative values c_i and c_{i+1}.
- Find c_{i+1}-c_i.
What you need: f_i=\dfrac{m_i}{n}\cdot100\% lets us find n; the cumulative frequency, and the fact that the frequencies add up to n.
Steps:
- From \dfrac{18}{n}=36\% find n.
- Find the frequency of [10, 20) from the cumulative frequency 14.
- Find the frequency of [30, 40) from the total n.
Self-check
| # | Did it alone | Needed a hint | Not yet |
|---|---|---|---|
| 1 | ☐ | ☐ | ☐ |
| 2 | ☐ | ☐ | ☐ |
| 3 | ☐ | ☐ | ☐ |
| 4 | ☐ | ☐ | ☐ |
| 5 | ☐ | ☐ | ☐ |
| 6 | ☐ | ☐ | ☐ |
| 7 | ☐ | ☐ | ☐ |
| 8 | ☐ | ☐ | ☐ |
| 9 | ☐ | ☐ | ☐ |
Redo the ones you missed after: ☐ 1 day ☐ 3 days ☐ 7 days
Scan for step-by-step solutions