πŸ“Ά Histograms and Cumulative Frequency

GCSE Maths Β· Statistics (S3)

Ages 15–16 Β· Foundation & Higher

← Back to topic overview
1 Grouped Data and Class Intervals

Continuous data β€” heights, times, masses β€” take too many different values to list individually, so they are collected into class intervals.

Class intervals are written with inequalities so that every value belongs to exactly one class:
$20 \leq t \lt 25$ means "$20$ or more, but less than $25$".
A time of exactly $25$ goes in the next class, not this one.
Class width
$\text{class width} = \text{upper boundary} - \text{lower boundary}$
ClassWidthMidpoint
$0 \leq t \lt 10$$10$$5$
$10 \leq t \lt 20$$10$$15$
$20 \leq t \lt 40$$20$$30$
$40 \leq t \lt 70$$30$$55$
Grouped data loses information. Once values are grouped you no longer know the individual figures, so anything you calculate from a grouped table is an estimate.
2 Histograms
The two histogram facts
Height $=$ frequency density $= \dfrac{\text{frequency}}{\text{class width}}$

Area of each bar $=$ frequency
In a bar chart the height tells you the frequency. In a histogram the area does. This is what allows histograms to handle classes of different widths fairly.
Histogram bars touch. The horizontal axis is a continuous number line, so there are no gaps β€” unlike a bar chart.
01020 4070 012 34 Frequency density Time (minutes) Wider classes have lower bars β€” but the areas still show the frequencies
Worked Example 1 β€” Drawing a histogram

Complete the table and describe how to draw the histogram.

Time $t$ (min)FrequencyClass widthFrequency density
$0 \leq t \lt 10$$10$$10$$1$
$10 \leq t \lt 20$$30$$10$$3$
$20 \leq t \lt 40$$40$$20$$2$
$40 \leq t \lt 70$$30$$30$$1$
β‘ Class width $=$ upper $-$ lower for each row.
β‘‘Frequency density $=$ frequency $\div$ width, e.g. $40 \div 20 = 2$.
β‘’Draw bars from $0$ to $10$ at height $1$, from $10$ to $20$ at height $3$, and so on.

Note that the class $20$–$40$ has the largest frequency ($40$) but not the tallest bar β€” because it is twice as wide.

Worked Example 2 β€” Reading a histogram

A histogram bar spans $15 \leq x \lt 35$ with height $4.5$. How many values are in that class?

β‘ Class width $= 35 - 15 = 20$
β‘‘Frequency $=$ density $\times$ width $= 4.5 \times 20$
β‘’$= 90$ values
Worked Example 3 β€” Part of a class

A histogram bar covers $20 \leq x \lt 40$ with frequency density $3$. Estimate how many values lie between $25$ and $40$.

β‘ The portion we want is $40 - 25 = 15$ units wide.
β‘‘Frequency $= 3 \times 15 = 45$ values
This assumes the values are evenly spread across the class β€” which is why the answer is an estimate.
3 Cumulative Frequency
Cumulative frequency is a running total. Each entry tells you how many values are less than or equal to the top of that class.
Plot at the UPPER boundary, not the midpoint. This is the single most common error. "$30$ people took under $25$ minutes" is a fact about the value $25$, so the point goes at $x = 25$.
half the total median Read across at n/2, then straight down to the median Cumulative frequency
Reading off the curve
Median: read across at $\dfrac{n}{2}$  Β·  $Q_1$ at $\dfrac{n}{4}$  Β·  $Q_3$ at $\dfrac{3n}{4}$
Why $\dfrac{n}{2}$ and not $\dfrac{n+1}{2}$? On a cumulative frequency curve the data are treated as continuous, so the simpler fractions are used. The $\dfrac{n+1}{2}$ rule is for a list of individual values.
Worked Example 4 β€” Building the table

Complete the cumulative frequency column for these $60$ test scores.

