📐 Statistical Data Analysis — Revision Notes

Eighty numbers are unreadable. One number — a median, a mean, an interquartile range, a standard deviation — is readable, and so is one picture. This chapter turns a pile of data into a middle, a spread, and a sentence about the real situation. Syllabus outcomes S1 1.11, 1.12, 1.13, 1.14, 1.15 and 1.16.

Middle, spread, picture — and which one the question wants

Every question in this chapter is one of four things: find a measure of average, find a measure of spread, read or draw a picture, or compare two sets of data. Knowing which one you are being asked chooses the tool for you.

Formula sheet: mean and standard deviation Graph readings to the grid

The questionWhere it is answeredThe tool
How many are below a given value? What value has 90% below it? 13.1 Cumulative frequency curve a running total, plotted at the upper class boundary and joined by a smooth curve
What is the middle? What is the middle 50%? 13.2 Median, quartiles & percentiles median, Q1 and Q3; interquartile range = Q3Q1
Show the whole distribution in one small picture 13.3 Box-and-whisker plots the five-number summary, drawn to a real scale
How far are the values from the mean? 13.4 Standard deviation the standard deviation — the one formula the paper gives you
Which set is better? Make two comments comparing them. 13.5 Comparing data sets one sentence about the average, one about the spread, both in context
More detail

Two of these formulae are printed on the paper — and they are the two hardest. The MATHEMATICAL FORMULAE page of K310 gives you, verbatim, under the heading Statistics:

Mean = fxf Standard deviation = fx2f (fxf)2

Neither of them has to be remembered. Everything else in this chapter is yours to carry: the positions of the quartiles (n4, n2, 3n4 on a curve); how to read a cumulative frequency curve; interquartile range = Q3Q1; range = largest − smallest; the five-number summary of a box-and-whisker plot; and — the big one — not one word about how to compare two sets of data. So the marks in this chapter sit in reading graphs accurately and in writing the comparison sentence, rather than in recall: the arithmetic is short, the graph reading is fiddly, and the comparison sentence is where most of this topic's marks actually live.

Accuracy. A standard deviation is almost never exact, so it goes to 3 s.f. Values read off a graph are different: they are estimates limited by the graph paper, so give them to the accuracy the grid supports — usually 1 decimal place or the nearest whole number, and no further. The two rules behind this, and the rule about showing essential working, are quoted in full in the How the paper works tab of the Formulae window.

What "cumulative" means ⓘ Recap

A grouped frequency table tells you how many values fall inside each class. A cumulative frequency table tells you how many fall at or below the end of each class — it is the same data with a running total taken.

The cumulative frequency of a value is the total frequency of every data value up to and including that value. A cumulative frequency table displays those running totals; a cumulative frequency curve displays them as a graph.
Read the inequality signs. A class written 30 < t ≤ 40 holds times that are more than 30 and at most 40, so its cumulative frequency is written against "t ≤ 40", not "t < 40".
The last cumulative frequency is n. Check that the final running total equals the number of data values before you plot anything — it is the cheapest check in the chapter.

Walkthrough 1 — building a cumulative frequency table Basic

The lengths, x cm, of the 60 leaves collected by a class on a nature walk are recorded below.
Length (x cm) 5 < x ≤ 77 < x ≤ 9 9 < x ≤ 1111 < x ≤ 13 13 < x ≤ 15
Number of leaves 41121168
Construct a cumulative frequency table. Hence find how many leaves were 11 cm long or shorter, how many were longer than 9 cm, and how many were longer than 9 cm but not longer than 13 cm.
  1. The cumulative frequencies are the running totals 4,   4 + 11 = 15,   15 + 21 = 36,   36 + 16 = 52,   52 + 8 = 60.
    Each entry adds one more class to the ones already counted. The final total is 60, which is the number of leaves — that check is worth doing before anything is written into the table.
  2. Length (x cm) x ≤ 7x ≤ 9x ≤ 11 x ≤ 13x ≤ 15
    Cumulative frequency 415365260
    The class labels change: each running total belongs to the upper boundary of its class, so the headings become "x ≤ 7", "x ≤ 9" and so on. The mark is for those new headings above the running totals.
  3. Number of leaves 11 cm or shorter = 36
    "11 cm or shorter" is exactly the entry against x ≤ 11, so it is read straight out of the table with no arithmetic at all.
  4. Number longer than 9 cm = 60 − 15 = 45
    "Longer than 9" is everything that is not "9 or shorter", so subtract the cumulative frequency at x ≤ 9 from the total. A cumulative frequency table always counts upwards; every "more than" question is a subtraction from n.
  5. Number longer than 9 cm but not longer than 13 cm = 52 − 15 = 37
    A "between" count is the difference of two cumulative frequencies: everything up to 13 minus everything up to 9. x ≤ 13 keeps the 13s in and x ≤ 9 takes the 9s out, which leaves exactly 9 < x ≤ 13.
