Histograms
A histogram shows grouped continuous data in bars with no gaps. The classes can have different widths, so the height of each bar is the frequency density, and the area of each bar is the frequency.
Key facts
- Frequency density = frequency ÷ class width. So frequency = frequency density × class width.
- The area of a bar is its frequency; the bars touch because the data are continuous.
- The modal class has the highest frequency density, which is not always the highest frequency.
- When every class has the same width, the height of each bar is the frequency: read it straight off the vertical axis.
- A class such as 40 ≤ x < 50 includes 40 but not 50, so each value belongs to exactly one bar and the bars touch.
- The modal class is the class with the tallest bar.
Worked examples
Example 1
In a histogram, the bar for 20 < a ≤ 40 has a frequency density of 1.5. How many values are in that class? Estimate how many are between 25 and 40.
- Find the class width. 40 − 20 = 20
- Frequency: 1.5 × 20 = 30
- From 25 to 40 is a width of 15. 1.5 × 15 = 22.5
Answer: 30; about 22.5
Example 2
The class 0 < t ≤ 10 has a frequency of 20 and the class 10 < t ≤ 40 has a frequency of 30. Find the frequency density of each class.
- First class: width 10. 20 ÷ 10 = 2
- Second class: width 30. 30 ÷ 30 = 1
Answer: 2 and 1
Example 3
Which is the modal class: 0 < x ≤ 10 with a frequency of 12, or 10 < x ≤ 30 with a frequency of 18?
- Divide each frequency by its class width. 12 ÷ 10 = 1.2, 18 ÷ 20 = 0.9
- The modal class has the highest frequency density, even though its frequency is lower.
Answer: 0 < x ≤ 10 (frequency density 1.2, not 0.9)
Example 4
A histogram has a bar from 0 to 10 with a frequency density of 3 and a bar from 10 to 25 with a frequency density of 2. How many values are there altogether?
- Frequency = frequency density × class width. 3 × 10 = 30, 2 × 15 = 30
- Add the frequencies. 30 + 30 = 60
Answer: 60
Example 5
A histogram of test marks has bars of heights 3, 7, 12, 8 and 5 for the classes 40 ≤ x < 50, 50 ≤ x < 60, 60 ≤ x < 70, 70 ≤ x < 80 and 80 ≤ x < 90. How many learners wrote the test?
- Each bar's height is the number of learners in that class.
- Add them all. 3 + 7 + 12 + 8 + 5 = 35
Answer: 35
Example 6
A histogram of test marks has bars of heights 3, 7, 12, 8 and 5 for the classes 40 ≤ x < 50, 50 ≤ x < 60, 60 ≤ x < 70, 70 ≤ x < 80 and 80 ≤ x < 90. Which is the modal class?
- The tallest bar has a height of 12.
- It is the bar for 60 ≤ x < 70, so that is the modal class.
Answer: 60 ≤ x < 70
Example 7
A histogram of test marks has bars of heights 3, 7, 12, 8 and 5 for the classes 40 ≤ x < 50, 50 ≤ x < 60, 60 ≤ x < 70, 70 ≤ x < 80 and 80 ≤ x < 90. How many learners got 70 or more?
- The classes 70 ≤ x < 80 and 80 ≤ x < 90 hold the marks of 70 or more.
- Add their heights. 8 + 5 = 13
Answer: 13
Example 8
A histogram of test marks has bars of heights 3, 7, 12, 8 and 5 for the classes 40 ≤ x < 50, 50 ≤ x < 60, 60 ≤ x < 70, 70 ≤ x < 80 and 80 ≤ x < 90. Which class contains the median?
- There are 35 marks, so the median is the 18th mark in order.
- Add the bars from the left: 3, then 10, then 22. 3 + 7 + 12 = 22
- The 18th mark comes after the first 10 and within the first 22, so it is in 60 ≤ x < 70.
Answer: 60 ≤ x < 70