Score $s$FrequencyCumulative frequency
$0 \leq s \lt 20$$4$$4$
$20 \leq s \lt 40$$11$$15$
$40 \leq s \lt 60$$22$$37$
$60 \leq s \lt 80$$17$$54$
$80 \leq s \lt 100$$6$$60$
β‘ Each entry is the running total: $4$, then $4 + 11 = 15$, then $15 + 22 = 37$, and so on.
β‘‘The last value must equal the total, $60$ βœ“
β‘’Plot at $(20, 4)$, $(40, 15)$, $(60, 37)$, $(80, 54)$, $(100, 60)$ β€” always the upper boundary.
Worked Example 5 β€” Estimating from the curve

Using the table above, estimate the median, the quartiles and the interquartile range.

β‘ $n = 60$, so the median is at the $30$th value.
β‘‘$30$ lies between cf $15$ (at score $40$) and cf $37$ (at score $60$). Reading the curve gives roughly $54$.
β‘’$Q_1$ at the $15$th value: this is exactly the cf at score $40$, so $Q_1 \approx 40$.
β‘£$Q_3$ at the $45$th value: between cf $37$ (score $60$) and cf $54$ (score $80$), giving roughly $69$.
β‘€IQR $\approx 69 - 40 = 29$
Worked Example 6 β€” "How many scored more than…?"

Using the same data, estimate how many students scored more than $70$.

β‘ Read the cumulative frequency at $70$ from the curve: about $46$.
β‘‘That is the number scoring less than $70$.
β‘’More than $70$: $60 - 46 = 14$ students.
Subtract from the total. A cumulative frequency curve always reads "less than", so "more than" questions need this extra step.
4 Which Diagram, and Why
DiagramBest forWhat you can read off
HistogramShowing the shape of a distributionFrequencies (as areas), modal class, skew
Cumulative frequency curveFinding medians and quartilesMedian, $Q_1$, $Q_3$, IQR, "how many under $x$"
Frequency polygonComparing two distributionsGeneral shape; plotted at midpoints
Frequency polygon: plot the frequency against the midpoint of each class and join with straight lines. Note the contrast β€” cumulative frequency uses upper boundaries, frequency polygons use midpoints.
Worked Example 7 β€” Choosing a diagram

A researcher has grouped data on journey times with unequal class widths and wants to (a) show the shape of the distribution, (b) find the median. Which diagram for each?

β‘ (a) A histogram β€” it handles unequal class widths correctly, because area represents frequency.
β‘‘(b) A cumulative frequency curve β€” the median can be read straight off at $\tfrac{n}{2}$.
5 Quick Reference

Frequency density

$\dfrac{\text{frequency}}{\text{class width}}$ β€” the height of a histogram bar.

Area

Area of a histogram bar $=$ frequency.

Frequency back

Frequency $=$ density $\times$ width.

Bars touch

Histograms have no gaps β€” the axis is continuous.

Part of a class

Density $\times$ the width of the part you want.

Cumulative frequency

A running total; plot at the upper boundary.

Median

Read across at $\dfrac{n}{2}$.

Quartiles

$\dfrac{n}{4}$ and $\dfrac{3n}{4}$; IQR $= Q_3 - Q_1$.

"More than"

Subtract the reading from the total.

Frequency polygon

Plot at midpoints, not boundaries.

6 Practice Questions
Question 1

A class $10 \leq x \lt 25$ has frequency $45$. Find the frequency density.

β–Ά Show solution

Class width $= 25 - 10 = 15$

Frequency density $= \dfrac{45}{15} = 3$

Question 2

A histogram bar spans $30 \leq t \lt 50$ with height $6.5$. Find the frequency.

β–Ά Show solution

Width $= 20$

Frequency $= 6.5 \times 20 = 130$

Question 3

Complete the frequency density column.

Mass $m$ (g)Frequency
$0 \leq m \lt 5$$8$
$5 \leq m \lt 15$$30$
$15 \leq m \lt 40$$25$
β–Ά Show solution

Widths: $5$, $10$, $25$.

Densities: $\dfrac{8}{5} = 1.6$;  $\dfrac{30}{10} = 3$;  $\dfrac{25}{25} = 1$

Question 4

Explain why a histogram bar for a wide class can be shorter than one for a narrow class, even though it represents more data.

β–Ά Show solution

In a histogram the area represents the frequency, not the height.

A wide class spreads its frequency over a greater width, so the frequency density (and therefore the height) is lower β€” but the total area can still be larger.

Question 5

Complete the cumulative frequency column for these $50$ values.

