Vertex Learn

Statistical questions, and the five-point summary

What this lesson covers

  • Multivariate data is data in a set that has more than two variables.
  • Data can be collected from observational studies in which the observers do not alter or control the behaviour of the subjects.
  • Statistical questions clearly identify the variable, group of interest, and the intent of an investigation. A summary investigation is about a group. A comparison investigation compares a variable across two clearly identified groups. A relationship investigation looks for a connection between paired numerical or paired categorical variables. A time-series investigation looks at a variable over time.
  • Primary data is data that is collected first-hand.
  • Secondary data is data collected by someone else.
Key idea

Statistics starts before any data exists

  • Everything here follows from the question you asked.
  • Ask it badly and no amount of calculation rescues you.
  • So the question comes first.
Key idea

Which of these is a statistical question?

  • How tall is Sam? That has one answer. Measure him.
  • How tall are Year 9 students here? The answers will vary.
  • That variation is the difference, and it is the whole subject.
QuestionAnswersVerdict
How tall is Sam?one answernot statistical
How tall are Year 9s here?answers will varystatistical
What did I score?one answernot statistical
How do our scores vary?variation is the subjectstatistical
Key idea

Try it: statistical or not?

Key idea

Three things a good question names

  • The variable: what are you actually measuring?
  • The group: who are you measuring it on?
  • The intent: what do you want to find out about it?
PartMeaningExample
The variablewhat is being measuredheight
The groupwho it is measured onYear 9 at our school
The intentwhat you want to find outthe typical value
Key idea

Run that on your own question before you start

  • If you cannot point at all three, the question is not ready.
  • "What about sport?" names none of them.
  • Thirty seconds here saves a whole afternoon later.
Key idea

Four kinds of investigation

  • A summary looks at one group.
  • A comparison puts two named groups side by side.
  • A relationship pairs two variables. A time series adds dates.
TypeWhat it doesWhat you must collect
Summaryone group, one variablejust the measurement
Comparisonone variable, two groupsalso record the group
Relationshiptwo variables, pairedboth, from the same subject
Time seriesone variable over timealso record the date
Key idea

And this is why that matters

  • Look at the right-hand column. The type decides what you collect.
  • Running a comparison but forgot to record the group?
  • You have one pile of numbers. You cannot go back and add it.
Key idea

Try it: plan it, then quarter it

Key idea

So these are not four words to memorise

  • They are a decision you make before collecting anything.
  • The wrong choice is not a naming error.
  • It is data you did not gather and now cannot.
Key idea

Where the data came from

  • Primary data is data you gathered yourself.
  • Secondary data is somebody else’s, like Stats NZ.
  • Observational means you watched without interfering.
KindMeaningExample
Primaryyou collected it yourselfyour own survey
Secondarysomebody else collected itStats NZ, a website
Observationalwatched, did not interferecounting cars
Key idea

Usually you record several things at once

  • One student: height, year level, sport, travel time.
  • More than two variables makes it multivariate data.
  • Mix numerical and categorical, and you can ask much more.
IdeaDetail
One studentheight, year, sport, travelseveral facts
More than two variablesthat is multivariate data
At least one numericalheight, travel time
At least one categoricalyear level, sport
Worked example

Now you have numbers. Sort them first

  • Eleven values, in the order they were collected.
  • Nothing works until they are in order. Sort them.
  • Every single thing that follows assumes this step happened.
StageThe data
Raw9, 4, 15, 7, 2, 20, 11, 5, 14, 8, 12
Sorted2, 4, 5, 7, 8, 9, 11, 12, 14, 15, 20
Worked example

Find the middle. Then the middle of each half

  • Eleven values, so the median is the sixth one. Nine.
  • The five below it: their middle is five. That is Q1.
  • The five above: their middle is fourteen. That is Q3.