More detail

The inequality signs are worth the second look, because they decide what the table can answer. From classes written 30 < t ≤ 40 you can say exactly how many took 40 minutes or less, but not how many took less than 35 minutes: the table has kept only the class each value fell into. That gap is precisely what the curve is drawn to fill, and it fills it with an estimate.

The running-total check is worth doing for the same reason. If the final cumulative frequency is not the total number of data values, an addition has gone wrong somewhere in the column, and every plotted point after it would inherit the error.

From table to curve

The table is a set of points. The curve is what you get by plotting them and joining them up — and once it is drawn you can read the distribution at values the table never mentions.

The four drawing rules.
1. Plot each cumulative frequency against the upper class boundary.
2. Start at the lower boundary of the first class, at height 0.
3. Join the points with one smooth curve.
4. Label both axes and title the graph.
A cumulative frequency curve can only go up. It is a running total, so a curve that comes back down anywhere has a frequency plotted in it rather than a cumulative frequency.

Walkthrough 2 — drawing the curve Basic

Eighty students at School A each sat the same 70-minute Mathematics revision paper. The time, t minutes, each of them took to finish is summarised below.
Time (t minutes) 10 < t ≤ 2020 < t ≤ 30 30 < t ≤ 4040 < t ≤ 50 50 < t ≤ 6060 < t ≤ 70
Number of students 2141624177
Draw a cumulative frequency curve for this data.
  1. Cumulative frequencies: 2,   16,   32,   56,   73,   80
    Running totals first, always: 2, then 2 + 14, then 16 + 16, then 32 + 24, then 56 + 17, then 73 + 7. The last one is 80, the number of students, so the addition is right.
  2. Points to plot: (20, 2), (30, 16), (40, 32), (50, 56), (60, 73), (70, 80) — and (10, 0) to start.
    Each running total is plotted against the upper boundary of its class, because that total counts everything up to that boundary. The extra point (10, 0) says that no student took 10 minutes or less, which is what the table's first class means.
  3. Choose scales that use most of the grid: t from 10 to 70 on the horizontal axis, cumulative frequency from 0 to 80 on the vertical axis.
    A curve squeezed into a corner cannot be read accurately, and every later answer is a reading off this curve. Pick a scale where 2 cm (or 10 small squares) is a round number of units, so that the readings are easy and honest.
  4. 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 80 Time (t minutes) Cumulative frequency Time taken to complete the paper — School A
    Fig. 13.1
    The seven points, marked with crosses, joined by one smooth curve. Both axes are labelled and the graph has a title.
    Join the crosses with a single smooth curve drawn in one movement, not with a ruler between consecutive points. The smooth curve is the model of the distribution; it is what makes the readings between the plotted points possible.
Where this comes from

Each of the four drawing rules has a reason behind it. Rule 1: the running total counts everything up to the top of the class, so it belongs to the upper class boundary — not the mid-value and not the lower boundary. Rule 2: nothing at all lies below the lower boundary of the first class, so the curve begins on the horizontal axis there, at a cumulative frequency of 0. Rule 3: the data is continuous, so the model of it is a single smooth curve rather than a series of straight segments. Rule 4: the vertical axis is Cumulative frequency, and a curve whose axes are unlabelled cannot be marked — the labels and the title are part of the answer.

The "can only go up" rule is the same idea seen from the side: each cumulative frequency is the previous one plus a frequency, and a frequency is never negative. The curve can stay level, where a class is empty, but it cannot fall.

Reading the curve

There are exactly two moves, and it is worth naming them, because a question will ask for one or the other and the marks go to the construction lines as much as to the answer.

Reading up. Given a value on the horizontal axis, go up to the curve and then left to the cumulative frequency axis. This answers "how many are at or below this value?"
Reading across. Given a cumulative frequency, go right to the curve and then down to the horizontal axis. This answers "what value has this many at or below it?"
Draw the construction lines and leave them on the graph. Use a ruler, draw them dashed, and mark the value you read off: in a "use the graph to estimate" question those lines are usually worth a mark of their own.

Walkthrough 3 — three readings off one curve Intermediate

