Skip to content
IB Diploma ProgrammeSL & HL

Presenting data

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Presenting data notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Presenting data notes as text: skim, search, and jump between subtopics.

~17 min read

1. Frequency tables

Data are discrete when they take separate values, such as a count, and continuous when they can take any value in a range, such as a time or a mass.

A frequency distribution lists each value, or each class interval, with its frequency. For continuous data the class intervals are given as inequalities, without gaps: 0 ≤ x < 10, then 10 ≤ x < 20. A value on a boundary belongs to the class where it is the lower limit.

The frequencies add up to the number of values, n.

n = sum f

Worked example 13 marks

The numbers of text messages sent by 15 students in one day are

3, 5, 0, 2, 5, 4, 3, 5, 1, 2, 3, 5, 4, 3, 2

(a) State whether the data are discrete or continuous.

(b) Construct a frequency table for the data.

Messages012345
Frequency113424
  1. 1

    (a) the data are counted, so they are discrete (A1) [1]

  2. 2

    (b) tally each value: 0 once, 1 once, 2 three times, 3 four times, 4 twice, 5 four times (M1) [1]

  3. 3

    frequencies 1, 1, 3, 4, 2, 4 (A1) [1]

  4. 4

    check: 1 + 1 + 3 + 4 + 2 + 4 = 15 = n

2. Histograms

A frequency histogram shows a frequency distribution with equal class intervals. The bars touch, the horizontal axis is the variable, and the height of each bar is the frequency of its class.

The heights add up to n. Frequency density histograms are not needed in this course.

n = sum of the bar heights

Worked example 13 marks

A frequency histogram has equal class intervals 0 ≤ t < 5, 5 ≤ t < 10, 10 ≤ t < 15 and 15 ≤ t < 20. The heights of the bars are 3, 7, 6 and 4.

(a) Find the number of values in the data set.

(b) Find the number of values that are at least 10.

  1. 1

    (a) add the bar heights: 3 + 7 + 6 + 4 = 20 (A1) [1]

  2. 2

    (b) values of at least 10 are in the last two classes (M1) [1]

  3. 3

    6 + 4 = 10 (A1) [1]

  4. 4

    check: 3 + 7 = 10 values are below 10, and 10 + 10 = 20

3. Cumulative frequency and the median

Cumulative frequency is a running total of the frequencies: the number of values up to the end of each class. Plot each total against the upper class boundary and join the points with a smooth curve.

The curve only rises, and ends at n. To find the median, take a cumulative frequency of n/2, read across to the curve, then down to the axis. The markscheme credits 26 or 26.5 for n = 52.

A question that gives frequencies for some classes can be completed by taking the difference in the cumulative frequencies at the two ends of a class.

median: read at cumulative frequency n/2

f = cf (upper boundary) - cf (lower boundary)

Worked example 14 marks

A group of 52 students have their heights measured in cm. The cumulative frequency graph for the heights of the students is shown in the following diagram.

(a) Use the graph to find an estimate of the median height.

The heights of the students are shown in the following frequency table where p, q ∈ N.

(b)(i) Find the value of p and the value of q.

Height (h cm)Frequency
155 ≤ h < 1603
160 ≤ h < 1658
165 ≤ h < 17014
170 ≤ h < 175p
175 ≤ h < 180q
  1. 1

    (a) attempt to use cumulative frequency of 26 (or 26.5), for example a line drawn on the graph (M1) [1]

  2. 2

    median height = 170 cm (accept 170 to 171 inclusive) (A1) [1]

  3. 3

    (b)(i) recognising the need to find the difference in the cumulative frequencies at 170, 175 or 175, 180 (M1) [1]

  4. 4

    42 - 25 or 52 - 42: p = 17, q = 10 (A1) [1]

  5. 5

    check: 3 + 8 + 14 + 17 + 10 = 52

4. Quartiles, percentiles, range and IQR

The same method finds any position. For n values, read the lower quartile Q₁ at n/4, the median at n/2 and the upper quartile Q₃ at 3n/4. The pth percentile is read at p/100 × n.

