Histograms, box plots & cumulative frequency
Math · Stats & Probability
Question 1 of 10
0On a box plot, what does the line drawn inside the box show?
Stuck? Read the explanation
Unlocks at a streak of 5 correct answers in a row.
Embed this practice on your site or class page
Paste this HTML into your page. Students practise right there; it is free and needs no account.
Histograms, box plots & cumulative frequency explained
A histogram shows how a continuous quantity, such as height or journey time, is spread across classes. The bars touch, and when the class widths are unequal the height of each bar must be the frequency density, because the area of each bar is the frequency. A box plot and a cumulative frequency graph summarise the same data with a few key values.
- Frequency density: , so frequency frequency density class width.
- Box plot: the box runs from the lower quartile (LQ) to the upper quartile (UQ), and the line inside marks the median. The interquartile range is , which covers the middle 50 per cent of the data. Compare two box plots by comparing their medians and their IQRs.
- Cumulative frequency: plot cumulative frequency against the upper class boundary. For values, read the median at , the lower quartile at and the upper quartile at , then find the matching values on the horizontal axis.
Worked example
A histogram has a bar for with frequency density . Its class width is , so its frequency is values. Check: .
For a cumulative frequency graph with , the median is read at cumulative frequency . A common mistake is dividing the frequency density by the width, which gives and is never a frequency.
Key facts
- Median, lower quartile and upper quartile are read from a cumulative frequency graph at , and .
- Class midpoint . It is used to estimate a mean from grouped data.
- A frequency is the difference between two neighbouring cumulative frequencies.
- Grouped data gives estimates only, because the individual values are not known.
Worked example 2
A histogram has these bars. The unequal widths mean the heights are frequency densities.
- : frequency density
- : frequency density
- : frequency density
- : frequency density
Find the frequency of each class, and estimate how many values are greater than 27.
- Frequency is density times width. Class 1: . Class 2: .
- Class 3: . Class 4: . The total is .
- The bar for covers 25 to 30. The part above 27 is wide, so it holds values (assuming they are spread evenly).
- Add the whole class above it: .
About 44 values, which is 44% of the data.
Worked example 3
80 journey times (minutes) are grouped. The cumulative frequencies at the upper boundaries 10, 20, 30, 40, 50 and 60 (the first class starts at 0) are 6, 20, 44, 66, 76 and 80.
Estimate the median and the interquartile range, and the mean.
- Median: th value. Cumulative frequency 40 lies in the class (between 20 and 44). Moving along that class: .
- Lower quartile: th value. Cumulative frequency 20 is reached exactly at , so .
- Upper quartile: th value, in : .
- .
- For the mean, find each frequency by subtracting: 6, 14, 24, 22, 10, 4. The midpoints are 5, 15, 25, 35, 45, 55. Then .
Common mistakes
- Using bar heights as frequencies when the class widths are unequal. Multiply the height by the width.
- Plotting cumulative frequency at the midpoint or the lower boundary. Plot at the upper boundary: that is where the running total is complete.
- Reading a cumulative frequency as the class frequency. A class frequency is the difference between two cumulative values.
- Drawing a box plot from the highest and lowest class limits without noting that these are estimates.
- Calling a distribution "better" because the median is higher. Comparisons need a measure of average and a measure of spread.
Exam tips
- To compare two distributions, write one statement about the medians and one about the IQRs, each with the numbers, in the context of the question. For example, "the median journey time is higher on Monday, but the IQR is smaller, so Monday's times are more consistent".
- Draw the lines on a cumulative frequency graph from the axis to the curve and back to the axis. Read the value carefully, since small slips of the scale lose marks.
- On a histogram, label the vertical axis "frequency density", not "frequency".
- When the question says "estimate", state the assumption: the values are spread evenly within each class.
- Check that the last cumulative frequency equals the total number of values.
Longer guide: How to draw and read a cumulative frequency graph
What you will practise
100 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.
Example questions
- In a histogram with unequal class widths, what does the area of each bar represent?
- Which formula gives the frequency density of a histogram bar?
- A class on a histogram is 20 < h ≤ 35, where h is height in cm. What is the class width?
- A histogram bar has frequency 24 and class width 6. What is its frequency density?
- A histogram bar has frequency density 3.5 and class width 8. How many values does the bar represent?
- On a box plot, what does the line drawn inside the box show?
- The upper quartile of a data set is 42 and the lower quartile is 27. What is the interquartile range?
- A box plot has a smallest value of 6 and a largest value of 48. What is the range of the data?
…and 92 more.