Skip to content

9709 · Unit 23 · Paper 5: Probability and Statistics 1

Representing and summarising data.

9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Ordered data: stem-and-leaf diagrams and box plots

§5.1 · Representation of data

Fifteen strips are measured in millimetres. As a list the numbers say little; put them in order and the smallest, the largest and the middle appear at once. Call this ordered record A: every display in this unit starts from it: 3, 5, 5, 6, 7, 8, 8, 9, 10, 10, 11, 12, 13, 15, 16 mm.

1Choose a display for the question

Ask what the reader needs to see. Some displays keep every value; others trade the values for a shape or a summary.
0369121518recorded length / mm
  1. 1
    Continuous data are measured, such as length. These lengths are recorded as whole numbers, but length is still continuous.
  2. 2
    Discrete data are counted, such as the number of strips.
  3. 3
    Categorical data are labels, such as the material of a strip.
Need to seeDisplayKeeps or hides
Every recorded valueStem-and-leafKeeps each value, repeats and order.
How counts spread across length classesHistogramShows the shape by bar area; values inside a class are lost.
A percentile, or a count below a lengthCumulative-frequency curveRunning counts; read-offs are estimates.
Centre and spread of two recordsBox plots on one scaleFive numbers each; hides modes and single values.

2Build a back-to-back stem-and-leaf diagram

A second batch, record B, has 9 strips: 5, 7, 7, 8, 9, 10, 10, 11, 12 mm. Put both on the same stems (the tens digit). Leaves grow outwards, smallest nearest the stem, and a repeated value keeps a leaf of its own.
A · n = 15B · n = 99 8 8 7 6 5 5 305 7 7 8 96 5 3 2 1 0 010 0 1 2Key: 3 | 0 | 5A: 3 mm; B: 5 mm
Worked example

Read the diagram: what do 6 | 1 on the A side and 1 | 2 on the B side mean, and how many leaves does each side have?

  1. Read A leftwards: stem then leaf
    6 | 1 means 16 mm
  2. Read B rightwards the same way
    1 | 2 means 12 mm
  3. Count the leaves on each side
    left side: 8 + 7=15right side: 5 + 4=9
  4. Answer
    every value is kept: 15 in A, 9 in B
Give a key that names both sides: 3 | 0 | 5 means 3 mm in A and 5 mm in B. A one-sided key leaves the other side to guesswork.

3Find five numbers, then draw the box plot

The median is at position (n + 1)/2. For an odd n, leave the median out and take the middle of each half: those are the quartiles Q₁ and Q₃.
13
25
35
46
57
68
78
89
910
1010
1111
1212
1313
1415
1516
Worked example

Find the five-number summary of A.

  1. Smallest and largest
    3 mm and 16 mm
  2. Median: position (15 + 1)/2 = 8
    8th value=9 mm
  1. Q₁: middle of positions 1–7
    4th value=6 mm
  2. Q₃: middle of positions 9–15
    12th value=12 mm
  3. Answer
    3, 6, 9, 12, 16 mm
36912160369121518recorded length / mm36912160369121518recorded length / mm
Whiskers run from the box to the smallest and largest values, never through the box. A box plot hides the repeated 5, 8 and 10 mm and how values sit inside each quarter; a symmetric box does not make the whole record symmetric.

4Try it

Your turn

1 In a back-to-back diagram the key is 4 | 1 | 2: 14 on the left, 12 on the right. What does 7 | 2 | 3 mean?

2 Find the median and quartiles of 4, 7, 7, 9, 12, 13, 15, 18, 21, 22, 25.

3 Which display lets you read off the 90th percentile of 200 grouped journey times?

  1. 1
    27 on the left, 23 on the right
  2. 2
    median = 6th value = 13; Q₁ = 3rd value = 7; Q₃ = 9th value = 21
  3. 3
    a cumulative-frequency curve
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
  • not yet? step 3
Practise with s21/52 Q7(a) (older paper); s26/51 Q3(a); s26/52 Q6(a); w21/51 Q6(c) (older paper); s25/55 Q5(b) (older paper)
1 / 6
9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Histograms: the area of a bar is its count