The range is the greatest value minus the least. The interquartile range (IQR) is Q₃ - Q₁: it measures the spread of the middle half of the data.

The cumulative frequency is a count, not a percentage: for n = 120 the 90th percentile is read at 108, not at 90.

IQR = Q₃ - Q₁

range = greatest value - least value

pth percentile: read at p/100 × n

Worked example 14 marks

The masses of 120 apples are recorded and a cumulative frequency graph is drawn. The least mass is 98 g and the greatest is 182 g. A cumulative frequency of 30 is read across to 124 g and a cumulative frequency of 90 to 152 g.

(a) Find the interquartile range.

(b) Find the range.

(c) Find the cumulative frequency at which the 90th percentile is read.

  1. 1

    (a) Q₁ = 124 and Q₃ = 152, since 30 = 1/4 × 120 and 90 = 3/4 × 120; IQR = 152 - 124 (M1) [1]

  2. 2

    IQR = 28 g (A1) [1]

  3. 3

    (b) range = 182 - 98 = 84 g (A1) [1]

  4. 4

    (c) 90/100 × 120 = 108 (A1) [1]

5. Box and whisker diagrams

A box and whisker diagram is drawn from five values: the least value, Q₁, the median, Q₃ and the greatest value. The box runs from Q₁ to Q₃, with a line at the median. The whiskers reach the least and greatest values that are not outliers.

An outlier is marked with a cross. The question gives the rule: a value is an outlier if it is less than Q₁ - 1.5 × IQR or greater than Q₃ + 1.5 × IQR. A value exactly on a boundary is not an outlier.

lower boundary = Q₁ - 1.5 × IQR

upper boundary = Q₃ + 1.5 × IQR

Worked example 14 marks

The results of a survey of allowances, in Singapore dollars, from 60 students are summarized in the following box and whisker diagram. The labelled values are 28, 66, 80, a and 110.

(b) State the median.

The interquartile range is 24 dollars.

(c) Write down the value of a.

An outlier is a value that is less than Q₁ - 1.5 × IQR or greater than Q₃ + 1.5 × IQR.

(d) Determine the smallest possible allowance, from the sample, that is not an outlier.

  1. 1

    (b) the median is the line inside the box: 80 dollars (A1) [1]

  2. 2

    (c) Q₃ = Q₁ + IQR = 66 + 24, so a = 90 (A1) [1]

  3. 3

    (d) attempt to use outlier formula: 66 - 1.5 × 24 (M1) [1]

  4. 4

    smallest allowance that is not an outlier is 30 dollars, because 30 is not less than 30 (A1) [1]

  5. 5

    check: 28 < 30, so by this rule the least value is an outlier, even though the printed diagram draws the whisker to it; the upper boundary is 90 + 36 = 126, and 110 is below it

6. Comparing distributions and normality

Compare two box and whisker diagrams with the same measures each time: the median for the centre, and the IQR or range for the spread. Quote both values. A smaller IQR or range means the data are more consistent.

A distribution that may be normally distributed has a symmetric diagram: the median is central in the box and the two whiskers are about equal. If one side is longer, the data are not symmetric.

symmetric: Q₃ - median ≈ median - Q₁

Worked example 14 marks

A machine fills bags with rice. The masses of bags from machine A and machine B, in grams, are summarised below.

Machine A: least 48, Q₁ = 52, median 55, Q₃ = 58, greatest 62.

Machine B: least 41, Q₁ = 50, median 56, Q₃ = 66, greatest 80.

Compare the two distributions, and state which machine may have normally distributed masses.

  1. 1

    the medians are similar, 55 g and 56 g (A1) [1]

  2. 2

    IQR: A = 58 - 52 = 6 g and B = 66 - 50 = 16 g, so A is less spread (A1) [1]

  3. 3

    range: A = 62 - 48 = 14 g and B = 80 - 41 = 39 g (A1) [1]

  4. 4

    A is symmetric: 58 - 55 = 55 - 52 = 3 and both whiskers are 4 (52 - 48 and 62 - 58), so A may be normally distributed; B is not symmetric, since 56 - 50 = 6 but 66 - 56 = 10 (R1) [1]

