Statistics · Representations of Data · Year 1

Histograms

A histogram bar's height isn't its frequency — it's frequency squeezed or stretched to make area, not height, the thing that actually carries meaning.

9 min read 4 worked examples

Why histograms aren't just bar charts

A bar chart's bar height shows frequency directly, and every bar has the same width by convention. A histogram is built for continuous, grouped data whose classes might have different widths — and once class widths vary, height alone can no longer be trusted to represent frequency fairly. A wide class with a middling frequency can look deceptively "tall" next to a narrow class with the same frequency, if both were just plotted by raw count.

The fix: plot frequency density, not frequency

A histogram plots frequency density on the vertical axis, defined as

$\text{frequency density} = \dfrac{\text{frequency}}{\text{class width}}.$

This makes the area of each bar (density × width) proportional to the frequency it represents — so bars of different widths can be compared fairly, and the total area of the histogram represents the total frequency.

A histogram with bars of varying widths on the horizontal axis and frequency density on the vertical axis, where one wide bar is shorter and one narrow bar is taller, illustrating that bar area rather than bar height represents frequency.
A histogram with unequal class widths: the wide class has lower height but the same order of area as a narrower, taller class — area, not height, is what encodes frequency.

Reading frequencies back off a histogram

Given a histogram (or its frequency density table) and one known frequency, the scale linking area to frequency can be found, then used to read off any other bar's frequency from its area — this is the standard technique for "estimate the frequency of..." histogram questions.

Frequency polygons

A frequency polygon is a simpler alternative to a histogram: plot each class's midpoint against its frequency, then join the points with straight lines. Unlike a histogram, it plots frequency directly rather than frequency density, so it's only sensible to use when class widths are equal. Frequency polygons are especially useful for comparing two or more distributions on the same axes, since overlapping histograms quickly become cluttered while overlapping line polygons stay readable.

Midpoint, not boundary

Always plot at the class midpoint — for a class $20$–$30$, that's $25$, not $20$ or $30$. Plotting at a boundary instead of the midpoint is the most common frequency-polygon error, and it shifts every point in the diagram sideways.

Worked example 1

Finding frequency densities
A dataset of journey times (minutes) is grouped as follows. Find the frequency density for each class.
Time: 0–10, 10–20, 20–40, 40–70  ·  Frequency: 12, 18, 20, 15
MethodDivide each frequency by its class width
1
$0$–$10$: width $10$, density $=\dfrac{12}{10}=1.2$.
Frequency over class width.
2
$10$–$20$: width $10$, density $=\dfrac{18}{10}=1.8$.
Same width as the first class.
3
$20$–$40$: width $20$, density $=\dfrac{20}{20}=1.0$.
A wider class, so density drops even though frequency rose.
4
$40$–$70$: width $30$, density $=\dfrac{15}{30}=0.5$.
Widest class, lowest density.
▪ solved
Examiner's eye

Always find the class width by subtracting the class boundaries ($40-20=20$, not just "20" from the label) — misreading grouped-class widths is one of the most common histogram errors.

Worked example 2

Finding a missing frequency from a histogram
In a histogram, the class $10$–$15$ has frequency density $3.2$ and represents a frequency of $16$. Another class, $15$–$25$, has frequency density $2.1$. Find its frequency.
MethodCheck the known class, confirm the relationship, then apply it
1
Check: class width $10$–$15$ is $5$; $3.2\times 5=16$, matching the given frequency.
Confirms density × width = frequency.
2
Class width for $15$–$25$ is $10$.
25 − 15.
3
Frequency $= 2.1 \times 10 = 21$.
Density × width.
▪ solved
The key insight

Frequency density and class width are always linked by a simple rearrangement: $\text{frequency} = \text{density} \times \text{width}$. Whichever quantity a question withholds — density, width, or frequency — the other two, once known, pin it down directly.

Worked example 3

Using area to compare two classes
On a histogram, the bar for class $A$ has width $8$ and height (density) $5$. The bar for class $B$ has width $4$ and height $9$. Which class has the greater frequency?
MethodCompare areas, not heights
1
Area (frequency) of class $A$: $8\times5=40$.
Width × density.
2
Area (frequency) of class $B$: $4\times9=36$.
Same formula, class B's values.
3
Class $A$ has the greater frequency ($40>36$), even though its bar is shorter than class $B$'s.
Height alone would have given the wrong answer.
▪ compared
Common mistake

Reading "which bar is taller" off a histogram and assuming that means "which class has more data" is exactly the trap unequal class widths create. Class $B$'s bar is taller here, but class $A$ has more data — always compute area when widths differ.

Worked example 4

Estimating a frequency using a scale factor · Challenge
On a histogram, $1\ \text{cm}^2$ of bar area represents a frequency of $4$. A bar has width $2\ \text{cm}$ and height $3\ \text{cm}$. Find the frequency it represents.

Some exam questions give the scale between area and frequency directly, using measured centimetres on the printed diagram rather than the underlying data values.

MethodFind the bar's area, then apply the given scale
1
Bar area $= 2\times3=6\ \text{cm}^2$.
Width times height, as measured.
2
Each $1\ \text{cm}^2$ represents a frequency of $4$, so $6\ \text{cm}^2$ represents $6\times4=24$.
Scale the area up by the given conversion factor.
▪ solved
Look deeper — the underlying idea is unchanged

This "cm² to frequency" scale factor is just a disguised version of the density-width relationship — the printed diagram's centimetres stand in for the real data's units, and the given ratio (frequency per cm²) plays exactly the role that dividing by class width normally plays. The core idea, area proportional to frequency, never changes.

Common mistake

Never read a frequency directly off the vertical axis of a histogram — that axis is frequency density, not frequency. Frequency always requires multiplying density by the relevant class width (or a given area-to-frequency scale), even when every class happens to share the same width.

Check yourself

A histogram class has boundaries $30$ and $50$, and frequency density $1.4$. Find the frequency of that class.
(Hint: find the class width first, then multiply by the density.)

Method
1
Class width $= 50-30=20$.
2
Frequency $= 1.4\times20=28$.
Density × width.
▪ solved