Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Probability and Data

Grouped Data

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

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\%\).

Grouped frequency histogram and frequency polygonHeights of 40 plants in classes 10 to under 20 cm up to 50 to under 60 cm, with frequencies 4, 9, 14, 8 and 5. The frequency polygon joins the midpoints of the column tops at the class centres 15, 25, 35, 45 and 55, and is closed off on the axis at 5 and 65. 0 2 4 6 8 10 12 14 16 0 10 20 30 40 50 60 70 Height (cm) Frequency
For grouped data each column spans its class. The frequency polygon joins the midpoints of the column tops (the class centres) and is closed off at the centre of an empty class on each side.
Ogive with the median read offCumulative frequency polygon for the same 40 plants: 0 at 10 cm, then 4, 13, 27, 35 and 40 at 20, 30, 40, 50 and 60 cm. A dashed line goes across from 20 on the cumulative frequency axis to the ogive and down to 35 cm, the estimated median. A second axis on the right shows the same scale as a percentage. 0 5 10 15 20 25 30 35 40 10 20 30 40 50 60 0% 25% 50% 75% 100% Cumulative % Height (cm) Cumulative frequency ≈ 35 4 13 27 35
The ogive plots each cumulative frequency at the upper end of its class, starting from \(0\) at \(10\) cm. Across from \(\dfrac{40}{2}=20\) and down gives median \(\approx 35\) cm.

Class centre:

\[\text{class centre}=\dfrac{\text{lower limit}+\text{upper limit}}{2}\]
class centre equals lower limit plus upper limit over 2

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:

\[\bar{x}=\dfrac{\sum fx}{\sum f}\]
estimated mean equals sum of f x over sum of f, with x the class centre

Relative frequency of a class, and back again:

\[\text{relative frequency}=\dfrac{f}{n}\qquad\qquad f=\text{relative frequency}\times n\]
relative frequency equals f over n, and f equals relative frequency times n

Median from an ogive:

\[\text{read across from }\dfrac{n}{2}\ \text{(or }50\%\text{), then down}\]
read across from n over 2 or 50 per cent, then down
Between two plotted points the ogive is a straight line. If \(\dfrac{n}{2}\) is halfway between two cumulative frequencies, the median estimate is halfway between the two class ends where they are plotted.

How to work with grouped data

  1. Total the frequencies. A missing frequency is the total minus the others, or comes from an equation.
  2. Find class centres when you need a single value for a class: the mean estimate or a frequency polygon.
  3. Pick the modal class from the highest frequency (tallest column, highest point).
  4. Run the cumulative frequencies to locate the median class from the middle position(s).
  5. Read graphs carefully: column heights are frequencies (or relative frequencies \(\times n\)); on an ogive go across from \(\dfrac{n}{2}\) and down.
Example 1 — Missing frequency and class centre
The table shows the number of text messages sent in one day by \(50\) students. One frequency is missing.
MessagesFrequency
0–97
10–1912
20–2915
30–3910
40–49?
(i) Find the missing frequency.
(ii) State the modal class and find its class centre.
(iii) What percentage of the students sent \(30\) or more messages?
Solution

(i) The frequencies add to \(50\):

\(7+12+15+10+f\)\(=\)\(50\)
\(44+f\)\(=\)\(50\)
\(f\)\(=\)\(\mathbf{6}\)
44 plus f equals 50, so f equals 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}\)
class centre equals 20 plus 29 over 2 equals 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\%}\)
16 over 50 times 100 per cent equals 32 per cent
Example 2 — Median class and estimated mean
The heights, in mm, of \(30\) seedlings are shown.
Height (mm)Frequency
10–143
15–198
20–2411
25–296
30–342
(i) Which class contains the median?
(ii) Estimate the mean height, correct to \(1\) decimal place.
Solution

Add a class centre column, a cumulative frequency column and an \(f\times x\) column:

Height\(x\)\(f\)CF\(fx\)
10–14123336
15–1917811136
20–24221122242
25–2927628162
30–343223064
Total30640

(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.})\)
estimated mean equals 640 over 30, about 21.3 mm
Example 3 — Relative frequency histogram
The relative frequency histogram shows the times taken by \(80\) runners to finish a race, in the classes \(15\le t\lt 20\), \(20\le t\lt 25\), and so on.
Relative frequency histogram of race timesRelative frequency histogram of the times of 80 runners in classes 15 to under 20 minutes up to 35 to under 40 minutes. The relative frequencies are 0.10, 0.25, 0.40, 0.15 and 0.10. 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 15 20 25 30 35 40 Time (minutes) Relative frequency
(i) How many runners are in the modal class?
(ii) How many runners took less than \(25\) minutes?
(iii) Which class contains the median?
Solution

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}\)
0.40 times 80 equals 32

(ii) Less than \(25\) minutes: the first two classes.

\(0.10+0.25\)\(=\)\(0.35\)
\(0.35\times 80\)\(=\)\(\mathbf{28}\text{ runners}\)
0.35 times 80 equals 28

(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}\).

Example 4 — Median from an ogive
The masses of \(80\) parcels were grouped into the classes \(0\le m\lt 2\), \(2\le m\lt 4\), and so on. The ogive shows the data.
Ogive of parcel massesCumulative frequency polygon of the masses of 80 parcels, plotted at 0, 2, 4, 6, 8 and 10 kg with cumulative frequencies 0, 4, 26, 54, 68 and 80. 0 10 20 30 40 50 60 70 80 0 2 4 6 8 10 Mass (kg) Cumulative frequency 4 26 54 68 80
(i) Use the graph to estimate the median mass.
(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?
Solution

(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}\)
80 minus 68 equals 12

(iii) \(26\) parcels had a mass less than \(4\) kg.

\(\dfrac{26}{80}\times 100\%\)\(=\)\(\mathbf{32.5\%}\)
26 over 80 times 100 per cent equals 32.5 per cent

Common pitfalls

The modal class is a class, not a frequency. If the highest frequency is \(15\) in the \(20\text{–}29\) class, the answer is \(20\text{–}29\), not \(15\).
The median class is not the middle row. Find the middle position from \(n\), then use the cumulative frequencies to see which class contains it.
Multiply by the class centre. In the \(f\times x\) column, \(x\) is the class centre, not the lower or upper limit. The answer is only an estimate of the mean.
Plot an ogive at the upper end of each class. The cumulative frequency of \(10\le t\lt 20\) belongs at \(20\), and the ogive starts at \(0\) at the lower end of the first class. A frequency polygon, by contrast, uses the class centres.

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.