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 seconds | Frequency |
|---|---|
| 0 < t ≤ 20 | 4 |
| 20 < t ≤ 35 | 9 |
| 35 < t ≤ 50 | 6 |
| 50 < t ≤ 60 | 6 |
| 60 < t ≤ 80 | 5 |
- 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 seconds | Frequency | Width | Frequency density |
|---|---|---|---|
| 0 < t ≤ 20 | 4 | 20 | 0.2 |
| 20 < t ≤ 35 | 9 | 15 | 0.6 |
| 35 < t ≤ 50 | 6 | 15 | 0.4 |
| 50 < t ≤ 60 | 6 | 10 | 0.6 |
| 60 < t ≤ 80 | 5 | 20 | 0.25 |
Plotting this data, our histogram will look like this:
Histogram to show the time taken
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.
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 ≤ 5 | 8 x 5 = 40 |
| 5 < P ≤ 10 | 12 x 5 = 60 |
| 10 < P ≤ 20 | 5.6 x 10= 56 |
| 20 < P ≤ 40 | 1.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
Answer:
| Distance (d) metres | Frequency |
|---|---|
| 0 < d ≤ 10 | 1 x 10 = 10 |
| 10 < d ≤ 20 | 10 x 10 = 100 |
| 20 < d ≤ 30 | 7 x 10= 70 |
| 30 < d ≤ 45 | 2 x 15 = 30 |
| 45 < d ≤ 70 | 1 x 25 = 25 |
Test yourself
More on M4: Handling data
Find out more by working through a topic