Histograms

Maths · Statistics. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

Histogram of ages: a bar from 20 to 30 years with frequency density 4 and a bar from 30 to 50 years with frequency density 1.5.
Histogram of ages: a bar from 20 to 30 years with frequency density 4 and a bar from 30 to 50 years with frequency density 1.5.

The idea

A histogram shows grouped continuous data. It looks like a bar chart, but there are no gaps between the bars and the bars can have different widths, because the classes can have different widths.

When the widths differ, the height of a bar cannot be the frequency: a wide class would look too important. Instead the height is the frequency density, which is the frequency for each unit of class width.

The idea to remember is that the area of each bar represents the frequency. So to find a frequency from a histogram, multiply the height of the bar by its width.

In simpler words

A histogram is a chart for measured data sorted into groups. The bars touch, and some are wider than others because some groups cover a bigger range. So the height alone does not tell you how many are in a group. The area of the bar does. The height is called the frequency density. To find how many are in a group, multiply the height by the width.

An everyday comparison

Think of each bar as a patch of lawn. A long thin patch and a short wide patch can hold the same amount of grass, because the area matters, not one side. The grass is the frequency, the width of the patch is the class width, and the height is how thickly the grass is spread, the frequency density. The comparison stops here: a lawn has no scale to read, so always check the axis.

Rules to remember

Common mistake

Reading the height of a bar as the frequency, or dividing by the upper boundary instead of the class width. The height is the frequency density; the frequency is height × width.

In the exam

First write each class width, upper boundary minus lower boundary. Then state frequency density = frequency ÷ class width, show the substitution for each class and give each density. Draw the bars with no gaps, label the vertical axis frequency density and the horizontal axis with the variable. To read a frequency, write frequency = density × width, substitute the two numbers you read and give a whole number. For part of a class, use the width of that part only.

Worked example

In a histogram, the bar for the class 0 < x ≤ 20 has height 1.5. The class 20 < x ≤ 50 has frequency 24. Find the frequency of the first class and the height of the bar for the second class.

  1. First class: width = 20 − 0 = 20, so frequency = 1.5 × 20 = 30.
  2. Second class: width = 50 − 20 = 30.
  3. Height = frequency density = 24 ÷ 30 = 0.8.

Answer: Frequency of the first class = 30; height of the second bar = 0.8

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Cumulative frequency diagramsTake a Maths test