4.2 Presentation of data

4.2 Presentation of data

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Classes are written 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}, the ppth percentile at p100n\frac{p}{100}n; interpolate within a class.
  • IQR =Q3−Q1=Q_3-Q_1; outliers lie beyond 1.5×IQR1.5\times\text{IQR} 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

Use inequalities with no gaps or overlaps, so every value belongs to exactly one class.

A frequency distribution lists each value or class with its frequency: how many data items it contains.

For continuous data, write each class interval as an inequality, for example 10≤L<1510\le L<15 and 15≤L<2015\le L<20. Every possible value belongs to exactly one class: 15 cm goes in 15≤L<2015\le L<20.

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

Correct

First class:
10≤L<1510\le L<15
Second class:
15≤L<2015\le L<20

Gaps (wrong)

First class:
10–15
Second class:
16–20

Which class does a length of exactly 20 cm go into?

Frequency histograms

Touching bars whose heights are the class frequencies show where the data cluster and whether they are skewed.

A frequency histogram with equal class widths has touching bars whose heights are the class frequencies. It shows the shape: where the data cluster, whether it is symmetric or skewed, and any gaps.

Unlike a bar chart for categories, a histogram has no gaps between bars, because the data are continuous.

Read it like a frequency table. The bars below give 4, 9, 15, 12, 7 and 3, so there are 50 items in total. Frequency density histograms with unequal widths are not required.

024681012141610–1515–2020–2525–3030–3535–40Length L (cm)Frequency
Lengths in classes of width 5 cm, starting at 10 cm

Using the histogram above, which class contains the median (the 25th value)?

Cumulative frequency and percentiles

Read the value at position n2\frac n2, n4\frac n4 or 3n4\frac{3n}{4} from a cumulative frequency graph, or interpolate within a class.

The cumulative frequency up to a value is the number of items less than it. It is plotted at the upper class boundary. From it you can estimate the median, quartiles, percentiles, interquartile range (Q3−Q1Q_3-Q_1) and range.

Without a graph, use linear interpolation. If the position lies rr items into a class of width ww containing ff items, starting at aa:

estimate=a+rf×w.\text{estimate}=a+\frac{r}{f}\times w.

  • Medianposition n2\frac n2
  • Quartilespositions n4\frac n4 and 3n4\frac{3n}{4}
  • pth percentileposition p100×n\frac{p}{100}\times n

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.

In a cumulative frequency graph of 80 values, at what position do you read the upper quartile?

Box and whisker diagrams

The five-number summary, with outliers marked separately.

A box and whisker diagram displays the five-number summary: minimum, Q1Q_1, median, Q3Q_3, maximum.

The box runs from Q1Q_1 to Q3Q_3 with a line at the median. Outliers are shown as separate points. The whisker stops at the most extreme value that is not an outlier.

You must give the features (quartiles, IQR, outlier boundaries) as well as draw the diagram.

Example: Q1=95Q_1=95 and Q3=145Q_3=145, so IQR=50\text{IQR}=50 and 1.5×50=751.5\times50=75. The boundaries are 2020 and 220220, so 230 is an outlier.

02040608010012014016018020022024026020Q₁ = 95Q₃ = 145220230

Q1=10Q_1=10 and Q3=30Q_3=30. What are the outlier boundaries?

Comparing distributions and skew

Compare one centre and one spread in context, and use the median's position in the box to judge skew.

Compare one measure of centre (median) and one measure of spread (IQR or range), and interpret each in context: 'the median wait at B is 40 s shorter, so a typical customer is served faster'. Use the IQR when there are outliers, because the range is distorted.

If the median is near the middle of the box and the whiskers are similar, the data are symmetric and may be normally distributed. A median closer to Q1Q_1 means positively skewed; closer to Q3Q_3 means negatively skewed. Skewed data are not well modelled by a normal distribution.

Symmetric

Median:
Middle of the box
Tail:
Similar on both sides
Normal model:
May fit

Positively skewed

Median:
Closer to Q₁
Tail:
Longer to the right
Normal model:
Does not fit

Negatively skewed

Median:
Closer to Q₃
Tail:
Longer to the left
Normal model:
Does not fit

In a box and whisker diagram the median is much closer to Q₁ than to Q₃. What is the skew?

Try an exam question

A data set has Q1=28Q_1=28, median 3131, Q3=44Q_3=44 and maximum 7070. (a) Find the interquartile range. (b) Find the upper outlier boundary and state whether 70 is an outlier. (c) Describe the skew.

[4 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