Use the cumulative frequency curve for the 80 students of School A to estimate the number of students who finished the paper in 36 minutes or less, the percentage of students who took longer than 53 minutes, and the value of T, given that 90% of the students finished the paper in at most T minutes.
  1. 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 80 Time (t minutes) Cumulative frequency Reading up from the time axis 25 62 36 53
    Fig. 13.2
    Reading up from 36 and from 53, then left to the cumulative frequency axis.
    From the curve, 36 minutes → 25 students and 53 minutes → 62 students.
    Both parts (a) and (b) start from a time, so both are read up first: vertical line to the curve with a ruler, then horizontal line to the axis. Read to the nearest whole student — a count of people cannot have a decimal.
  2. Number who finished in 36 minutes or less = 25
    This one is the reading itself. Say "estimate": the curve is a model built from grouped data, so 25 is an estimate, not a count.
  3. Number who took longer than 53 minutes = 80 − 62 = 18
    The curve counts upwards, so it gives the 62 who took 53 minutes or less. "Longer than" is the rest of the 80, so the subtraction is the line that answers the question.
  4. Percentage = 1880×100% = 22.5%
    The question asked for a percentage, not a number of students, so convert. Dividing by 80 — the total — and not by 62 is the whole of the difficulty here.
  5. 90% of 80 = 90100×80 = 72 students
    Part (c) gives a proportion, not a time, so the reading has to start on the cumulative frequency axis — and that axis is measured in students. Turn the 90% into 72 before touching the graph.
  6. 10 20 30 40 50 60 70 0 10 20 30 40 50 60 70 80 Time (t minutes) Cumulative frequency Reading across from the cumulative frequency axis 72 59.1
    Fig. 13.3
    Reading across from 72, then down to the time axis.
    T = 59.1 (1 d.p.), so 90% of the students finished within about 59 minutes.
    Across from 72 to the curve, then straight down; 1 decimal place is about what the grid supports. Then say what the number means in minutes and students, since "T = 59.1" on its own is not yet an answer.
More detail

The construction lines are the evidence that the answer was read off the graph rather than guessed, which is why a "use the graph to estimate" question credits them separately from the number itself. Draw them with a ruler, leave them on the page, and mark the value you read.

Everything read off the curve is an estimate: the curve is a model built from grouped data, not a record of the individual values. That is also why a reading is given to the accuracy the grid supports — usually 1 decimal place, or the nearest whole number when the axis counts people — and no further.

Check yourself

  • A cumulative frequency table for 50 measurements ends with the entry 48. What has gone wrong?
    Answer

    The final cumulative frequency must equal the total number of data values, so it should be 50. Two values have been missed or a running total has been added up wrongly — go back and re-add the column before plotting anything.

  • The masses, m kg, of 40 parcels are grouped as 0 < m ≤ 5, 5 < m ≤ 10, 10 < m ≤ 15, 15 < m ≤ 20 with frequencies 6, 15, 13 and 6. Write down the cumulative frequency table, and state the coordinates of the point where the curve begins.
    Answer

    Cumulative frequencies: m ≤ 5: 6,   m ≤ 10: 21,   m ≤ 15: 34,   m ≤ 20: 40. The curve begins at (0, 0) — the lower boundary of the first class, where nothing has been counted yet.

  • Using the School A curve, estimate the number of students who took more than 30 minutes but not more than 50 minutes.
    Answer

    Both 30 and 50 are plotted points, so this one is exact from the table: 56 − 16 = 40 students. On the graph it is two "read up" lines and a subtraction.

  • A student reads the curve and writes "24.6 students finished in 35 minutes or less". What is wrong with the answer, and what is wrong with the reasoning behind it?
    Answer

    A number of students must be a whole number — 24.6 people do not exist, so it should be rounded to 25. The reasoning behind it is a second, subtler error: a curve drawn from grouped data gives estimates, so quoting a reading to 1 decimal place claims a precision the graph does not have.

  • Why can a cumulative frequency curve never slope downwards?
    Answer

    Because each cumulative frequency is the previous one plus a frequency, and a frequency is never negative. The running total can stay level (if a class is empty) but it can never decrease.

Past-paper questions

G3 N2016 · Paper 1 · Q21 4 marks

Some students were asked to estimate the mass, in grams, of sweets in a jar.
The cumulative frequency diagram shows the results.

0 100 200 300 400 500 0 40 80 120 160 200 Mass (grams) Cumulative frequency

The actual mass of the sweets is 300 grams.

  1. Find the probability that a student, chosen at random, overestimated the mass. [2]
  2. Find the number of students who gave estimates within 10% of the actual mass. [2]
Worked solution

(a) The top of the curve gives the total: 200 students. Reading up from 300 g, 84 students estimated 300 g or less — those are the students who did not overestimate.

Number who overestimated = 200 − 84 = 116

P(overestimated) = 116200 = 2950 (0.58)

(b) 10% of 300 g = 30 g, so "within 10%" means an estimate from 300 − 30 = 270 g to 300 + 30 = 330 g.

Reading up from 270 g: 64 students. Reading up from 330 g: 100 students.

Number of students between the two = 100 − 64 = 36

Why this works. Both parts are the same move — read up, then subtract — because the curve counts at or below: in (a) the 84 come off the 200, and in (b) a "between" count is the difference of two readings. The 10% is 10% of the 300 g, giving the interval 270 g to 330 g. Leave (a) as a fraction of the total.