Histograms: frequency density and unequal class widths
TutorAura guide · Updated
A histogram looks like a bar chart, but it's used for continuous grouped data such as heights, times or masses, and the bars can have different widths. In a GCSE histogram, the vertical axis is frequency density, not frequency, and the area of each bar shows the frequency. That's the idea every histogram question tests.
Key takeaways
- Frequency density = frequency ÷ class width.
- The area of a bar is the frequency.
- Bars touch, because the data is continuous.
- To read a frequency: multiply frequency density by class width.
Frequency density
Rearranged: .
Using frequency density stops wide classes looking more important just because they cover more values.
Example: drawing a histogram
The heights of 45 plants (in cm):
| Height, | Frequency | Class width | Frequency density |
|---|---|---|---|
| 8 | 10 | 0.8 | |
| 12 | 5 | 2.4 | |
| 15 | 5 | 3 | |
| 10 | 20 | 0.5 |
Draw the horizontal axis as a continuous scale of height, and the vertical axis as frequency density. Each bar runs from the start to the end of its class, with height equal to the frequency density. The tallest bar (15 to 20 cm) shows where the data is most concentrated, even though the 0 to 10 class is wider.
Reading a histogram
To find the frequency of a class, multiply the bar's height by its width. A bar from 30 to 50 with a frequency density of 1.5 represents items.
Some questions give no scale on the vertical axis but tell you one frequency. Use that bar to work out the scale first: if a bar of width 10 represents 20 items, its frequency density is 2, which fixes the scale for the rest.
Estimating part of a class
Assume the data is spread evenly across each class. Using the plant table, estimate how many plants are between 12 cm and 18 cm:
- From 12 to 15 (3 cm of the 10 to 15 class): .
- From 15 to 18 (3 cm of the 15 to 20 class): .
- Total: , so about 16 plants.
It's an estimate because we don't know exactly where the values lie inside each class.
Histograms vs bar charts
| Bar chart | Histogram |
|---|---|
| Categories or discrete data | Continuous grouped data |
| Gaps between bars | No gaps |
| Height shows frequency | Area shows frequency |
| Bars all the same width | Bars can have different widths |
Estimating the mean and median
From a histogram, first work out each class frequency (area). Then estimate the mean using the midpoint of each class, exactly as for a grouped frequency table; our frequency table mean calculator shows the working. For the median, find the class containing the middle value and estimate within it, as above. For the plants, the median is the 23rd value: 20 plants are up to 15 cm, so it's 3 of the 15 plants into the 15 to 20 class, about cm.
Common mistakes
- Plotting frequency instead of frequency density.
- Using the wrong class width (for it's 5, not 15).
- Leaving gaps between bars.
- Reading the bar height as the frequency.
Practice questions
- A class has a frequency of 18. Find the frequency density.
- A bar from 40 to 70 has a frequency density of 0.6. Find the frequency.
- A class has a frequency density of 0.4. Estimate how many values are between 30 and 50.
Answers: 1. . 2. . 3. .
More practice in our histogram questions, or compare with cumulative frequency.
Frequently asked questions
How do you calculate frequency density?
Divide the frequency by the class width. For a class from 10 to 15 with a frequency of 12, the frequency density is 12 ÷ 5 = 2.4.
What does the area of a histogram bar show?
The area of each bar (frequency density × class width) equals the frequency of that class.
What is the difference between a histogram and a bar chart?
A histogram shows continuous grouped data with no gaps, and the area of each bar shows frequency; a bar chart shows categories, and the height shows frequency.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
Keep reading
Histograms questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Cumulative frequency: tables, graphs, median and quartiles
Running totals, plotting at the upper bound, and reading the median, quartiles and IQR.
Mean, median, mode and range explained (with examples)
How to find each measure, which average to use, and how to compare data sets in exam answers.
Mean from a frequency table calculator
The mean (or estimated mean for grouped data) from a frequency table, with the fx working.