Recap

  • Counted data are discrete; measured data are continuous, with classes as inequalities and no gaps.
  • In a frequency histogram the height of each bar is the frequency, and the heights add up to n.
  • Cumulative frequency is a running total, plotted at the upper class boundary.
  • Read the median at n / 2, Q₁ at n / 4, Q₃ at 3n / 4 and the pth percentile at (p / 100) × n.
  • IQR = Q₃ - Q₁ and range = greatest - least.
  • A box and whisker diagram marks outliers with a cross; a value on the boundary is not an outlier.
  • Compare with the median and the IQR or range, quoting values; a symmetric diagram suggests a normal distribution.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State whether the masses of apples, weighed on a balance, are discrete data or continuous data.1 mark
    Answer
    1. Continuous [1]. A mass is measured and can take any value in a range.

    Trap: Calling it discrete because each mass is recorded to the nearest gram. Measured data are continuous.

  2. Do not use a calculator. The lengths, in cm, of 12 leaves are 4.2, 5.0, 5.8, 6.1, 6.5, 7.0, 7.3, 8.0, 8.4, 9.9, 10.0 and 6.9. Complete the frequency table. | Length l (cm) | 4 ≤ l < 6 | 6 ≤ l < 8 | 8 ≤ l < 10 | 10 ≤ l < 12 | | --- | --- | --- | --- | --- | | Frequency | | | | |3 marks
    Answer
    1. A value on a boundary goes in the class where it is the lower limit, so 8.0 is in 8 ≤ l < 10 and 10.0 is in 10 ≤ l < 12 [1].
    2. 4 ≤ l < 6: 4.2, 5.0, 5.8, frequency 3; 6 ≤ l < 8: 6.1, 6.5, 6.9, 7.0, 7.3, frequency 5 [1].
    3. 8 ≤ l < 10: 8.0, 8.4, 9.9, frequency 3; 10 ≤ l < 12: 10.0, frequency 1 [1].
    4. Check: 3 + 5 + 3 + 1 = 12.

    Trap: Putting 8.0 and 10.0 in the class below. Each class includes its lower limit and excludes its upper limit.

  3. Do not use a calculator. A frequency histogram has equal class intervals 0 ≤ x < 10, 10 ≤ x < 20, 20 ≤ x < 30 and 30 ≤ x < 40. The heights of the bars are 8, 3, 5 and 4. (a) Find the total number of values. [1] (b) Determine the class that contains the median. [2]3 marks
    Answer
    1. (a)
    2. 8 + 3 + 5 + 4 = 20 [1].
    3. (b)
    4. Cumulative frequencies 8, 11, 16, 20. The median lies between the 10th and 11th values [1].
    5. Both are in 10 ≤ x < 20, since 8 < 10 and 11 ≥ 11 [1].

    Trap: Choosing the tallest bar, 0 ≤ x < 10. The tallest bar is the most frequent class, not the class containing the median.

  4. Do not use a calculator. The table gives the frequencies of 40 values. Complete a cumulative frequency table for the values less than 10, less than 20, less than 30 and less than 40. | Class | 0 ≤ x < 10 | 10 ≤ x < 20 | 20 ≤ x < 30 | 30 ≤ x < 40 | | --- | --- | --- | --- | --- | | Frequency | 6 | 11 | 15 | 8 |2 marks
    Answer
    1. Running totals: 6, 6 + 11 = 17, 17 + 15 = 32 [1].
    2. 6, 17, 32, 40; the last equals n = 40 [1].

    Trap: Writing the frequencies again instead of running totals. Each cumulative frequency adds the new class to every class before it, and the last one is n.

  5. A cumulative frequency graph is drawn for 80 values. The upper quartile is read from the graph at a cumulative frequency of A. 20 B. 40 C. 60 D. 751 mark
    Answer
    1. C [1]: 3 / 4 × 80 = 60.
    2. A is the lower quartile, 1 / 4 × 80. B is the median, 1 / 2 × 80. D treats 75% as a frequency.

    Trap: Using 75 because the upper quartile is the 75th percentile. The cumulative frequency is a count: 75 / 100 × 80.

  6. Do not use a calculator. The times taken by 60 students to travel to school are summarised in a cumulative frequency table. (a) Find the number of students whose time is at least 20 minutes and less than 40 minutes. [2] (b) Find the number of students whose time is 40 minutes or more. [1] | Time t (minutes) | t < 10 | t < 20 | t < 30 | t < 40 | t < 50 | | --- | --- | --- | --- | --- | --- | | Cumulative frequency | 5 | 17 | 41 | 55 | 60 |3 marks
    Answer
    1. (a)
    2. Use the difference in the cumulative frequencies at 40 and 20 [1].
    3. 55 - 17 = 38 [1].
    4. (b)
    5. 60 - 55 = 5 [1].

    Trap: Reading 55 as the number in the class 30 to 40. A cumulative frequency counts every value up to that point.

  7. A cumulative frequency graph is drawn for 80 values. The reading at cumulative frequency 20 is 34, at 40 is 46 and at 60 is 58. The least value is 10 and the greatest is 90. (a) Write down the median. [1] (b) Calculate the interquartile range. [2] (c) Find the cumulative frequency at which the 90th percentile is read. [1]4 marks
    Answer
    1. (a)
    2. 1 / 2 × 80 = 40, so the median is 46 [1].
    3. (b)
    4. Q₁ = 34 and Q₃ = 58, so IQR = 58 - 34 [1].
    5. = 24 [1].
    6. (c)
    7. 90/100 × 80 = 72 [1].

    Trap: Giving 90 - 10 = 80 as the IQR. That is the range; the IQR uses the quartiles.

  8. Do not use a calculator. A data set has lower quartile 15 and upper quartile 21. An outlier is a value that is less than Q₁ - 1.5 × IQR or greater than Q₃ + 1.5 × IQR. (a) Find the interquartile range. [1] (b) Determine which of the values 5, 6, 30 and 31 are outliers. [3]4 marks
    Answer
    1. (a)
    2. 21 - 15 = 6 [1].
    3. (b)
    4. Lower boundary 15 - 1.5 × 6 = 6 [1].
    5. Upper boundary 21 + 1.5 × 6 = 30 [1].
    6. 5 is less than 6 and 31 is greater than 30. 6 and 30 are on the boundaries, so they are not outliers. The outliers are 5 and 31 [1].

    Trap: Counting 6 and 30 as outliers. The rule says less than and greater than, so a boundary value is not an outlier.

  9. Do not use a calculator. A cycling club records the distances, d km, ridden by its 64 members in one week. (a) Find the number of members who rode at least 40 km and less than 80 km. [2] (b) Find the median distance. [2] (c) The club gives a badge to the 15% of members who rode furthest. Determine the cumulative frequency at which the least distance for a badge is read, and the class that contains it. [3] | Distance d (km) | d < 20 | d < 40 | d < 60 | d < 80 | d < 100 | d < 120 | | --- | --- | --- | --- | --- | --- | --- | | Cumulative frequency | 5 | 16 | 32 | 52 | 60 | 64 |7 marks
    Answer
    1. (a)
    2. Use the difference in the cumulative frequencies at 80 and 40 [1].
    3. 52 - 16 = 36 [1].
    4. (b)
    5. Read at n/2 = 64/2 = 32 [1].
    6. The cumulative frequency at 60 is exactly 32, so the median is 60 km [1].
    7. (c)
    8. The furthest 15% start at the 85th percentile [1].
    9. 85/100 × 64 = 54.4 [1].
    10. 52 < 54.4 ≤ 60, so it lies in 80 ≤ d < 100 [1].

    Trap: Reading the top 15% at 15/100 × 64 = 9.6. That is the 15th percentile, the bottom of the data; the top 15% starts at the 85th.

  10. A delivery company records the times, in whole minutes, of 120 deliveries. A cumulative frequency graph gives a lower quartile of 24, a median of 28 and an upper quartile of 42. The shortest time is 15 and the longest is 60. An outlier is a value that is less than Q₁ - 1.5 × IQR or greater than Q₃ + 1.5 × IQR. (a) Estimate the number of deliveries that took longer than the upper quartile. [1] (b) Show that no delivery time can be a low outlier. [2] (c) Find the least whole number of minutes the longest time would need to be for it to be an outlier. [2] (d) Explain why a box and whisker diagram of these times suggests that they are not normally distributed. [2]7 marks
    Answer
    1. (a)
    2. The upper quartile is read at 3/4 × 120 = 90, so about 120 - 90 = 30 deliveries [1].
    3. (b)
    4. IQR = 42 - 24 = 18, so the lower boundary is 24 - 1.5 × 18 = -3 [1].
    5. A time cannot be negative, so no time is less than -3 [1].
    6. (c)
    7. Upper boundary 42 + 1.5 × 18 = 69 [1].
    8. An outlier is greater than 69, and 69 itself is not, so the least whole number is 70 minutes [1].
    9. (d)
    10. The box is not symmetric: 28 - 24 = 4 but 42 - 28 = 14 [1].
    11. The whiskers are not equal: 24 - 15 = 9 and 60 - 42 = 18 [1].

    Trap: Giving 69, the boundary itself. The rule says greater than, so a boundary value is not an outlier: a 2026 markscheme gives M1A0 to a candidate who treats the boundary value as an outlier.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