StepWorkingValue
Median, Q2the middle value of all 119
Lower half2, 4, 5, 7, 8its middle is 5
So Q15
Upper half11, 12, 14, 15, 20its middle is 14
So Q314
Key idea

No formula, and that is deliberate

  • You may have seen a position formula for quartiles.
  • Different books give different ones, and they disagree.
  • Halving, then halving again, always works. Use that.
Key idea

Five numbers for the whole set

  • Minimum, Q1, median, Q3, maximum. Two, five, nine, fourteen, twenty.
  • Each quartile is a quarter of the way through the data.
  • Five numbers, and you can describe a set of any size.
PointValueWhat it means
Minimum2
Q15a quarter are below this
Median9half are below this
Q314three quarters are below this
Maximum20
A box plot with minimum 2, Q1 5, median 9, Q3 14 and maximum 20.
Key idea

Try it: five numbers, one picture

Worked example

The IQR, and why it beats the range

  • Range is max minus min: eighteen. IQR is Q3 minus Q1: nine.
  • Now change one value. Make the twenty a sixty.
  • The range jumps to fifty-eight. The IQR does not move at all.
MeasureWorkingValue
Range20 − 218
IQR14 − 59
Now change the 20 to 60range becomes 58IQR stays 9
Whyit uses the middle halfonly
Summary

What to take away

  • Seven things, and the fourth is the one that ruins projects.
A statistical questionexpects its answers to vary
It must namethe variable, the group and the intent
The four typessummary, comparison, relationship, time series
The typedecides what you must collect, before you collect it
Primary or secondaryis about who gathered it
Five-point summarymin, Q1, median, Q3, max
IQRis Q3 minus Q1, and one odd value cannot move it

Common mistakes

  • IQR = maximum − minimum
    That is the range; IQR = Q3 − Q1, the spread of the middle half of the data.
  • The median of 7, 3, 9, 4, 6 is 9, the middle one.
    Sort first: 3, 4, 6, 7, 9, so the median is 6.
  • "How tall is Sam?" is a statistical question.
    It has one answer; a statistical question expects answers to vary, such as "How tall are Year 9 students at our school?"
  • I am comparing boys' and girls' heights, so I only need to record height.
    A comparison needs the group recorded for every person too, or you cannot split the data afterwards.

Your turn

  • Try all eight.
1

Is "how long is the trip to school?" statistical?

2

Comparing two groups. What else must you record?

3

Find the five-point summary of 8, 3, 11, 5, 14, 6, 18, 9.

4

Find the IQR of that set.

5

Ana downloads rainfall figures from NIWA for her project. What kind of data is she using?

6

Is screen time linked to hours of sleep for Year 9 students? What type of investigation is this?

7

A class records each student's height, eye colour and favourite sport. Which description is right?

8

A data set has Q1 = 12 and Q3 = 20. About what share of the values lie between 12 and 20?

Show answer

1. Yes. Different students will take different times, so the answer varies, and it names the variable, the group and the intent. 2. Which group each person is in. Without that column you have one pile of numbers and no way to split it, and you cannot go back and add it later. 3. Sorted: 3, 5, 6, 8, 9, 11, 14, 18. Eight values, so the median is the average of the 4th and 5th, which is 8.5. The lower half is 3, 5, 6, 8, so Q1 is 5.5. The upper half is 9, 11, 14, 18, so Q3 is 12.5. The summary is 3, 5.5, 8.5, 12.5, 18. 4. 7, from 12.5 minus 5.5. 5. Secondary: someone else collected it. NIWA gathered the figures, and Ana is reusing them. 6. Relationship: two paired variables. Each student gives both a screen time and a sleep time, and we look for a connection. 7. Multivariate: one numerical and two categorical. It has more than two variables; height is numerical, eye colour and sport are categories. 8. About half of them. A quarter lie below Q1 and a quarter lie above Q3, so the middle half sits between.

Worked example

