Cumulative frequency and box plots

Cumulative frequency and box plots

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Cumulative frequency is a running total, plotted against the upper class boundary.
  • Read the graph at n4\frac{n}{4} (lower quartile), n2\frac{n}{2} (median) and 3n4\frac{3n}{4} (upper quartile).
  • Interquartile range =Q3−Q1=Q_3-Q_1; it ignores extreme values.
  • A box plot uses the five-number summary: the box runs from Q1Q_1 to Q3Q_3, the whiskers reach the minimum and maximum.
  • Compare data using the median (average) and the IQR or range (spread), in context.

Cumulative frequency

Add up the frequencies as a running total and plot each total against the upper class boundary.

Cumulative frequency is a running total of the frequencies. For the masses 0<m≤20<m\le2: 4, 2<m≤42<m\le4: 11, 4<m≤64<m\le6: 17 the cumulative frequencies are 44, 4+11=154+11=15 and 15+17=3215+17=32.

Plot each total against the upper class boundary, giving points (2,4)(2,4), (4,15)(4,15), (6,32)(6,32). Start at the lowest value with cumulative frequency 00 and join with a smooth curve. The last point equals the total frequency.

0510152025300246Mass mCumulative frequency
Cumulative frequency at each upper class boundary

A cumulative frequency graph is plotted against which part of each class?

Median and quartiles

Read across at n4\frac{n}{4}, n2\frac{n}{2} and 3n4\frac{3n}{4}, then down to the horizontal axis.

The quartiles split the data into four equal parts.

Go across from the height to the curve, then down to the horizontal axis and read the value. The answer is a value from the horizontal axis, not the height you started at.

1020304050607080901001020304050607080xyQ₁ ≈ 39Median = 50Q₃ ≈ 61Cumulative frequency
Cumulative frequency curve for 80 values (illustrative): read across at 20, 40 and 60, then down.
  • Lower quartile Q₁read at n4\dfrac{n}{4}
  • Medianread at n2\dfrac{n}{2}
  • Upper quartile Q₃read at 3n4\dfrac{3n}{4}

Worked example

A cumulative frequency graph shows n=40n=40 values. At what heights do you read the median and quartiles?

For 60 values, at what cumulative frequency do you read the upper quartile?

Range and interquartile range

The IQR is Q3−Q1Q_3-Q_1: the spread of the middle half of the data.

The range is the largest value minus the smallest value. The interquartile range (IQR) 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 are more consistent.

0102030405060708090100Min 10Q₁ 39Median 50Q₃ 61Max 90
  • Rangelargest − smallest
  • IQRQ3−Q1Q_3-Q_1

Worked example

The lower quartile is Q1=30Q_1=30 minutes and the upper quartile is Q3=50Q_3=50 minutes. Find the IQR.

Why is the IQR often better than the range?

Drawing a box plot

Draw a scale, then the box from Q1Q_1 to Q3Q_3, 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.

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

0246810121416182022min 2Q1 5median 8Q3 12max 20
Summary 2, 5, 8, 12, 20: the shaded range is the box (Q1 to Q3)
  1. 1

    Draw a scale

    cover all the values

  2. 2

    Draw the box

    from Q1 to Q3

  3. 3

    Mark the median

    a vertical line inside the box

  4. 4

    Draw whiskers

    from the box out to the minimum and maximum

Drawing a box plot

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

Comparing box plots

Compare one measure of average (the median) and one of spread (the IQR), in context.

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

A higher median means higher typical values. A smaller spread (IQR or range) means more consistent values. About 75% of values lie below Q3Q_3, and about 25% lie above it.

0510152025MedianIQRMinutes
  • Restaurant X
  • Restaurant Y
Delivery times (minutes)

Y is slightly slower on average, but its deliveries are much more consistent.

Restaurant X has median 25 and IQR 16. Restaurant Y has median 26 and IQR 8. Which has the more consistent times?

Try an exam question

The lower quartile of a set of times is 2424 minutes and the upper quartile is 4040 minutes. Find the interquartile range, and give one reason why it can be better than 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