§5.1 · Representation of data

A histogram groups the values into classes and draws one bar for each. When the classes have different widths, a tall thin bar and a short wide bar can hold the same number of values, so the count is the area of a bar, not its height.

1Find each bar’s height from frequency density

Frequency density = frequency ÷ class width. Use it as the height; then width × height gives the count back.
00.250.50.7511.251.5061018Frequency density / mm⁻¹length / mm0.5f = 31.25f = 50.875f = 700.250.50.7511.251.5061018Frequency density / mm⁻¹length / mm0.5f = 31.25f = 50.875f = 7
Length / mmCountWidthDensity
0 ≤ x < 63612
6 ≤ x < 105454
10 ≤ x < 187878
Worked example

Find the bar heights for A grouped into [0, 6), [6, 10) and [10, 18) mm.

  1. Count each class from the record
    3, 5 and 7 strips
  2. Divide each count by its width
    3 ÷ 6=0.55 ÷ 4=1.257 ÷ 8=0.875
  3. Answer
    heights 0.5, 1.25 and 0.875 strips per mm
✓Check 0.5 × 6 + 1.25 × 4 + 0.875 × 8 = 15 strips

2Use true boundaries and find the modal class

The modal class has the greatest density (the tallest bar): here 6 ≤ x < 10, although [10, 18) holds more strips. Height tells you how crowded a class is per mm; area tells you how many.
Classes made from rounded values have gaps. For lengths rounded to the nearest mm, a class “6–9” runs from 5.5 to 9.5 mm: width 4, not 3. Classes written as 6 ≤ x < 10 need no change.

3Recover counts when the axis has no numbers

Some histograms give drawn heights, not densities. One bar with a known count tells you how many values one unit of area stands for, and that rate holds for every bar.
024681012061018drawn height / divisionslength / mm410712 ≤ x < 163 records
Worked example

The first bar (width 6, height 4) stands for 3 strips. Find the count in the last bar (width 8, height 7) and the width of the middle bar (height 10, count 5).

  1. Area of the first bar
    6 × 4=24 units
  2. Strips per unit of area
    k=324 = 18
  3. Last bar: k × width × height
    1/8 × 8 × 7=7 strips
  4. Middle bar: solve for the width
    5=1/8 × 10 × ww=4, so it runs from 6 to 10 mm
  5. Answer
    7 strips; width 4 mm

4Estimate the count in part of a bar

Inside a class the exact values are lost. Assume they are spread evenly and take the matching share of the area.
  1. The amber band 12 ≤ x < 16 is 4 mm of the last bar
    1/8 × 4 × 7=7/2
  2. Answer
    about 3.5 stripsAn estimate: the record itself has 12, 13 and 15 there, which is 3.
1/8 × 4 × 7 = 7/2The amber band 12 ≤ x < 16 is 4 mm of the last bar.about 3.5 stripsAn estimate: the record itself has 12, 13 and 15 there, which is 3.

5Try it

Your turn

1 Classes 0 ≤ t < 5, 5 ≤ t < 15 and 15 ≤ t < 20 have frequencies 10, 30 and 5. Find the frequency densities and the modal class.

2 A bar of width 4 and height 6 stands for 12 values. How many does a bar of width 10 and height 3 stand for?

3 Estimate how many of the 30 values in 5 ≤ t < 15 lie in 5 ≤ t < 9.

  1. 1
    10 ÷ 5 = 2, 30 ÷ 10 = 3, 5 ÷ 5 = 1; modal class 5 ≤ t < 15
  2. 2
    k = 12 ÷ 24 = 1/2, so 1/2 × 10 × 3 = 15
  3. 3
    4/10 of the class: 30 × 0.4 = 12
Tick what you can do now
Practise with s26/53 Q3(a) (related construction practice)
2 / 6
9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Cumulative frequency: build the curve, then read it

§5.1 · Representation of data

How many strips are shorter than 8 mm? A cumulative frequency answers questions like that: it counts every value up to a point. Plot it against length and one smooth curve gives counts, the median and the quartiles straight off the graph.

1Build the curve from running totals

