Grouped Data
Theory
Large data sets are sorted into classes in a grouped frequency table. This Year 11 Mathematics Advanced page covers class centres, the modal class and median class, the estimated mean from an \(f\times x\) column, histograms and frequency polygons for grouped data, and estimating the median from a cumulative frequency polygon (ogive).
When there are many different values, the data is sorted into classes such as \(20\text{–}29\) or \(20\le t\lt 30\). A grouped frequency table gives the frequency of each class. The individual values are lost, so some statistics can only be estimated.
The class centre is the midpoint of a class, the average of its lower and upper limits. It stands in for every value in that class.
The modal class is the class with the highest frequency. The median class is the class that contains the middle score (or the two middle scores); it is found from the cumulative frequencies at the end of each class. The estimated mean uses each class centre as the score in \(\dfrac{\sum fx}{\sum f}\).
On a histogram for grouped data each column spans its class, with no gaps. A frequency polygon joins points plotted at the class centres. A relative frequency histogram has the same shape, with heights \(\dfrac{f}{n}\).
A cumulative frequency polygon (or ogive) plots the cumulative frequency at the upper end of each class, starts at \(0\) at the lower end of the first class, and joins the points with straight lines. A cumulative relative frequency polygon is the same graph with a scale of \(0\) to \(100\%\).
Class centre:
For example, the centre of \(30\text{–}39\) is \(\dfrac{30+39}{2}=34.5\), and the centre of \(30\le t\lt 40\) is \(35\).
Estimated mean, with \(x\) the class centre:
Relative frequency of a class, and back again:
Median from an ogive:
How to work with grouped data
- Total the frequencies. A missing frequency is the total minus the others, or comes from an equation.
- Find class centres when you need a single value for a class: the mean estimate or a frequency polygon.
- Pick the modal class from the highest frequency (tallest column, highest point).
- Run the cumulative frequencies to locate the median class from the middle position(s).
- Read graphs carefully: column heights are frequencies (or relative frequencies \(\times n\)); on an ogive go across from \(\dfrac{n}{2}\) and down.
| Messages | Frequency |
|---|---|
| 0–9 | 7 |
| 10–19 | 12 |
| 20–29 | 15 |
| 30–39 | 10 |
| 40–49 | ? |
(ii) State the modal class and find its class centre.
(iii) What percentage of the students sent \(30\) or more messages?
(i) The frequencies add to \(50\):
| \(7+12+15+10+f\) | \(=\) | \(50\) |
| \(44+f\) | \(=\) | \(50\) |
| \(f\) | \(=\) | \(\mathbf{6}\) |
(ii) The highest frequency, \(15\), belongs to the \(\mathbf{20\text{–}29}\) class.
| \(\text{Class centre}\) | \(=\) | \(\dfrac{20+29}{2}\) |
| \(\) | \(=\) | \(\dfrac{49}{2}\) |
| \(\) | \(=\) | \(\mathbf{24.5}\) |
(iii) \(30\) or more: the \(30\text{–}39\) and \(40\text{–}49\) classes, \(10+6=16\) students.
| \(\text{Percentage}\) | \(=\) | \(\dfrac{16}{50}\times 100\%\) |
| \(\) | \(=\) | \(\mathbf{32\%}\) |
| Height (mm) | Frequency |
|---|---|
| 10–14 | 3 |
| 15–19 | 8 |
| 20–24 | 11 |
| 25–29 | 6 |
| 30–34 | 2 |
(ii) Estimate the mean height, correct to \(1\) decimal place.
Add a class centre column, a cumulative frequency column and an \(f\times x\) column:
| Height | \(x\) | \(f\) | CF | \(fx\) |
|---|---|---|---|---|
| 10–14 | 12 | 3 | 3 | 36 |
| 15–19 | 17 | 8 | 11 | 136 |
| 20–24 | 22 | 11 | 22 | 242 |
| 25–29 | 27 | 6 | 28 | 162 |
| 30–34 | 32 | 2 | 30 | 64 |
| Total | 30 | 640 |
(i) \(n=30\), so the median is between the \(15\)th and \(16\)th heights. The cumulative frequency is \(11\) at the end of \(15\text{–}19\) and \(22\) at the end of \(20\text{–}24\).
\(\therefore\) the median class is \(\mathbf{20\text{–}24}\) mm.
(ii)
| \(\bar{x}\) | \(=\) | \(\dfrac{\sum fx}{\sum f}\) |
| \(\) | \(=\) | \(\dfrac{640}{30}\) |
| \(\) | \(=\) | \(21.333\ldots\) |
| \(\) | \(\approx\) | \(\mathbf{21.3}\text{ mm}\ (1\text{ d.p.})\) |
(ii) How many runners took less than \(25\) minutes?
(iii) Which class contains the median?
Frequency \(=\) relative frequency \(\times\) total.
(i) The tallest column is \(25\le t\lt 30\), with relative frequency \(0.40\).
| \(0.40\times 80\) | \(=\) | \(\mathbf{32}\text{ runners}\) |
(ii) Less than \(25\) minutes: the first two classes.
| \(0.10+0.25\) | \(=\) | \(0.35\) |
| \(0.35\times 80\) | \(=\) | \(\mathbf{28}\text{ runners}\) |
(iii) \(n=80\): the median is between the \(40\)th and \(41\)st times. The frequencies are \(8,\ 20,\ 32,\ 12,\ 8\), so the cumulative frequencies are \(8,\ 28,\ 60,\ 72,\ 80\). The cumulative frequency is \(28\) at \(25\) minutes and \(60\) at \(30\) minutes.
\(\therefore\) the median class is \(\mathbf{25\le t\lt 30}\).
(ii) How many parcels had a mass of \(8\) kg or more?
(iii) What percentage of the parcels had a mass less than \(4\) kg?
(i) Half the total is \(\dfrac{80}{2}=40\). Go across from \(40\) to the ogive, then down. The ogive rises from \(26\) at \(4\) kg to \(54\) at \(6\) kg, and \(40\) is halfway between \(26\) and \(54\).
\(\therefore\) median \(\approx\mathbf{5}\) kg
(ii) \(68\) parcels had a mass less than \(8\) kg.
| \(80-68\) | \(=\) | \(\mathbf{12}\text{ parcels}\) |
(iii) \(26\) parcels had a mass less than \(4\) kg.
| \(\dfrac{26}{80}\times 100\%\) | \(=\) | \(\mathbf{32.5\%}\) |
Common pitfalls
Frequently asked questions
How do you find the class centre?
Add the lower and upper limits of the class and divide by 2. For the class 30 to 39 the class centre is 34.5; for 30 up to but not including 40 it is 35.
How do you estimate the mean from grouped data?
Multiply each class centre by its frequency, add these products, and divide by the total frequency. It is an estimate because every value in a class is treated as the class centre.
How do you find the median class?
Work out the position of the middle score, for example between the 15th and 16th of 30 scores, then add up the frequencies until the running total reaches that position. That class is the median class.
What is an ogive?
An ogive is a cumulative frequency polygon. Each cumulative frequency is plotted at the upper end of its class, starting from zero at the lower end of the first class, and the points are joined with straight lines.
How do you find the median from an ogive?
Go across from half the total frequency, or 50 per cent on a percentage scale, to the ogive, then straight down to the horizontal axis. The value there is an estimate of the median.