Histograms
Studying this course? Keep your progress in one place.
Key facts
- A histogram shows continuous data in classes with no gaps; classes can have unequal widths.
- The area of each bar is the frequency, so the height is the frequency density.
- Frequency density ; frequency density width.
- The tallest bar has the greatest frequency density, not always the greatest frequency.
- For part of a class, assume the data are evenly spread and give an estimate.
Why the area matters
With unequal class widths, height alone would make wide classes look too big, so area stands for frequency.
A histogram shows continuous data (such as time, mass or age) in classes. There are no gaps between the bars. Unlike a bar chart, a histogram can have classes of unequal width.
When the widths are unequal, the height of the bar cannot be the frequency. Instead, the area of each bar represents the frequency, and the height is the frequency density.
- Frequency
- Frequency density
- Frequencyfrequency density class width
Worked example
A bar has height (frequency density) and class width . Find the frequency.
- 1
Frequency is the area of the bar.
- 2
.
A class has frequency density and width . What is its frequency?
Frequency density
Divide the frequency by the class width.
Example: 21 customers waited between 2 and 5 minutes. The class width is , so the frequency density is .
Add a column for the class width and another for the frequency density to your table. The tallest bar has the greatest frequency density, which is not always the greatest frequency: a class with frequency 30 and width 5 has density 6, lower than the density 7 of a class with frequency 21 and width 3.
- Frequency
- Frequency density
- Frequency density
Worked example
21 customers waited between and minutes. Find the frequency density.
- 1
Class width: .
- 2
Divide: .
A class has frequency and width . What is its frequency density?
Drawing a histogram
Tabulate the class widths, work out the frequency densities and draw touching bars of that height.
Classes , , , with frequencies have frequency densities .
Draw a continuous horizontal axis with a scale and a vertical axis labelled frequency density. Each bar runs from its lower class boundary to its upper boundary, and the bars touch. Add a title and label the axes with units.
| Frequency | Width | Frequency density | |
|---|---|---|---|
| 0<t≤2 | 8 | 2 | 4 |
| 2<t≤5 | 21 | 3 | 7 |
| 5<t≤10 | 30 | 5 | 6 |
| 10<t≤20 | 11 | 10 | 1.1 |
Frequency
- 0<t≤2:
- 8
- 2<t≤5:
- 21
- 5<t≤10:
- 30
- 10<t≤20:
- 11
Width
- 0<t≤2:
- 2
- 2<t≤5:
- 3
- 5<t≤10:
- 5
- 10<t≤20:
- 10
Frequency density
- 0<t≤2:
- 4
- 2<t≤5:
- 7
- 5<t≤10:
- 6
- 10<t≤20:
- 1.1
A class has frequency . What height is its bar?
Reading a histogram
Multiply each bar height by its width.
To find the frequency of a class, multiply its bar height by its width.
The total of all the frequencies is the number of items in the data set, which you can use to check your work: here .
| Frequency density | Width | Frequency | |
|---|---|---|---|
| Bar 1 | 2.4 | 10 | 24 |
| Bar 2 | 3.5 | 10 | 35 |
| Bar 3 | 4.2 | 20 | 84 |
| Bar 4 | 1.5 | 30 | 45 |
Frequency density
- Bar 1:
- 2.4
- Bar 2:
- 3.5
- Bar 3:
- 4.2
- Bar 4:
- 1.5
Width
- Bar 1:
- 10
- Bar 2:
- 10
- Bar 3:
- 20
- Bar 4:
- 30
Frequency
- Bar 1:
- 24
- Bar 2:
- 35
- Bar 3:
- 84
- Bar 4:
- 45
A bar has height and width . What is the frequency?
Estimating from part of a class
Assume the data are evenly spread across the class, so the part you want is in proportion to its width.
Sometimes a question covers only part of a class. Assume the data is evenly spread across the class, then take the matching fraction of its frequency.
The class has frequency . The number aged 20 to 30 is . Add the whole classes below: .
Say your answer is an estimate, because the real spread inside a class is not known.
Worked example
The class has frequency and the classes below it have frequencies and . Estimate the number aged under .
- 1
Assume the data is spread evenly across the class.
- 2
Ages to are of the class: .
- 3
Add the whole classes below: .
A class has frequency . Estimate the number with .
Try an exam question
A histogram has a bar for the class with frequency density . (a) Find the frequency of this class. (b) Another class has frequency . Find the height of its bar.
[4 marks]
- [1]Class width .
- [1]Frequency .
- [1]Class width .
- [1]Frequency density .
That's the notes covered.
Carry on to the next subtopic.
Try a question
What is the frequency density of the class ?
1 mark, marked against the mark scheme
What is the frequency density of the class ?
1 mark, marked against the mark scheme