Add the class counts as you go and pair each total with the class’s upper boundary. Start at zero on the lowest boundary.
03691215061018Cumulative frequencylength / mm(6, 3)(10, 8)(18, 15)
Worked example

Find the points to plot for A’s classes [0, 6), [6, 10) and [10, 18) mm, with counts 3, 5 and 7.

  1. Start at the lowest boundary
    (0, 0)
  2. Add each class; plot at its upper boundary
    (6, 3)(10, 3 + 5)=(10, 8)(18, 8 + 7)=(18, 15)
  3. Join with a smooth rising curve
    it ends at 15, the size of the record
  4. Answer
    (0, 0), (6, 3), (10, 8), (18, 15)
A difference of running totals gives an exact class count: 8 − 3 = 5 strips in 6 ≤ x < 10. Between the plotted points the curve is only an estimate.

2Read the median, quartiles and percentiles

Go count → curve → length. For n values, Q₁ is at n/4, the median at n/2, Q₃ at 3n/4 and the 60th percentile at 0.6n.
03691215061018Quartiles and P₆₀length / mm3.75Q₁7.5M11.25Q₃9P₆₀
ReadCountLength / mm
Q₁3.756.8
Median7.59.6
Q₃11.2513.5
60th percentile911.0
Worked example

Which class holds the 60th percentile of A, and what does the curve give?

  1. Find its position
    0.60 × 15=9
  1. Find the running totals either side
    8 at 10 mm and 15 at 18 mm: 8 < 9 ≤ 15
  2. Answer
    class 10 ≤ x < 18 mm; the curve gives about 11.0 mm
The curve’s IQR is about 13.5 − 6.8 = 6.7 mm. The ordered record gives 12 − 6 = 6 mm: grouping has lost the exact positions.

3Count values above, below or between two lengths

Go length → curve → count. “At least” means the count below, taken from the total; “between” is a difference of two counts.
03691215061018Counts below 8 mm and 14 mmlength / mm5.3811.714
Worked example

What proportion of A is at least 8 mm?

  1. Up from 8 mm to the curve, across to the count
    count below 8 ≈ 5.3
  2. Answer
    (15 − 5.3)/15 ≈ 0.65Take it from 15, then divide by 15.
Worked example

What proportion lies from 8 mm up to 14 mm?

  1. Read both lines
    counts below 14 and 8: 11.7, 5.3
  2. Answer
    (11.7 − 5.3)/15 ≈ 0.43A difference of counts.
What proportion of A is at least 8 mm?
count below 8 ≈ 5.3Up from 8 mm to the curve, across to the count.(15 − 5.3)/15 ≈ 0.65Take it from 15, then divide by 15.
What proportion lies from 8 mm up to 14 mm?
counts below 14 and 8: 11.7, 5.3Read both lines.(11.7 − 5.3)/15 ≈ 0.43A difference of counts.

4Try it

Your turn

1 Classes with upper boundaries 10, 20, 30 and 40 s have frequencies 6, 14, 12 and 8. Write the points to plot.

2 At which count do you read the median and Q₃ of these 40 values, and which class holds Q₃?

3 How many of the 40 values are at least 30 s, and what proportion is that?

  1. 1
    (0, 0), (10, 6), (20, 20), (30, 32), (40, 40)
  2. 2
    median at 20, Q₃ at 30; 20 < 30 ≤ 32, so Q₃ is in 20 ≤ t < 30
  3. 3
    40 − 32 = 8, proportion 8/40 = 0.2
Tick what you can do now
Practise with m26/52 Q3(a), Q3(b); s26/55 Q2(a), Q2(b); s26/53 Q3(c)
3 / 6
9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Averages: exact from the record, estimated from groups

§5.1 · Representation of data

One number to stand for a whole record is an average. The mean shares the total out equally, the median is the middle value in order, and the mode is the value that occurs most often. They answer different questions, so they need not agree.

1Find all three averages from the record

0369121518recorded length / mm
Worked example

Find the mean, median and modes of A.

  1. Add all 15 values, repeats included
    x̄=13815 = 9.2 mm
  2. Median: position (15 + 1)/2 = 8
    8th value=9 mm
  3. Mode: the values that occur most
    5, 8 and 10 mm, twice each
  4. Answer
    mean 9.2 mm, median 9 mm, modes 5, 8 and 10 mm

