IB Maths AI HL Statistics Toolkit Paper 1 & 2 ~6 min read

Histograms

A frequency histogram shows grouped continuous data as bars, where the height of each bar is the frequency of that class. It looks like a bar chart, but with one crucial difference: there are no gaps between the bars, because the data is continuous — each class runs straight into the next. Histograms make the shape of a distribution obvious at a glance: you can spot the modal class, see whether the data is symmetric or skewed, and judge whether it might follow a normal distribution. For IB AI HL, the classes always have equal width, which keeps the heights directly comparable.

📘 What you need to know

Histogram vs bar chart

This distinction is examined directly, and the “no gaps” rule is the giveaway. It follows from the type of data each chart represents.

Bar chart
gaps
Qualitative or discrete data (e.g. car colours, number of pets). Separate categories → gaps between bars.
Histogram
no gaps
Continuous grouped data (e.g. mass, height, time). Classes touch → bars touch, no gaps.

🤔 Why no gaps?

Continuous data has no “breaks” in it — a mass could be 7.9 kg, 8.0 kg, 8.01 kg, anything. The class 4 ≤ m < 8 ends exactly where 8 ≤ m < 12 begins, with nothing missing in between. So the bars must touch to show the variable flows continuously. A gap would falsely suggest there are values that don’t belong to any class. By contrast, “red cars” and “blue cars” are separate categories with nothing between them, so a bar chart leaves gaps.

Drawing a frequency histogram

🧭 Recipe — drawing a frequency histogram

  1. Draw and label the axes: continuous variable on x, frequency on y, both with even scales and units.
  2. Mark the class boundaries along the x-axis.
  3. For each class, draw a bar from its lower boundary to its upper boundary.
  4. Set each bar’s height to the class frequency (read off the y-axis).
  5. Leave no gaps between adjacent bars.
frequency histogram — dolphin masses
0 4 8 12 16 20 Frequency 4 8 12 16 20 24 Mass, m (kg) 4 15 19 10 6 modal class
Bars touch with no gaps (continuous data). The tallest bar, 12 ≤ m < 16 with frequency 19, is the modal class.

What histograms tell you

Beyond just displaying the data, a histogram is read for two things: the modal class and the overall shape.

What you readHow
Modal classthe class with the tallest bar (equal widths)
Symmetry / skewlook at where the tall bars sit and how the heights tail off
Could it be normal?roughly symmetric and bell-shaped → possibly a normal distribution

🧠 Memory aid — “modal class, not mode”

With grouped data you can never name a single mode — the exact values are hidden inside the classes. The best you can do is the modal class: the interval with the highest frequency. So on a histogram, always answer “the modal class is 12 ≤ m < 16″, never “the mode is 14”.

Worked examples

WE 1

Draw a frequency histogram

The table shows the masses (kg) of newborn dolphins. Draw a frequency histogram.

mass m (kg)4≤m<88≤m<1212≤m<1616≤m<2020≤m<24
frequency41519106
set up the axes x-axis: mass 4 to 24 kg with class boundaries; y-axis: frequency 0 to 20. draw the bars (heights = frequencies) heights: 4, 15, 19, 10, 6 bars must touch — NO gaps, because mass is continuous data. see the diagram above
WE 2

Write down the modal class

Using the dolphin data from WE 1, write down the modal class.

modal class = class with highest frequency frequency 19 is the highest → 12 ≤ m < 16 modal class: 12 ≤ m < 16 say “modal class”, never “mode = 14”, for grouped data.
WE 3

Histogram or bar chart?

For each dataset, state whether a histogram or a bar chart should be used. (a) The favourite colour of 50 students. (b) The heights, in cm, of 50 students.

(a) favourite colour qualitative data → separate categories (a) bar chart (with gaps) (b) heights in cm continuous data → grouped into classes (b) histogram (no gaps) continuous ⇒ histogram; qualitative/discrete ⇒ bar chart.
WE 4

Total frequency & a proportion from a histogram

A histogram has bars of height (frequency) 3, 8, 14, 9, 6 across five equal classes. (a) How many data values are there in total? (b) What fraction lie in the modal class?

(a) total = sum of bar heights 3 + 8 + 14 + 9 + 6 = 40 (a) n = 40 (b) modal class frequency = 14 fraction = 14/40 = 0.35 (b) 0.35 (35%) with equal-width classes, the bar heights ARE the frequencies — just add them.
WE 5

Describe the shape

A histogram of waiting times has bar heights 2, 6, 12, 7, 3 across equal classes. Comment on the shape of the distribution.

look at the pattern of heights rises to a peak in the middle (12), then falls away on both sides the bars are fairly balanced about the peak — roughly symmetric and bell-shaped. approximately symmetric → could be normal a symmetric, bell-shaped histogram suggests the data may follow a normal distribution.

💡 Top tips

⚠ Common mistakes

Next up — Interpreting Data. You’ve now met every tool in the kit: averages, spread, frequency tables, box plots, cumulative frequency curves and histograms. The final skill is choosing which measure or diagram fits a situation, and comparing datasets properly — using the median & IQR when there are outliers, and the mean & standard deviation when the data is symmetric.

Need help with Statistics?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →