IB Mathematics: Applications and Interpretation HL 6 Sections80 LessonsLifetime
Presentation of data AI HL
Lesson 4.2 · Presentation of data
Organise data in tables and graphs, then use cumulative frequency and box-and-whisker diagrams to interpret distributions.
A living hope
Peter writes that God has given believers “new birth into a living hope through the resurrection of Jesus Christ from the dead, and into an inheritance that can never perish, spoil or fade. This inheritance is kept in heaven for you.” 1 Peter 1:3–4 (NIV)
Graphs help us organise information so that patterns become easier to see. The Bible’s promise of an inheritance kept in heaven gives Christians a hope that does not fade. Our confidence in eternal life rests on God’s promise through the resurrection of Jesus.
Learning objectives
By the end of this lesson, you should be able to:
- organise data in a frequency table and represent it with a histogram;
- construct and interpret a cumulative frequency table and graph;
- estimate the median, quartiles, percentiles, range and interquartile range;
- draw and interpret a box-and-whisker diagram; and
- compare distributions using their centre, spread, shape and outliers.
1. Frequency tables and grouped data
A frequency table records how often values or groups of values occur. For continuous data, values are often organised into class intervals.
For example, the interval
includes values greater than 10 and up to and including 20. When class intervals are written as inequalities, check carefully which boundary values are included.
The lengths of salmon caught by a fisherman over one month are grouped into equal intervals. Reading the bar heights from the histogram gives the following frequencies:
| Salmon length, |
Frequency |
|---|---|
| 0 | |
| 42 | |
| 33 | |
| 52 | |
| 60 | |
| 25 | |
| 38 | |
| 14 | |
| 7 |
The greatest frequency is 60, so the class interval with the most salmon is
cm.
Frequencies read from a drawn graph may be approximate if the bar heights do not fall exactly on grid lines.
2. Histograms
A histogram represents grouped numerical data using adjoining bars. The horizontal axis shows the class intervals, and the vertical axis shows frequency for equal-width classes.
- Draw the bars so that they touch; the data are continuous.
- Label both axes and include units where appropriate.
- Use a consistent scale and show each class interval clearly.
- For this syllabus section, histograms use equal class intervals.
Use the table below to draw a histogram. The class intervals all have width 5, so use frequency as the height of each bar.
| Class interval | Frequency |
|---|---|
| 5 | |
| 10 | |
| 12 | |
| 8 |
Draw four adjoining bars over the intervals, with heights 5, 10, 12 and 8. Label the horizontal axis
and the vertical axis “Frequency.”
3. Cumulative frequency
Cumulative frequency is the running total of frequencies up to and including each class. It tells us how many data values are below a particular class boundary.
A class of 30 students has marks grouped as shown. Add each frequency to the total of all previous frequencies.
| Marks, |
Frequency | Cumulative frequency |
|---|---|---|
| 2 | 2 | |
| 3 | 5 | |
| 5 | 10 | |
| 7 | 17 | |
| 6 | 23 | |
| 4 | 27 | |
| 2 | 29 | |
| 1 | 30 |
For example, the cumulative frequency at 70 marks is 23. This means that approximately 23 students scored below 70 marks.
Drawing a cumulative frequency graph
- Calculate the cumulative frequency for each class.
- Plot each cumulative frequency against the upper boundary of its class.
- Begin at the lower boundary of the first class with cumulative frequency 0.
- Join the points with a smooth increasing curve.
For the table above, plot
.
4. Finding the median, quartiles and percentiles
On a cumulative frequency graph, read a data value from the horizontal axis after locating the required cumulative frequency on the vertical axis.
For a data set of size
:
![]()
The
th percentile is found at cumulative frequency
. For example, the 75th percentile is located at cumulative frequency
, which is also the upper quartile.
There are 30 students, so use cumulative frequencies 7.5 for
, 15 for the median, 22.5 for
, and 22.5 for the 75th percentile. Reading from the cumulative frequency graph gives estimates. Using linear interpolation within the classes:
lies in the
to
class:
marks;- the median lies in the
to
class: median
marks;
lies in the
to
class:
marks;- the 75th percentile is the same as
, approximately 69.2 marks.
These are estimates because the original marks are grouped into intervals.
5. Range and interquartile range
The range describes the full spread of the data. The interquartile range (IQR) describes the spread of the middle 50% of the data.
![]()
Suppose
marks and
marks for a group of students.
![]()
The middle half of the students’ marks span approximately 24.2 marks.
6. Box-and-whisker diagrams
A box-and-whisker diagram, or box plot, summarises a data set using five values:
- minimum;
- lower quartile,
; - median,
; - upper quartile,
; and - maximum.
The box extends from
to
, with a line at the median. The whiskers extend to the minimum and maximum. Always use a labelled, consistent numerical scale.
Consider the ordered data set:
![]()
There are 14 values. The median is halfway between the 7th and 8th values. The lower and upper quartiles are the medians of the lower and upper halves.
- Minimum = 17

- Median


- Maximum = 93
![]()
7. Comparing distributions
When comparing two distributions using box plots, comment on the context and compare the following features:
- Median: which group typically has the higher value?
- IQR: which group has more spread in its middle 50%?
- Range: which group has the greater overall spread?
- Shape: are the distributions roughly symmetric or skewed?
- Outliers: are any unusually low or high values shown?
A median near the centre of the box with whiskers of similar length may suggest approximate symmetry. A longer whisker on one side or a median off-centre in the box may suggest skewness.
IB-style practice · Skill questions
-
The frequency table below gives values for
.
Class interval 



Frequency 5 10 12 8 State the axes labels and bar heights needed to draw a histogram. [3 marks]
Show solution
Label the horizontal axis
and the vertical axis Frequency. Draw adjoining bars over the four class intervals with heights 5, 10, 12 and 8, respectively. -
A data set has 50 values. State the cumulative frequencies at which you would read the lower quartile, median and upper quartile from a cumulative frequency graph. [3 marks]
Show solution
![Rendered by QuickLaTeX.com \[Q_1:\frac{50}{4}=12.5,\qquad \text{Median}:\frac{50}{2}=25,\qquad Q_3:\frac{3(50)}{4}=37.5\]](https://i0.wp.com/alphyschool.org/wp-content/ql-cache/quicklatex.com-88cc048e44ac1e8090e84f8bca529469_l3.png?resize=531%2C42&ssl=1)
-
The ordered data are
. Find the range, median, lower quartile, upper quartile and IQR. [5 marks]
Show solution
Range
. Median
. The lower half is
, so
. The upper half is
, so
. Therefore IQR
. -
For the data set in Question 3, determine whether 30 is an outlier using the
rule. [3 marks]
Show solution
Lower fence
. Since
, it is not a low outlier. The upper fence is
, so 30 is not an outlier.
IB-style practice · Cumulative frequency and box plots
Application 1 · Examination marks
A class of 30 students has marks grouped in the table below.
| Marks, |
Frequency | Cumulative frequency |
|---|---|---|
| 2 | ||
| 3 | ||
| 5 | ||
| 7 | ||
| 6 | ||
| 4 | ||
| 2 | ||
| 1 |
- Complete the cumulative frequency column. [3 marks]
- State the cumulative frequencies to use to estimate the median and quartiles. [3 marks]
- Use linear interpolation to estimate
, the median and
. [6 marks] - Estimate the IQR. [2 marks]
Show worked solution · Application 1
(a) Cumulative frequencies: 2, 5, 10, 17, 23, 27, 29, 30.
(b) With
, use 7.5 for
, 15 for the median and 22.5 for
.
(c)
![]()
![]()
![]()
(d) IQR
.
Application 2 · Distances travelled by cars
A company records the distance travelled by each of its 50 cars. The cumulative frequency graph shows 35 cars have travelled up to 4,000 km, and 46 cars have travelled up to 6,000 km.
- Estimate how many cars have travelled between 4,000 km and 6,000 km. [2 marks]
- State the cumulative frequencies used to estimate the median, lower quartile and upper quartile. [3 marks]
- What percentage of the cars have travelled a distance greater than the upper quartile? [2 marks]
Show worked solution · Application 2
(a)
cars.
(b) For
: lower quartile at CF
, median at CF
, upper quartile at CF
.
(c) One quarter of the data lie above the upper quartile, so
.
Application 3 · Comparing two groups
Two classes take the same examination. Their box plots show:
| Class | Minimum | Median | Maximum | ||
|---|---|---|---|---|---|
| A | 40 | 55 | 63 | 74 | 89 |
| B | 35 | 50 | 68 | 78 | 92 |
- Which class has the higher median? [1 mark]
- Calculate the IQR for each class. [2 marks]
- Compare the spread of the middle 50% of marks. [2 marks]
Show worked solution · Application 3
(a) Class B, with median 68.
(b) Class A:
. Class B:
.
(c) Class B has the larger IQR, so its middle 50% of marks are more spread out.
Reflection · An inheritance kept in heaven
Data displays help us understand what has been observed. Christian hope looks beyond what we can see now: through Jesus’ resurrection, believers are promised an inheritance that will never perish or fade. May this hope encourage us to live faithfully, care for others and give thanks to God.
1 Peter 1:3–4 (NIV) — God “has given us new birth into a living hope through the resurrection of Jesus Christ from the dead, and into an inheritance that can never perish, spoil or fade.”