2In a frequency table, frequencies weight the total

Each value counts as many times as it occurs: mean = Σfx ÷ Σf.
  1. The two 8 mm strips add 16 to the total
    2 × 8=16 mm
  2. Add every f and every fx
    Σf=15, Σfx = 138 mm
  3. Answer
    mean = 138 ÷ 15 = 9.2 mmDivide by Σf, never by the number of different values.
2 × 8 = 16 mmThe two 8 mm strips add 16 to the total.Σf = 15, Σfx = 138 mmAdd every f and every fx.mean = 138 ÷ 15 = 9.2 mmDivide by Σf, never by the number of different values.

3See what one extreme value does

Change A’s 16 mm strip to 46 mm and call the new record A*. The total changes, so the mean moves; the middle value does not.
Amedian 9mean 9.2A*median 9mean 11.246was 160612182430364248length / mmAmedian 9mean 9.2A*median 9mean 11.246was 160612182430364248length / mm
Worked example

Find the mean and median of A*.

  1. Take out the old value, put in the new one
    138 − 16 + 46=168 mm
  2. Divide by the same n
    168 ÷ 15=11.2 mm
  1. The 8th value in order is unchanged
    median=9 mm
  2. Answer
    mean 9.2 → 11.2 mm; median stays 9 mm
For a typical value despite an extreme one, use the median. When the total matters, use the mean: it uses every value.

4Grouped data: estimate the mean from midpoints

Grouping hides each value. Let every value in a class stand at the class midpoint m; then mean ≈ Σfm ÷ Σf.
3 recordsm = 35 recordsm = 87 recordsm = 14061018length / mm3 recordsm = 35 recordsm = 87 recordsm = 14061018length / mm
Class / mmmffm
0 ≤ x < 6339
6 ≤ x < 108540
10 ≤ x < 1814798
Total15147
Worked example

Estimate the mean of A from its three classes.

  1. Midpoints
    3, 8 and 14 mm
  2. Multiply by the counts and add
    3 × 3 + 5 × 8 + 7 × 14=147
  3. Divide by Σf
    147 ÷ 15=9.8
  4. Answer
    estimated mean 9.8 mm
✓Check the raw mean is 9.2 mm: the estimate uses less information
Use the midpoints in Σfm/Σf, never the class widths, the end points or the frequency densities.

5Try it

Your turn

1 Find the mean, median and mode of 2, 4, 4, 5, 10.

2 Values 1, 2 and 3 occur 4, 5 and 1 times. Find the mean.

3 Classes 0 ≤ x < 10 and 10 ≤ x < 30 have frequencies 4 and 6. Estimate the mean.

  1. 1
    mean 25 ÷ 5 = 5, median 4, mode 4
  2. 2
    Σfx = 4 + 10 + 3 = 17, Σf = 10: mean 1.7
  3. 3
    midpoints 5 and 20: (4 × 5 + 6 × 20) ÷ 10 = 14
Tick what you can do now
Practise with s26/52 Q6(c) (related mean-change practice); s24/52 Q4(c) (older paper); s26/53 Q3(b); m26/52 Q3(c)
4 / 6
9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Measuring spread and comparing two records

§5.1 · Representation of data

Two records can share a centre and still look very different: one bunched, one spread out. A measure of spread puts a number on that. Pair each one with a centre: the median with the IQR, the mean with the standard deviation.

1Find the range and the interquartile range

Range = largest − smallest: the whole span. IQR = Q₃ − Q₁: the span of the middle half, so one far-off value hardly touches it.
36912160369121518recorded length / mmrange = 13IQR = 636912160369121518recorded length / mmrange = 13IQR = 6
Worked example

Find the range and IQR of A.

  1. Range: largest minus smallest
    16 − 3=13 mm
  2. Answer
    12 − 6 = 6 mmIQR: Q₃ minus Q₁.
Find the range and IQR of A.
16 − 3 = 13 mmRange: largest minus smallest.12 − 6 = 6 mmIQR: Q₃ minus Q₁.
RecordMedianRangeIQR
A9136
A*: 16 → 469436
A* keeps the median and IQR, but its range jumps to 43 mm. The range of these recorded values is exact; with no rounding rule given, nothing more follows about the unrounded lengths.

2Find variance and standard deviation from the totals

Variance is the mean of the squares minus the square of the mean: σ² = Σx²/n − x̄². The standard deviation σ is its square root, back in mm.
Worked example

A has n = 15, Σx = 138 and Σx² = 1468. Find its variance and standard deviation.

  1. Mean of the squares minus the square of the mean
    σ2=146815−(13815)2
  2. Simplify
    σ2=99275 ≈ 13.2 mm²
  1. Take the square root
    σ ≈ 3.64 mm
  2. Answer
    variance 992/75 mm², standard deviation ≈ 3.64 mm
Σx² adds the squares one by one; it is not (Σx)². In a frequency table use Σfx²/Σf − (Σfx/Σf)²: the two 8 mm strips give 2 × 8² = 128, not (2 × 8)² = 256.

3Grouped data: square each midpoint, then weight it

Midpoint mffm²
3327
85320
1471372
Total151719
  1. Use the grouped mean 9.8, not the raw 9.2
    variance=171915−(495)2 = 18.56
  2. Answer
    standard deviation ≈ 4.31 mmAn estimate from the groups, not the exact spread of A.
variance=171915−(495)2 = 18.56Use the grouped mean 9.8, not the raw 9.2.standard deviation ≈ 4.31 mmAn estimate from the groups, not the exact spread of A.

4Compare A with B: one centre, one spread

Put both records on one scale and write two sentences: one about centre, one about spread, each with its numbers and in context. Keep each record’s own size.
ABA: 15 records · B: 9 records0369121518recorded length / mmABA: 15 records · B: 9 records0369121518recorded length / mm
Measure / mmA: 15 stripsB: 9 strips
Median99
Q₁ and Q₃6, 127, 10.5
IQR63.5
Range137
Standard deviation3.642.10
Worked example

Compare the lengths of the strips in A and B.

  1. Centre
    both medians are 9 mm
  2. Spread
    IQR 3.5 mm for B, 6 mm for ASD 2.10 mm for B, 3.64 mm for A
  3. Answer
    typical lengths are the same; B’s lengths are more consistent
Box plots compare quickly but cannot give the mean or the mode; the stem-and-leaf diagram keeps every value. The summaries describe these strips; they do not say why B varies less, and not every B strip is nearer 9 mm than every A strip.

5Try it

Your turn

1 Find the range of 2, 4, 4, 5, 10.

2 For the same values Σx = 25 and Σx² = 161. Find the variance and standard deviation.

3 Two machines’ times have medians 12 s and 15 s, and IQRs 6 s and 3 s. Write one comparison of centre and one of spread.

  1. 1
    10 − 2 = 8
  2. 2
    161/5 − 5² = 7.2, SD ≈ 2.68
  3. 3
    the second machine’s times are typically longer (15 s against 12 s) and more consistent (IQR 3 s against 6 s)
Tick what you can do now
Practise with s26/51 Q3(b), Q3(c); s26/52 Q6(b); s26/55 Q1(a); s25/55 Q5(b), Q5(c) (older paper)
5 / 6
9709 · Unit 23 · Representing and summarising data
Revisionbyexamplicity

Coding and combining records

§5.1 · Representation of data

Awkward numbers are easier after a code, such as y = (x − 8)/2: shift every value, then rescale. Work with the small numbers, then undo the code. Totals help again when two records are joined: counts, Σx and Σx² simply add.

1Code every value

Subtracting 8 slides every value along; dividing by 2 halves every gap. The centre moves and the spread halves.
x / mmy = (x − 8)/2024681012141618−4−2024mean 9.2 → 0.6x / mmy = (x − 8)/20481216−4−2024mean 9.2 → 0.6
13 → −2.5
25 → −1.5
35 → −1.5
46 → −1
57 → −0.5
68 → 0
78 → 0
89 → 0.5
910 → 1
1010 → 1
1111 → 1.5
1212 → 2
1313 → 2.5
1415 → 3.5
1516 → 4
Worked example

