Module 4 (M4) - Handling data - Histograms

Part ofMathsM4: Handling data

Histograms

Histograms are a way of representing data. They are like bar charts, but show the frequency density instead of the frequency. They can be used to determine information about the distribution of data.

Frequency density

A histogram is drawn like a bar chart, but often has bars of unequal width. It is the area of the bar that tells us the frequency in a histogram, not its height.

Instead of plotting frequency on the y-axis, we plot the frequency density. To calculate this, you divide the frequency of a group by the width of it.

Example

Look at the following table:

Time taken t secondsFrequency
0 < t ≤ 204
20 < t ≤ 359
35 < t ≤ 506
50 < t ≤ 606
60 < t ≤ 805
  • In order to draw a histogram to represent this data, we need to find the frequency density for each group.
    • If we look at the first group, we can see it has a frequency of 4 and a width of 20, because 20 - 0 = 20.

Frequency density = frequency ÷ group width

= 4 ÷ 20

= 0.2

  • So we need to draw a bar which goes from 0 to 20 on the x-axis and up to 0.2 on the y–axis.
    • Looking at the second group, we have a frequency of 9 and a width of 15.

Frequency density = frequency ÷ group width

= 9 ÷ 15

= 0.6

  • So we need to draw a bar which goes from 20 to 35 on the x-axis and up to 0.6 on the y–axis.
  • Calculating similarly for the remaining groups we get:
Time taken t secondsFrequencyWidthFrequency density
0 < t ≤ 204200.2
20 < t ≤ 359150.6
35 < t ≤ 506150.4
50 < t ≤ 606100.6
60 < t ≤ 805200.25

Plotting this data, our histogram will look like this:

Histogram to show the time taken

Histogram labelled 'Frequency density' on the y-axis and 'Time taken (t seconds)' on the x-axis.
Back to top

Finding the frequency

Sometimes a histogram will already be drawn for us. We can then use this to find the frequency of each group, and hence the total frequency for the distribution.

Number of books sold in a bookshop on a Saturday.

Histogram labelled 'Frequency density (number of books per £)' on the y-axis and 'Price (P) in pounds (£)' on the x-axis.

To find the frequency of each group, we need to multiply the height of the bar by its width, because the area of each bar represents the frequency.

  • For the first bar, the height is 8 and the width is 5 so:

Frequency = 8 x 5 = 40

If we do the same for each bar, we get:

Price P in Pounds (£)Frequency
0 < P ≤ 58 x 5 = 40
5 < P ≤ 1012 x 5 = 60
10 < P ≤ 205.6 x 10= 56
20 < P ≤ 401.6 x 20 = 32

The total frequency for the distribution is \(40 + 60 + 56 + 32 = 188\).

Question

This histogram shows information about the distances in metres that a number of people threw a ball.

Find the frequency of each group using the histogram

Histogram labelled 'Frequency density' on the y-axis and 'Distance (metres) on the x-axis.

Back to top

Test yourself

Back to top

More on M4: Handling data

Find out more by working through a topic