Syllabus coverage
- Draw and interpret histograms (Extended only)
- On a histogram the vertical axis is labelled 'Frequency density'
- Frequency density is defined as frequency density = frequency \div class width
- Calculate with frequency density, including finding a frequency from the area of a bar
- Understand why frequency density, and not frequency, is plotted when the class widths are not all equal
Part of the IGCSE Maths syllabus 0580.
Why a histogram is not a bar chart
A bar chart shows how often each category occurs. The categories are separate - types of pet, days of the week, colours of car - so the bars are drawn with gaps between them, and the height of a bar is the frequency. Nothing about a bar chart depends on width, so every bar is the same width whatever the numbers.
A histogram shows continuous data that has been grouped into classes, such as masses, times or lengths. There are no gaps between the classes and no gaps between the bars: the bar for begins exactly where the bar for ends. That is why the bars of a histogram touch.
The consequence is that the width of a bar carries information. On a histogram it is the area of a bar, not its height, that stands for the frequency, and the height is a new quantity called frequency density. Once that idea is in place, the rest of the topic is arithmetic.
| Feature | Bar chart | Histogram |
|---|---|---|
| Data | Discrete categories: types, days, names | Continuous grouped data: mass, time, length |
| Gaps between the bars | Yes, always | No, the bars touch |
| What the height shows | The frequency | The frequency density |
| What the area shows | Nothing in particular | The frequency |
| The widths of the bars | All the same | The class width of each group |
Frequency density: why the height alone will not do
If every class had the same width, the tallest bar would simply be the class with the most values and a histogram would be no different from a bar chart. The problem appears as soon as the widths differ. Suppose 12 apples weigh between 100 g and 140 g and 18 apples weigh between 40 g and 60 g. The second class holds more apples but covers only half as much mass, so plotting the frequencies as heights would make the second class look far more important than it is.
The fix is to divide by the width. Frequency density = frequency \div class width. It answers the question 'how many values per unit of the variable', so a wide class and a narrow class can be compared fairly. The class has density and the class has density , so the first bar is three times as tall even though the two frequencies, 18 and 12, are close together.
The units of frequency density are 'values per gram', 'values per minute' and so on, which is why the numbers on the axis are usually small decimals. The syllabus's own definition is frequency density = frequency \div class width, and the vertical axis of a histogram is always labelled Frequency density, never just 'frequency'.
- : frequency 18, class width 20, frequency density
- : frequency 12, class width 40, frequency density
- Rearranged: frequency = frequency density \times class width
- Rearranged: class width = frequency \div frequency density
Drawing a histogram from a frequency table
Add two columns to the table before drawing anything: one for the class width and one for the frequency density. The class width is the difference between the upper and lower boundaries - for that is . The frequency density is the frequency divided by that width.
Draw each bar from one class boundary to the next, so consecutive bars share an edge, and label the vertical axis 'Frequency density' with a scale on it. Choose a scale that uses most of the grid: for densities up to 0.9, going up in steps of 0.1 to 1.0 works well. The horizontal axis carries the variable itself - mass in grams, time in minutes - with the class boundaries marked on it.
There is no rule that the bars must be the same width, and no rule that the tallest bar is the biggest class. Before you leave the diagram, check it against the table: the tallest bar must be the class with the largest frequency density, which is not always the class with the largest frequency.
| Mass m (g) | Frequency | Class width | Frequency density |
|---|---|---|---|
| 4 | 20 | ||
| 10 | 20 | ||
| 18 | 20 | ||
| 16 | 20 | ||
| 8 | 20 | ||
| 12 | 40 | ||
| 4 | 40 | ||
| Total | 72 |
Finding a frequency from the area of a bar
The area of a bar is its height multiplied by its width, and that area is the frequency of the class. So frequency = frequency density \times class width. If the bar for is 0.4 high, the class holds apples.
This is how a histogram is read when the table has not been given. Read the height of the bar from the frequency density scale, multiply by the width of the class, and you have the frequency. The same rule works on part of a class: a bar 0.6 high covering only 10 g of a 20 g class stands for values.
Work the other way round when the question gives a frequency and a bar height and asks for a width. A bar of height 0.5 standing for 15 values must cover units of the variable, so its class is 30 wide.
- Frequency density 0.4, class width 20: frequency
- Frequency density 0.6, class width 10: frequency
- Frequency 15, frequency density 0.5: class width
- The total frequency is the total area of all the bars added together
Reading the frequency density scale
The vertical axis is a density scale, so its numbers are small: for the apple data the tallest bar reaches 0.9. Read the height against the gridlines rather than guessing, and take care when a bar top falls between two of them. On a scale going up in 0.1s, a bar top halfway between 0.3 and 0.4 is 0.35.
Questions often ask for the frequency of a class whose bar you have to measure. Read the height, multiply by the class width, and round only at the end. If the height reads 0.35 and the class is 40 g wide, the frequency is .
When two histograms are drawn for the same variable with different class widths, the bars cannot be compared by height at all. Merging two classes makes one wider bar whose height is the total frequency divided by the new, wider class width, so the shape of the diagram changes even though the data has not.
Unequal class widths, and working backwards
Grouped data is usually tabulated with equal widths because that is easier to collect, but there is no requirement for it. When the last class is much wider than the others, or when two small classes have been merged into one, the widths differ and frequency density does the work.
Questions often give you enough to work backwards. If you know the total frequency, all the class widths and all but one of the frequencies, subtract to find the missing frequency and then divide by the width to get its density. If you know a bar height and a frequency, divide to get the width: a bar 1.5 high standing for 45 values covers units.
Never plot the frequency on the vertical axis when the widths are unequal. The bars would be the wrong shape and a wide class would look far too important. Even when all the widths happen to be equal, the axis is still labelled 'Frequency density', because that is what the numbers on it mean.
- Equal widths: frequency density is proportional to frequency, so the histogram looks like a bar chart with no gaps
- Unequal widths: plot frequency density, and check each bar's area against its frequency
- Missing frequency: the total minus all the other frequencies
- Missing class width: frequency \div frequency density
Key terms you must be able to define
- Histogram
- A diagram for continuous grouped data in which the bars have no gaps and the area of each bar represents the frequency of its class.
- Frequency density
- Frequency divided by class width. It is the height of a bar on a histogram, and the syllabus defines it as frequency density = frequency \div class width.
- Class width
- The difference between the upper and lower boundaries of a class. For the class width is .
- Class boundary
- The end values of a class, such as 40 and 60 in . The bars of a histogram are drawn between the class boundaries.
- Continuous data
- Data that can take any value in a range, such as mass, time or length, so it is grouped into classes rather than counted in categories.
- Discrete data
- Data that takes particular separate values, such as the number of pets in a household, usually shown on a bar chart.
- Bar chart
- A diagram for discrete categories in which the bars are the same width and separated by gaps, and the height of a bar is the frequency.
- Area of a bar
- Height multiplied by width on a histogram, which equals the frequency of the class.
- Frequency
- The number of values in a class. On a histogram it is found as frequency density \times class width.
- Grouped frequency table
- A table showing classes of continuous data and the frequency of each class.
- Class interval
- Another name for a class: the range of values it covers, written as .
- Unequal class widths
- Classes of different widths in one table. They are the reason frequency density, and not frequency, is plotted on a histogram.
- Vertical axis
- The axis of a histogram, always labelled 'Frequency density'.
- Modal class
- The class with the greatest frequency. On a histogram with unequal class widths it is not necessarily the tallest bar.
In context
Cambridge sets 0580 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.
For the 72 apples, divide each frequency by its class width: , , , , , and . The tallest bar is the class at 0.9.
A histogram of the 72 apples has a bar of height 0.4 over the class . The class width is 20, so the class holds apples. Checking the other way, , which agrees.
The class holds 12 apples and the class holds 8, but the first bar is 0.3 high and the second is 0.4. The first class is 40 g wide and the second is only 20 g wide, and on a histogram it is the area that matters.
Merging , with 4 apples, and , with 10 apples, gives the class with 14 apples and a width of 40. Its frequency density is , between the original heights of 0.2 and 0.5, and the area is unchanged.
A bar on a histogram is 1.5 high and stands for 45 values. Its class width is . Working backwards always means dividing the frequency by the frequency density, never multiplying.
Flashcards
Click a card to flip it. Mark honestly — the tracker uses this.
Exam-style questions
7 questions, 17 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.
Mark scheme — tick each point you actually made
- B1class width not checked yet
- B1frequency density not checked yet
Mark scheme — tick each point you actually made
- M1
- A14 applesnot checked yet
Mark scheme — tick each point you actually made
- M1
- A1
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1 carsnot checked yet
Mark scheme — tick each point you actually made
- B1
- B1
Mark scheme — tick each point you actually made
- B1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- M1
- A1not checked yet
Exam technique for this topic
- Write the class width column before the frequency density column, and write the division down. 'Frequency density = 18 \div 20 = 0.9' earns more than a bare 0.9, and it is what the mark scheme is looking for.
- Label the vertical axis 'Frequency density' every time. An unlabelled axis on a histogram is a lost mark even when every bar is the right height.
- Check your frequency densities against the frequencies. If the class with the biggest frequency does not have one of the biggest densities, look at the widths again: a wide class pulls its density down.
- Decide what the question wants before you calculate. A frequency is the area of a bar, a frequency density is frequency \div class width, and a class width is frequency \div frequency density.
- Read heights against the frequency density scale and use the gridlines. A bar top halfway between 0.6 and 0.7 is 0.65, not 6.5 and not 0.6.