Length $L$ (cm)Frequency
$0 \leq L \lt 5$$7$
$5 \leq L \lt 10$$13$
$10 \leq L \lt 15$$19$
$15 \leq L \lt 20$$11$
β–Ά Show solution

Running totals: $7$, $20$, $39$, $50$.

Plot at the upper boundaries: $(5, 7)$, $(10, 20)$, $(15, 39)$, $(20, 50)$.

The final value equals the total of $50$ βœ“

Question 6

Using the data from Question 5, state the values of cumulative frequency at which you would read the median, $Q_1$ and $Q_3$.

β–Ά Show solution

$n = 50$.

Median at $\dfrac{50}{2} = 25$

$Q_1$ at $\dfrac{50}{4} = 12.5$

$Q_3$ at $\dfrac{3 \times 50}{4} = 37.5$

Question 7

A cumulative frequency curve for $200$ people gives a reading of $145$ at a height of $180$ cm. How many people are taller than $180$ cm?

β–Ά Show solution

$145$ people are shorter than $180$ cm.

Taller than $180$ cm: $200 - 145 = 55$ people.

Question 8

A histogram bar covers $10 \leq x \lt 30$ with frequency density $4$. Estimate how many values lie between $10$ and $22$.

β–Ά Show solution

Width of the part wanted $= 22 - 10 = 12$

Frequency $= 4 \times 12 = 48$ values

This assumes the values are evenly spread across the class.

Question 9

The histogram of $180$ journey times has these bars.

Time $t$ (min)Frequency density
$0 \leq t \lt 10$$2$
$10 \leq t \lt 20$$5$
$20 \leq t \lt 40$$3$
$40 \leq t \lt 80$$?$

(a) Find the frequency of the first three classes.   (b) Find the missing frequency density.   (c) State the modal class.

β–Ά Show solution

(a) $2 \times 10 = 20$;  $5 \times 10 = 50$;  $3 \times 20 = 60$.

(b) So far $20 + 50 + 60 = 130$. The last class has $180 - 130 = 50$.

Width $= 40$, so density $= \dfrac{50}{40} = 1.25$.

(c) The modal class is the one with the highest frequency density, which is $10 \leq t \lt 20$ (density $5$).

Note: the class $20 \leq t \lt 40$ has the largest frequency ($60$), but the modal class in a histogram is judged by density.

Question 10

The table shows the masses of $120$ parcels.

Mass $m$ (kg)Frequency
$0 \leq m \lt 2$$14$
$2 \leq m \lt 4$$32$
$4 \leq m \lt 6$$41$
$6 \leq m \lt 8$$23$
$8 \leq m \lt 10$$10$

(a) Build the cumulative frequency table.   (b) Estimate the median.   (c) Estimate the IQR.   (d) Estimate how many parcels weigh more than $7$ kg.

β–Ά Show solution

(a) Running totals: $14$, $46$, $87$, $110$, $120$.

Plot at $(2, 14)$, $(4, 46)$, $(6, 87)$, $(8, 110)$, $(10, 120)$.

(b) Median at the $60$th value. This lies between cf $46$ (at $4$ kg) and cf $87$ (at $6$ kg).

Interpolating: $60 - 46 = 14$ into a class of $41$, so $4 + \dfrac{14}{41} \times 2 = 4 + 0.68 = \mathbf{4.7}$ kg (1 d.p.).

(c) $Q_1$ at the $30$th value: between cf $14$ (at $2$) and cf $46$ (at $4$).

$2 + \dfrac{16}{32} \times 2 = 3.0$ kg

$Q_3$ at the $90$th value: between cf $87$ (at $6$) and cf $110$ (at $8$).

$6 + \dfrac{3}{23} \times 2 = 6.3$ kg

IQR $\approx 6.3 - 3.0 = \mathbf{3.3}$ kg

(d) Reading the curve at $7$ kg: between cf $87$ (at $6$) and cf $110$ (at $8$), roughly $87 + \tfrac{1}{2}(23) = 98.5$, say $99$.

More than $7$ kg: $120 - 99 = \mathbf{21}$ parcels.

Histograms & Cumulative Frequency (S3) Β· GCSE Maths Revision Β· Created with MathJax