With y = (x − 8)/2, record A gives Σy = 9 and Σy² = 55. Find the mean and variance of y.

  1. Mean of y
    ȳ=915 = 0.6
  1. Variance of y: same formula
    variance=5515−(35)2 = 24875
  2. Answer
    ȳ = 0.6, variance of y = 248/75

2Undo the code

From y = (x − 8)/2, x = 2y + 8. The mean follows the whole rule. Spread ignores the + 8: the SD is multiplied by 2 and the variance by 2² = 4.
Worked example

Use ȳ = 0.6 and the variance 248/75 to find the mean, variance and SD of x.

  1. Mean: apply the rule to ȳ
    x̄=2 × 0.6 + 8 = 9.2 mm
  2. Variance: multiply by 2²
    4 × 248/75=992/75 mm²
  1. SD: multiply by 2
    2 × √(248/75) ≈ 3.64 mm
  2. Answer
    x̄ = 9.2 mm, variance 992/75 mm², SD ≈ 3.64 mm
✓Check the same answers as working on x directly
  1. If the code is x = 2y + c and x̄ = 9.2 is given, form the mean equation
    9.2=2 × 0.6 + c
  2. Answer
    c = 8Solve for the unknown shift.
9.2 = 2 × 0.6 + cIf the code is x = 2y + c and x̄ = 9.2 is given, form the mean equation.c = 8Solve for the unknown shift.

3Combine two records from their totals

Means and SDs of groups of different sizes cannot simply be averaged. Add n, Σx and Σx² first, then use the usual formulas.
A · n = 15mean 9.2B · n = 9mean 8.780369121518length / mmA · n = 15mean 9.2B · n = 9mean 8.780369121518length / mm
RecordnΣxΣx²
A151381468
B979733
A and B242172201
Worked example

Find the mean and SD of A and B together.

  1. Mean
    x̄=21724 ≈ 9.04 mm
  2. Variance
    σ2=220124−(21724)2 = 5735576
  3. Square root
    σ ≈ 3.16 mm
  4. Answer
    mean ≈ 9.04 mm, SD ≈ 3.16 mm
Averaging the two means, (9.2 + 8.78)/2 ≈ 8.99 mm, treats 9 strips as if they were 15.

4Work back to a missing group or a replaced value

Totals run backwards too. Subtract what you know from the combined totals, or swap one value out of a total and another in.
  1. Only the combined totals and A are given: subtract to find B
    n=24 − 15 = 9; Σx = 217 − 138 = 79 mm
  2. Answer
    B’s mean = 79/9 ≈ 8.78 mmThen divide.
n = 24 − 15 = 9; Σx = 217 − 138 = 79 mmOnly the combined totals and A are given: subtract to find B.B’s mean = 79/9 ≈ 8.78 mmThen divide.
Worked example

A’s 3 mm strip is replaced by a strip of length r mm. The mean becomes 10.2 mm. Find r and the new Σx².

  1. New total from the new mean
    15 × 10.2=153 mm
  2. Swap the values
    138 − 3 + r=153, so r = 18
  1. Swap the squares too
    1468 − 3² + 18²=1783
  2. Answer
    r = 18 mm; new Σx² = 1783 mm²

5Try it

Your turn

1 Ten values are coded y = x − 50, giving Σy = 30 and Σy² = 290. Find the mean and variance of x.

2 With y = (x − 100)/5, ȳ = 2 and the variance of y is 3. Find the mean and variance of x.

3 Group P has 10 values with mean 6; group Q has 30 values with mean 10. Find the combined mean.

  1. 1
    ȳ = 3, so x̄ = 53; variance of y = 29 − 9 = 20, and a shift leaves it at 20
  2. 2
    x = 5y + 100: x̄ = 110, variance 25 × 3 = 75
  3. 3
    (60 + 300) ÷ 40 = 9
Tick what you can do now
Practise with s26/55 Q1(a), Q1(b); s26/52 Q6(c); s21/52 Q7(d) (older paper; reverse totals)
6 / 6