4.2 Presentation of data

4.2 Presentation of data

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Write class intervals as inequalities, with no gaps or overlaps.
  • Histograms here have equal class widths; heights are frequencies.
  • Median at n2\frac n2, quartiles at n4\frac n4 and 3n4\frac{3n}{4}, ppth percentile at p100n\frac{p}{100}n; interpolate within a class.
  • IQR =Q3−Q1=Q_3-Q_1; outliers lie beyond 1.5×1.5\timesIQR from the quartiles.
  • Compare a centre and a spread, in context.
  • Symmetric box and whiskers suggest a normal model may fit; skewed data do not.

Frequency tables and classes

For continuous data, write classes as inequalities with no gaps or overlaps, so every value belongs to exactly one class.

A frequency distribution lists each class with its frequency (the number of data items in it). Classes such as 10≤L<1510\le L<15, 15≤L<2015\le L<20 put 15 cm into the second class only.

Grouping loses individual values, so anything calculated from a grouped table (median, quartiles) is an estimate.

0246810 ≤ L < 1515 ≤ L < 2020 ≤ L < 2525 ≤ L < 30Length L (cm)Frequency
Illustrative frequencies for classes with no gaps or overlaps: every length belongs to exactly one class.

Correct

  • 10≤L<1510\le L<15
  • 15≤L<2015\le L<20
  • No gaps, no overlaps

Incorrect

  • 10–15
  • 16–20
  • 15.5 fits neither class

Which set of classes is correct for continuous data?

Frequency histograms

With equal class widths the bars touch and their heights are the class frequencies, showing the shape of the data.

A frequency histogram shows where data cluster, whether the distribution is symmetric or skewed, and any gaps. Bars of heights 4, 9, 15, 12, 7, 3 for classes of width 5 cm from 10 cm are read exactly like a frequency table. (Unequal widths and frequency density are not required.)

024681012141610–1515–2020–2525–3030–3535–40Length L (cm)Frequency
Example frequency histogram: lengths in classes of width 5 cm

In the example, how many items are in the class 20≤L<2520\le L<25?

Cumulative frequency and quartiles

Use positions n2\frac n2, n4\frac n4 and 3n4\frac{3n}{4} on the cumulative frequency, interpolating within a class.

Cumulative frequency is the number of items less than a value. The median is at n2\frac n2, lower quartile Q1Q_1 at n4\frac n4, upper quartile Q3Q_3 at 3n4\frac{3n}{4} and the ppth percentile at p100n\frac{p}{100}n. IQR =Q3−Q1=Q_3-Q_1.

Without a graph, use linear interpolation: rr items into a class of width ww with ff items starting at aa gives a+rf×wa+\frac rf\times w. Plot at upper class boundaries.

510152025303540510152025303540xyQ₁medianQ₃cumulative frequency
Illustrative cumulative frequency curve for n = 40: median at 20, Q₁ at 10, Q₃ at 30 (read across, then down).
  • Medianposition n2\dfrac n2
  • Lower quartileposition n4\dfrac n4
  • Upper quartileposition 3n4\dfrac{3n}{4}

Worked example

200 apples: 90 have mass below 140 g, and 60 are in the class 140≤m<160140\le m<160. Estimate the median.

For 80 data items, at which position on the cumulative frequency axis is Q3Q_3?

Box and whisker diagrams

It displays the five-number summary, with outliers shown as separate points.

The five-number summary is the minimum, Q1Q_1, median, Q3Q_3 and maximum. The box runs from Q1Q_1 to Q3Q_3 with a line at the median. Outliers are shown as separate points, and the whisker stops at the most extreme value that is not an outlier.

You should be able to give the quartiles, IQR and outlier boundaries from a diagram or summary.

02040608010012014016018020022024026020Q₁Q₃220230

Q1=95Q_1=95, Q3=145Q_3=145: IQR =50=50, boundaries 95−75=2095-75=20 and 145+75=220145+75=220, so 230 is an outlier.

Q1=40Q_1=40 and Q3=70Q_3=70. Is a value of 120 an outlier?

Comparing distributions

Compare one measure of centre and one of spread, and say what each means in context.

For example: "the median wait at B is 40 s shorter, so a typical customer is served faster". If the median is near the middle of the box and the whiskers are similar, the data are roughly symmetric and may be normally distributed. Skewed data are not well modelled by a normal distribution.

020406080100120ABMedian wait (s)
Median waiting time at A (120 s) and B (80 s): B is 40 s shorter, so a typical customer at B is served faster.

Symmetric

Median position:
Roughly in the middle of the box
Tail:
Whiskers of similar length

Positively skewed

Median position:
Closer to Q1Q_1
Tail:
Long tail towards higher values

Negatively skewed

Median position:
Closer to Q3Q_3
Tail:
Long tail towards lower values

The median is much closer to Q3Q_3 than to Q1Q_1. The distribution is:

Try an exam question

A data set has minimum 12, Q1=20Q_1=20, median 26, Q3=34Q_3=34 and maximum 62. (a) Find the interquartile range. (b) Show that 62 is an outlier.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which class contains the median time?

1 mark, marked against the mark scheme

Revision notes