13C

Grouped data

Grouping continuous and discrete data into classes, class centres, histograms and polygons for grouped data, and estimating the median from a cumulative frequency polygon.

Measure the heights of thirty students and you may get thirty different numbers. A frequency table with every frequency equal to $1$ shows nothing. Grouping the values into classes reveals the shape of the data, at the cost of losing the exact values.

Classes and class centres

Split the range into classes of equal width. The class centre is the midpoint of the class, and it stands in for every value in that class. The modal class is the class with the highest frequency.

Heights of $30$ students, in cm:

Height (cm)150–155155–160160–165165–170170–175
Class centre152.5157.5162.5167.5172.5
Frequency461172
Cumulative frequency410212830
Example 1●●

For the height table, find (a) the modal class (b) an estimate of the probability that a randomly chosen student is taller than $165$ cm.

(a) The modal class is 160–165, with class centre $162.5$.
The highest frequency is 11.
(b) $P(h \gt 165) \approx \dfrac{30 - 21}{30} = \dfrac{9}{30} = 0.3$
Cumulative frequency at 165 is 21, so 21 students are 165 cm or shorter. The rest are taller.

Discrete data with many values can be grouped too, for example test scores in classes 0–4, 5–9, 10–14. The class centre of 5–9 is $\dfrac{5 + 9}{2} = 7$.

Estimating the median from the polygon

For grouped continuous data, plot each cumulative frequency at the upper boundary of its class, because that is the height up to which it counts. Start at $0$ on the lower boundary of the first class and join the points with straight lines. A straight segment assumes the values in each class are spread evenly across it.

Then draw a horizontal line at $\dfrac{n}{2}$ and read the median estimate off the horizontal axis where it meets the polygon.

Cumulative frequency polygon

Each segment rises by the class frequency across the width of its class. The dashed line is the level you read across from.

Try this

Try this: set $k = 15$, half of $30$, and read off the median estimate. Then find the value of $k$ that gives a reading of exactly $165$ cm. What does that number of students tell you?

Example 2●●●

Estimate the median height without the graph.

The median lies in 160–165.
Half of 30 is 15. The cumulative frequency is 10 at 160 and 21 at 165, so the 15th student is in the class 160–165.
Median $\approx 160 + \dfrac{5}{11} \times 5 \approx 162.3$ cm
We need 15 − 10 = 5 more students out of the 11 in this class. Go that fraction of the way across the 5 cm class.

Your turn

Travel times to school for $20$ students, in minutes: 0–10, $5$ students; 10–20, $9$; 20–30, $4$; 30–40, $2$. Estimate the median travel time.

Show the working

Cumulative frequencies at the upper boundaries: $5, 14, 18, 20$. Half of $20$ is $10$, which lies in 10–20 (from $5$ to $14$). We need $10 - 5 = 5$ of its $9$ students, so median $\approx 10 + \dfrac59 \times 10 \approx 15.6$ minutes.

Flashcards
Class centre
The midpoint of the class: the average of its boundaries.
Value on a boundary
Goes in the lower class.
Grouped ogive points
Cumulative frequency plotted at each upper boundary.
Practice
  1. Parcel masses (kg) are grouped as 0–2, 2–4, 4–6, 6–8, 8–10, with frequencies $6, 14, 12, 5, 3$. Find the class centre of 4–6.

  2. The modal class of the parcel data is:

  3. A parcel has a mass of exactly $4$ kg. It is counted in:

  4. How many parcels have a mass of at most $6$ kg?

  5. Find the relative frequency of the class 6–8.

  6. Estimate the probability that a parcel has a mass greater than $4$ kg.

  7. Why is a median found from grouped data only an estimate?

  8. Test scores are grouped into classes 0–4, 5–9, 10–14, 15–19. Find the class centre of 10–14.

  9. Exam style: estimate the median mass of the parcels.

  10. Exam style: use the cumulative frequency polygon to estimate how many parcels have a mass greater than $5$ kg.

Formula sheet