Histograms, box plots & cumulative frequency

Math · Stats & Probability

Question 1 of 10

0

    On 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.

    Print a free worksheet (PDF)

    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: frequency density=frequencyclass width\text{frequency density} = \dfrac{\text{frequency}}{\text{class width}}, so frequency == frequency density ×\times 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 IQR=UQ−LQ\text{IQR} = \text{UQ} - \text{LQ}, 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 nn values, read the median at n2\tfrac{n}{2}, the lower quartile at n4\tfrac{n}{4} and the upper quartile at 3n4\tfrac{3n}{4}, then find the matching values on the horizontal axis.

    Worked example

    A histogram has a bar for 20<t≤3020 < t \le 30 with frequency density 3.53.5. Its class width is 30−20=1030 - 20 = 10, so its frequency is 3.5×10=353.5 \times 10 = 35 values. Check: 35÷10=3.535 \div 10 = 3.5.

    For a cumulative frequency graph with n=80n = 80, the median is read at cumulative frequency 4040. A common mistake is dividing the frequency density by the width, which gives 0.350.35 and is never a frequency.

    Key facts

    • Median, lower quartile and upper quartile are read from a cumulative frequency graph at n2\tfrac{n}{2}, n4\tfrac{n}{4} and 3n4\tfrac{3n}{4}.
    • Class midpoint =lower boundary+upper boundary2= \dfrac{\text{lower boundary} + \text{upper boundary}}{2}. 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.

    • 0<t≤100 < t \le 10: frequency density 1.21.2
    • 10<t≤2510 < t \le 25: frequency density 2.42.4
    • 25<t≤3025 < t \le 30: frequency density 44
    • 30<t≤5030 < t \le 50: frequency density 1.61.6

    Find the frequency of each class, and estimate how many values are greater than 27.

    1. Frequency is density times width. Class 1: 1.2×10=121.2 \times 10 = 12. Class 2: 2.4×15=362.4 \times 15 = 36.
    2. Class 3: 4×5=204 \times 5 = 20. Class 4: 1.6×20=321.6 \times 20 = 32. The total is 12+36+20+32=10012 + 36 + 20 + 32 = 100.
    3. The bar for 25<t≤3025 < t \le 30 covers 25 to 30. The part above 27 is 30−27=330 - 27 = 3 wide, so it holds 4×3=124 \times 3 = 12 values (assuming they are spread evenly).
    4. Add the whole class above it: 12+32=4412 + 32 = 44.

    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.

    1. Median: 802=40\tfrac{80}{2} = 40th value. Cumulative frequency 40 lies in the class 20<t≤3020 < t \le 30 (between 20 and 44). Moving along that class: 20+40−2044−20×10=28.320 + \tfrac{40 - 20}{44 - 20} \times 10 = 28.3.
    2. Lower quartile: 804=20\tfrac{80}{4} = 20th value. Cumulative frequency 20 is reached exactly at t=20t = 20, so LQ=20\text{LQ} = 20.
    3. Upper quartile: 3×804=60\tfrac{3 \times 80}{4} = 60th value, in 30<t≤4030 < t \le 40: 30+60−4466−44×10=37.330 + \tfrac{60 - 44}{66 - 44} \times 10 = 37.3.
    4. IQR=37.3−20=17.3\text{IQR} = 37.3 - 20 = 17.3.
    5. For the mean, find each frequency by subtracting: 6, 14, 24, 22, 10, 4. The midpoints are 5, 15, 25, 35, 45, 55. Then 6×5+14×15+24×25+22×35+10×45+4×5580=228080=28.5\tfrac{6\times5 + 14\times15 + 24\times25 + 22\times35 + 10\times45 + 4\times55}{80} = \tfrac{2280}{80} = 28.5.

    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.