Cumulative frequency and box plots

Cumulative frequency and box plots

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Cumulative frequency is a running total, plotted at the upper class boundary.
  • Read the median at n2\frac n2, the quartiles at n4\frac n4 and 3n4\frac{3n}4.
  • IQR =Q3−Q1=Q_3-Q_1 is the spread of the middle half and ignores outliers.
  • A box plot shows the five-number summary; the box runs from Q1Q_1 to Q3Q_3.
  • Compare data with a median comment and a spread comment.

Cumulative frequency

Cumulative frequency is a running total, plotted against the upper class boundary and joined with a smooth curve.

Cumulative frequency is a running total of the frequencies. It tells you how many values are less than or equal to the upper end of each class.

To draw a cumulative frequency graph, plot each total against the upper class boundary. Start at the lowest value with cumulative frequency 00, then join the points with a smooth curve (or straight lines if you are told to).

The last point has cumulative frequency equal to the total frequency.

01020304002468Mass (upper boundary)Cumulative frequency
Cumulative frequency plotted at the upper class boundaries

Worked example

Masses: 0<m≤20<m\le2: 4, 2<m≤42<m\le4: 11, 4<m≤64<m\le6: 17, 6<m≤86<m\le8: 8. Find the cumulative frequencies.

Cumulative frequency is plotted at which part of each class?

Median and quartiles

Read the graph at n4\frac n4, n2\frac n2 and 3n4\frac{3n}{4} on the cumulative frequency axis.

For nn values, read the graph at these heights on the cumulative frequency axis:

  • lower quartile Q1Q_1 at n4\frac{n}{4}
  • median at n2\frac{n}{2}
  • upper quartile Q3Q_3 at 3n4\frac{3n}{4}

Go across from the height to the curve, then down to the horizontal axis and read the value. The quartiles split the data into four equal parts.

0ABC4010Q₁ ≈ 3.120median ≈ 4.630Q₃ ≈ 5.8
Reading the quartiles for n = 40 (vertical axis drawn at one fifth scale: height 4 = frequency 20). Illustrative values.
  • Lower quartile Q1Q_1at n4\frac{n}{4}
  • Medianat n2\frac{n}{2}
  • Upper quartile Q3Q_3at 3n4\frac{3n}{4}

Worked example

For the n=40n=40 masses above, where do you read the median and quartiles, and roughly what are they?

A cumulative frequency graph has n=60n=60. At what height is the upper quartile read?

Range and interquartile range

The IQR is Q3−Q1Q_3-Q_1 and ignores extreme values, so it is often better than the range.

The range is the largest value minus the smallest value.

The interquartile range (IQR) is Q3−Q1Q_3-Q_1 and measures the spread of the middle half of the data.

The IQR is not affected by extreme values, so it is often a better measure of spread than the range. A smaller IQR means the data is more consistent.

05101520253035404550min 10Q₁ 20median 25Q₃ 35max 50
Illustrative data: range = 50 − 10 = 40, IQR = 35 − 20 = 15
  • Rangelargest − smallest
  • IQRQ3−Q1Q_3-Q_1

Worked example

Q1=30Q_1=30 and Q3=50Q_3=50 minutes. Find the IQR.

Q1=12Q_1=12 and Q3=20Q_3=20. What is the IQR?

Drawing a box plot

A box plot uses the five-number summary: a box from Q1Q_1 to Q3Q_3 with a line at the median, and whiskers to the extremes.

A box-and-whisker plot uses a number line and the five-number summary: minimum, lower quartile, median, upper quartile, maximum.

  1. Draw a scale that covers all values.
  2. Draw a box from Q1Q_1 to Q3Q_3.
  3. Draw a vertical line inside the box at the median.
  4. Draw whiskers from the box out to the minimum and the maximum.

The box contains the middle 50% of the data. Each whisker and each half of the box holds about 25% of the data.

min 10bcdefmedian 25m2gmax 50
Box plot for minimum 10, Q1 20, median 25, Q3 35, maximum 50

Where does the box of a box plot start and end?

Comparing box plots

Compare the medians for average and the IQRs for spread, always in context.

Compare two data sets using one measure of average and one of spread, always in context.

  • Average: the median. A higher median means higher typical values.
  • Spread: the IQR or the range. A smaller spread means more consistent values.

About 75% of values lie below Q3Q_3, and about 25% lie above it.

0510152025Restaurant XRestaurant YRestaurantMinutes
  • Median
  • IQR
Same median, very different spread: Restaurant Y is more consistent

Restaurant X

Median:
25 min
IQR:
16 min

Restaurant Y

Median:
26 min
IQR:
8 min

Worked example

Restaurant X has median 2525 min and IQR 1616 min. Restaurant Y has median 2626 min and IQR 88 min. Compare them.

Which two measures should a comparison use?

Try an exam question

Journey times have minimum 1010, lower quartile 2020, median 2525, upper quartile 3535 and maximum 5050 minutes. Work out the interquartile range and the range.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

How many students spent more than 50 minutes on homework?

1 mark, marked against the mark scheme

Revision notes