Histograms
Studying this course? Keep your progress in one place.
Key facts
- A histogram has frequency density on the vertical axis, and the area of each bar shows the frequency.
- Frequency density .
- Frequency frequency density class width.
- For part of a class, use the same density times the sub-width.
- With no scale on the axis, use one known bar to find what a unit of height is worth.
Histograms and bar charts
A histogram plots frequency density, so area, not height, represents frequency.
A histogram shows continuous grouped data. Class widths are often unequal, and plotting frequency directly would make a wide class look misleadingly tall. Frequency density corrects for class width:
| Bar chart | Histogram | |
|---|---|---|
| Data | Discrete or categories | Continuous, grouped |
| Vertical axis | Frequency | Frequency density |
| Frequency is shown by | Height of bar | Area of bar |
Bar chart
- Data:
- Discrete or categories
- Vertical axis:
- Frequency
- Frequency is shown by:
- Height of bar
Histogram
- Data:
- Continuous, grouped
- Vertical axis:
- Frequency density
- Frequency is shown by:
- Area of bar
What does the area of a bar in a histogram represent?
Calculating frequency density
Find each class width, then divide the frequency by it.
The class widths below are unequal (10, 10, 20, 30), which is exactly when frequency density is essential. Otherwise the wide bars would look too tall for their true frequency.
- Frequency
- Frequency density
| Class width | Frequency | Frequency density | |
|---|---|---|---|
| 10 | 20 | 2.0 | |
| 10 | 30 | 3.0 | |
| 20 | 24 | 1.2 | |
| 30 | 12 | 0.4 |
Class width
- :
- 10
- :
- 10
- :
- 20
- :
- 30
Frequency
- :
- 20
- :
- 30
- :
- 24
- :
- 12
Frequency density
- :
- 2.0
- :
- 3.0
- :
- 1.2
- :
- 0.4
A class has frequency 18. What is its frequency density?
Frequency from area
Multiply the bar's frequency density by its class width.
You are given a histogram with a scale and asked how many values lie in a class, or in part of a class. Density is constant within one bar, so for part of a class use the same density times the smaller width.
- Frequency density
- Frequency
Worked example
A bar over has frequency density 1.2. Find the frequency of the whole class, and of .
- 1
Whole class: width 20, so .
- 2
Part class: width 10, same density, so .
A bar has frequency density 0.8 and class width 15. What is the frequency?
Using a known bar
Use one bar whose frequency is given to find what one unit of height is worth.
Sometimes one bar's frequency is given but the density axis has no numbers. Work out the density of that bar, find the value of one unit (for example one small square), then apply it to the other bars. This is the classic "find the missing frequency" question.
- 1
Use the known bar
frequency density = frequency ÷ class width
- 2
Work out one unit
e.g. 1 small square = 0.2
- 3
Measure the other bars
in the same units
- 4
Multiply by width
each density by its own class width
Worked example
A bar of width 20 is 6 small squares tall and represents 24 students. Another bar of width 10 is 9 small squares tall. How many students does it represent?
- 1
Known bar: density , which is 6 squares, so 1 square .
- 2
Other bar: density , so frequency .
A bar of width 5 is 4 squares tall, where 1 square = 0.5 frequency density. What frequency does it show?
Unequal widths
Examiners check you divide by width to plot, and multiply by width to read a frequency.
With equal widths, density is proportional to frequency and mistakes cost less. With unequal widths you must:
- divide by class width before plotting
- multiply by class width to recover frequency, not just read the height
- handle a very wide or narrow last class correctly, such as with width 30
| Equal widths | Unequal widths | |
|---|---|---|
| Bar height axis | Could loosely use frequency | Must use frequency density |
| Risk | Low | High: common dropped marks |
| Comparing bars visually | Height alone is fine | Only area is meaningful |
Equal widths
- Bar height axis:
- Could loosely use frequency
- Risk:
- Low
- Comparing bars visually:
- Height alone is fine
Unequal widths
- Bar height axis:
- Must use frequency density
- Risk:
- High: common dropped marks
- Comparing bars visually:
- Only area is meaningful
Why must a histogram with unequal class widths use frequency density?
Try an exam question
A histogram is drawn for the times, minutes, taken by a group of students. The class has frequency . The class has frequency density . (a) Work out the frequency density for . (b) Work out the frequency for .
[4 marks]
- [1]Class width .
- [1]Frequency density .
- [1]Class width .
- [1]Frequency .
That's the notes covered.
Carry on to the next subtopic.
Try a question
What is the frequency density of the 0–10 minute class?
1 mark, marked against the mark scheme
What is the frequency density of the 0–10 minute class?
1 mark, marked against the mark scheme