A histogram looks like a bar chart but the area of each bar, not its height, shows the frequency. This lets you draw classes of different widths fairly. It is a Higher-only topic worth several marks.
Key facts
Frequency density =class widthfrequency.
Frequency = frequency density × class width (the area of the bar).
The vertical axis is labelled 'frequency density', never 'frequency'.
Bars touch, and there are no gaps, because the data is continuous.
Drawing a histogram
Work out each class width.
Divide each frequency by its class width to get the frequency density.
Draw bars with the class boundaries as edges and frequency density as heights.
Finding frequencies from a histogram
Read the frequency density of the bar.
Multiply by the class width.
For part of a bar, multiply by just the width of the part you need.
Estimating the median or a quartile
Work out its position, e.g. the median is about the 2nth value.
Add up the bar frequencies from the left until you reach the bar it lies in.
Go into that bar the right fraction of its width.
Worked examples
Example 1Higher · grade 6
Find the frequency densities for this table of heights, h cm: 0<h≤10: 15 10<h≤15: 20 15<h≤25: 30 25<h≤45: 16
On a histogram, the bar for 20<x≤30 has frequency density 2.4 and the bar for 30<x≤50 has frequency density 1.5. Estimate how many values are between 25 and 40.
Show the solution
Frequency for 20<x≤30: 2.4×10=24 Frequency for 30<x≤50: 1.5×20=30 25 to 30 is half of the first bar: 24 ÷ 2 = 12 30 to 40 is half of the second bar: 30 ÷ 2 = 15 Estimate = 12 + 15 = 27
Example 3Higher · grade 7
Use the table of heights in the first example (81 people) to estimate the median height.
Show the solution
Median position: 81÷2=40.5 The first two classes hold 15+20=35 people, so the median is 5.5 people into the 15<h≤25 class. That class holds 30 people across 10 cm: 305.5×10=1.83… Median ≈15+1.83=16.8 cm
Common mistakes
Plotting frequency instead of frequency density on the vertical axis.
Reading a bar's height as its frequency. Multiply by the width.
Using the wrong class width, for example 10 instead of 20 for 25<h≤45.
Exam tips
If the scale on the vertical axis is not labelled, use one bar with a known frequency to work it out.
Add a frequency density column to the table: it earns method marks and keeps your working tidy.
Questions people ask
How do you calculate frequency density?
Divide the frequency by the class width. For example, 30 values in a class 10 wide gives a frequency density of 3.
What is the difference between a histogram and a bar chart?
In a bar chart the height shows the frequency. In a histogram the area of the bar shows the frequency, so classes can have different widths.
Bars of frequency density 4.5 for 19<t≤21 and 1.4 for 21<t≤26
2 marks
(c)
18.5 seconds
3 marks
Worked solution Checked against the mark scheme
(a) The 12–16 bar has frequency 10 and width 4, so its frequency density is 2.5. The 10–12 bar is 1.5 high, so its frequency is 1.5×2=3.
(b) 9÷2=4.5 and 7÷5=1.4, so draw bars of those heights.
(c) Frequencies: 4,8,16,13,2 (total 43). The median is the 22nd value. After 16 s there are 12 students, so we need 10 more of the 16 in the 16–20 class: 16+1610×4=18.5 seconds.
Watch out: Using bar heights as frequencies instead of frequency density × class width.
November 2018 · Paper 1 Higher · Q9: Read quartiles from a cumulative frequency graph to draw a box plot, compare it with another box plot, and judge a claim about the data.