31 (one more than the boundary)30: the rule is less than 66 - 1.5 × 24, so 30 is not an outlier
p = 42 (the cumulative frequency read at 175)the difference in the cumulative frequencies: p = 42 - 25 = 17
the median is 26read at a cumulative frequency of 26, then across to the curve and down: 170 cm
a = 24 (the IQR used as the value)a = Q₃, which is Q₁ plus the IQR: 66 + 24 = 90

Frequently asked questions

How do you find the median from a cumulative frequency graph?
Find n, then take a cumulative frequency of n/2, read across to the curve and then down to the axis. The value on the axis is the median. In the note's example with n = 52, the median height is 170 cm, and the markscheme credits 26 or 26.5 as the cumulative frequency used.
How do you find the interquartile range from a cumulative frequency graph?
Read the lower quartile Q₁ at n/4 and the upper quartile Q₃ at 3n/4, then subtract: IQR = Q₃ - Q₁. In the example with n = 120, a cumulative frequency of 30 gives Q₁ = 124 g and 90 gives Q₃ = 152 g, so the IQR is 28 g.
What is the difference between a frequency table and a cumulative frequency table?
A frequency table gives the frequency of each class, and the frequencies add up to n. A cumulative frequency is a running total: the number of values up to the end of each class. The last cumulative frequency equals n, and each total is plotted against the upper class boundary.
How do you find the 90th percentile from a cumulative frequency graph?
Read the pth percentile at p/100 × n. The cumulative frequency is a count, not a percentage, so for n = 120 the 90th percentile is read at 90/100 × 120 = 108, not at 90. Use the same method for any position.
Why do I get the cumulative frequency instead of the median when I use a cumulative frequency graph?
Stopping at the cumulative frequency gives a position, not the value. Read across from n/2 to the curve, then down to the horizontal axis. In the note's example, the median height is 170 cm, not 26, because 26 is only the cumulative frequency that is read.
How can I tell from a box and whisker diagram whether data may be normally distributed?
A distribution that may be normally distributed has a symmetric box and whisker diagram. The median is central in the box, and the whiskers are about equal, so Q₃ - median ≈ median - Q₁. In the note's machine A example, 58 - 55 = 55 - 52 = 3 and both whiskers are 4, so A may be normally distributed, while B is not symmetric.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters