Histograms and frequency density
A histogram looks like a bar chart, but it is built for grouped continuous data and the two are not the same thing. In a bar chart the height tells you the frequency and the bars have gaps. In a histogram the bars touch, and it is the area of each bar, not its height, that represents the frequency.
That matters as soon as the class intervals are different widths. To keep areas fair, the vertical axis plots frequency density, not frequency:
- Class width
- The size of an interval: upper boundary minus lower boundary. The class \(10 \le x < 25\) has width \(15\).
- Frequency density
- Frequency per unit of the measured quantity. Plotting it on the vertical axis makes each bar's area equal to its frequency.
Find the frequency density for each unequal class below, ready to draw the histogram.
Height is not frequency
To recover a frequency from a finished histogram, multiply the bar's height (density) by its width to get back the area. Reading the height alone is the classic histogram trap.
Cumulative frequency curves
Cumulative frequency is a running total: for each class you add its frequency to all the frequencies before it. The final cumulative total equals the number of data values, \(n\).
You plot cumulative frequency against the upper boundary of each class, then join the points with a smooth curve. The result climbs from bottom-left to top-right in a stretched "S" shape (an ogive).
| Mark \(m\) | Frequency | Upper boundary | Cumulative frequency |
|---|---|---|---|
| \(0 < m \le 20\) | 5 | 20 | 5 |
| \(20 < m \le 40\) | 11 | 40 | 16 |
| \(40 < m \le 60\) | 18 | 60 | 34 |
| \(60 < m \le 80\) | 10 | 80 | 44 |
| \(80 < m \le 100\) | 6 | 100 | 50 |
Here \(n = 50\), so the curve ends at a height of \(50\). The points you would plot are \((20, 5)\), \((40, 16)\), \((60, 34)\), \((80, 44)\) and \((100, 50)\).
Reading the median and quartiles
The great strength of the curve is that it hands you the median and quartiles by reading across from the vertical axis. For \(n\) values:
- Median: read across from \(\dfrac{n}{2}\).
- Lower quartile \(Q_1\): read across from \(\dfrac{n}{4}\).
- Upper quartile \(Q_3\): read across from \(\dfrac{3n}{4}\).
Using the table above (\(n = 50\)), read off the median and the interquartile range.
Show your read-lines
Draw the dashed lines you used to read a value, straight across from the axis then straight down. They show the examiner your method (Criterion C) and let you pick up marks even if the final read is slightly off.
Box-and-whisker plots
A box plot is the tidiest summary of a distribution. It is drawn from the five-number summary: the minimum, \(Q_1\), the median, \(Q_3\), and the maximum. The box spans \(Q_1\) to \(Q_3\) (so its length is the IQR), a line inside marks the median, and the whiskers reach out to the smallest and largest values.
Find the five-number summary of: 5, 8, 9, 12, 14, 15, 18, 20, 22, 25, 30, and describe the box plot.
Where this is assessed
Drawing the graph correctly is Criterion C (communicating). Comparing two box plots, for example "the second class has a higher median but a wider IQR, so it is more spread out", is Criterion D and often Criterion B when it forms part of an investigation.
Check yourself
Try each before revealing the answer.
1. A histogram class \(20 \le x < 50\) has frequency \(24\). What is its frequency density? +
Class width \(= 50 - 20 = 30\). Frequency density \(= \dfrac{24}{30} = \) \(0.8\).
2. On a cumulative frequency curve for \(n = 80\) values, which cumulative frequency do you read across from to find the upper quartile? +
The upper quartile is read from \(\dfrac{3n}{4} = \dfrac{3 \times 80}{4} = \) \(60\). (The median would be read from \(40\) and the lower quartile from \(20\).)
3. A box plot shows minimum 4, \(Q_1 = 10\), median 13, \(Q_3 = 19\), maximum 28. State the IQR and the range. +
IQR \(= Q_3 - Q_1 = 19 - 10 = \) \(9\). Range \(= \text{max} - \text{min} = 28 - 4 = \) \(24\).
Part of the Extended Maths library. Spotted an error or want a topic added? That feedback makes the notes better.