The answers

  • Eight values, so the median is an average.
  • Q1 is 5.5 and Q3 is 12.5.
  • And you cannot add the group column later.
Answer
1Yes, the answers vary
2Which group each person is in
33, 5.5, 8.5, 12.5, 18
47
Try it

Center and Variability

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0

Challenge

1

Eight students in a Whangārei class recorded their walk to school, in whole minutes: 3, 5, 6, 8, 10, 11, 13, 15. Use the halving method for quartiles. (a) Find the IQR. (b) A ninth student adds their time, x minutes, a whole number. For which values of x is the IQR exactly the same as before? (c) Which value of x keeps both the median and the IQR unchanged? (d) What is the largest the new IQR can be, and which values of x give it?

Hint

With nine values the median is the 5th, the lower half is the 4 smallest and the upper half is the 4 largest. So Q1 is the mean of the 2nd and 3rd values and Q3 is the mean of the 7th and 8th. Try a small x, a middle x and a large x and watch which values land in those spots.

Answer

(a) 6.5 minutes. (b) x = 6, 7, 8, 9, 10 or 11. (c) x = 9. (d) 8.5 minutes, for any x of 15 or more.

Step by step
  1. Eight values: the median is between the 4th and 5th, Q1 is the middle of the lowest four and Q3 the middle of the highest four.
  2. With nine values, Q1 uses the 2nd and 3rd values and Q3 uses the 7th and 8th, so only those four spots matter for the IQR.
  3. If x is anywhere from 6 to 11, the 2nd and 3rd values stay 5 and 6, and the 7th and 8th stay 11 and 13, so the IQR does not move.
  4. The new median is the 5th value, which is x itself when x is between 8 and 10, so x = 9 keeps the median at 9 as well.
  5. A large x pushes 15 into the 8th spot, so Q3 rises to the mean of 13 and 15 while Q1 stays 5.5.
Full working
  1. Q1 = (5 + 6) ÷ 2 = 5.5, Q3 = (11 + 13) ÷ 2 = 12halves 3, 5, 6, 8 and 10, 11, 13, 15
  2. IQR = 12 − 5.5 = 6.5Q3 − Q1
  3. x = 6: 3, 5, 6, 6, 8, 10, 11, 13, 15 gives Q1 = 5.5, Q3 = 12lowest x that still works
  4. x = 11: 3, 5, 6, 8, 10, 11, 11, 13, 15 gives Q1 = 5.5, Q3 = 12highest x that still works
  5. x = 5 gives Q1 = 5, x = 12 gives Q3 = 12.5just outside, the IQR changes
  6. x = 9: 3, 5, 6, 8, 9, 10, 11, 13, 15, median 9, IQR 6.5both unchanged
  7. x ≥ 15: Q3 = (13 + 15) ÷ 2 = 14, IQR = 14 − 5.5 = 8.515 moves into the 8th spot
  8. (a) 6.5 (b) 6 ≤ x ≤ 11 (c) x = 9 (d) 8.5, when x ≥ 15
2

Nine Year 9 students sat a quiz marked out of 20, and every mark is a whole number. Using the halving method, their five-point summary is: minimum 2, Q1 5, median 8, Q3 12, maximum 20. (a) What is the smallest possible total of all nine marks? (b) What is the largest possible total? Give a possible set of nine marks for each.

Hint

Write the nine marks in order as nine boxes. Which boxes are fixed by the summary, and which two pairs of boxes must average to 5 and to 12? Then push every free box as low (or as high) as the order allows.

Answer

(a) 77, for example 2, 5, 5, 5, 8, 8, 12, 12, 20. (b) 84, for example 2, 5, 5, 8, 8, 12, 12, 12, 20.

Step by step
  1. Nine marks: the 1st is 2, the 5th is 8 and the 9th is 20.
  2. The lower half is the 1st to 4th marks, so Q1 is the mean of the 2nd and 3rd: those two add to 10. The 7th and 8th must add to 24 in the same way.
  3. So only the 4th and 6th marks are free, and both pairs have fixed totals whatever they are.
  4. The 4th mark sits between the 3rd and the median, and the 6th between the median and the 7th. Make them as small, or as large, as the order allows.
  5. The 3rd mark is at least 5 (it is the larger of a pair adding to 10), and the 7th is at most 12 (the smaller of a pair adding to 24).
Full working
  1. fixed: 2 + 8 + 20 = 30min, median, max
  2. 2nd + 3rd = 2 × 5 = 10, 7th + 8th = 2 × 12 = 24Q1 and Q3 are means of pairs
  3. total = 30 + 10 + 24 + 4th + 6th = 64 + 4th + 6thonly two free marks
  4. smallest: 4th ≥ 3rd ≥ 5 and 6th ≥ 8, so total ≥ 64 + 5 + 8 = 772, 5, 5, 5, 8, 8, 12, 12, 20
  5. largest: 4th ≤ 8 and 6th ≤ 7th ≤ 12, so total ≤ 64 + 8 + 12 = 842, 5, 5, 8, 8, 12, 12, 12, 20
  6. check 84 set: halves 2, 5, 5, 8 and 12, 12, 12, 20 give Q1 = 5, Q3 = 12summary matches
  7. smallest total 77, largest total 84
3

Two Year 9 classes in Tauranga, Room 9A and Room 9B, each have 11 students who sat a test out of 30. Every mark is a whole number. Using the halving method, Room 9A's five-point summary is 2, 5, 9, 14, 20 and Room 9B's is 6, 10, 15, 18, 25. The 22 marks are put together into one list. What are the smallest and the largest possible values of the median of all 22 marks? Explain why it can be no lower and no higher.

Hint

In a class of 11, which positions are the Q1, median and Q3? Each of the other marks can only move between its neighbours. If you raise any one mark, can the combined median go down?

Answer

The combined median is at least 10 and at most 14. Lowest: every unknown mark as small as allowed gives a median of 10. Highest: every unknown mark as large as allowed gives 14.

Step by step
  1. With 11 marks, the median is the 6th, the lower half is the 5 lowest so Q1 is the 3rd, and Q3 is the 9th. So positions 1, 3, 6, 9 and 11 are known in each class.
  2. Each other mark lies between the known marks either side of it, for example 9A's 2nd mark is from 2 to 5.
  3. Raising any mark can never lower the median of the combined list, and lowering any mark can never raise it.
  4. So the smallest combined median comes from putting every unknown mark at its lowest allowed value, and the largest from putting every one at its highest.
  5. With 22 marks the median is the mean of the 11th and 12th.
Full working
  1. known positions in each class: 1st, 3rd, 6th, 9th, 11thmin, Q1, median, Q3, max
  2. 9A low: 2, 2, 5, 5, 5, 9, 9, 9, 14, 14, 20each unknown at its lower limit
  3. 9B low: 6, 6, 10, 10, 10, 15, 15, 15, 18, 18, 25same rule
  4. combined low: 2, 2, 5, 5, 5, 6, 6, 9, 9, 9, 10, 10, ...11th = 10, 12th = 10
  5. 9A high: 2, 5, 5, 9, 9, 9, 14, 14, 14, 20, 20 and 9B high: 6, 10, 10, 15, 15, 15, 18, 18, 18, 25, 25each unknown at its upper limit
  6. combined high: 2, 5, 5, 6, 9, 9, 9, 10, 10, 14, 14, 14, ...11th = 14, 12th = 14
  7. median of 22 ranges from (10 + 10) ÷ 2 = 10 to (14 + 14) ÷ 2 = 14moving marks only moves the median one way
  8. smallest possible median 10, largest possible median 14

More challenge problems

Practice

Practise this

Worksheet with answersWithout answersDownload PDF
Report a mistake

More in Statistics

Is your child on track?

Take the free placement test