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.
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.
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.
| Question | Answers | Verdict |
|---|---|---|
| How tall is Sam? | one answer | not statistical |
| How tall are Year 9s here? | answers will vary | statistical |
| What did I score? | one answer | not statistical |
| How do our scores vary? | variation is the subject | statistical |
Try it: statistical or not?
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?
| Part | Meaning | Example |
|---|---|---|
| The variable | what is being measured | height |
| The group | who it is measured on | Year 9 at our school |
| The intent | what you want to find out | the typical value |
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.
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.
| Type | What it does | What you must collect |
|---|---|---|
| Summary | one group, one variable | just the measurement |
| Comparison | one variable, two groups | also record the group |
| Relationship | two variables, paired | both, from the same subject |
| Time series | one variable over time | also record the date |
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.
Try it: plan it, then quarter it
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.
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.
| Kind | Meaning | Example |
|---|---|---|
| Primary | you collected it yourself | your own survey |
| Secondary | somebody else collected it | Stats NZ, a website |
| Observational | watched, did not interfere | counting cars |
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.
| Idea | Detail | |
|---|---|---|
| One student | height, year, sport, travel | several facts |
| More than two variables | that is multivariate data | |
| At least one numerical | height, travel time | |
| At least one categorical | year level, sport |
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.
| Stage | The data |
|---|---|
| Raw | 9, 4, 15, 7, 2, 20, 11, 5, 14, 8, 12 |
| Sorted | 2, 4, 5, 7, 8, 9, 11, 12, 14, 15, 20 |
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.
| Step | Working | Value |
|---|---|---|
| Median, Q2 | the middle value of all 11 | 9 |
| Lower half | 2, 4, 5, 7, 8 | its middle is 5 |
| So Q1 | 5 | |
| Upper half | 11, 12, 14, 15, 20 | its middle is 14 |
| So Q3 | 14 |
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.
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.
| Point | Value | What it means |
|---|---|---|
| Minimum | 2 | |
| Q1 | 5 | a quarter are below this |
| Median | 9 | half are below this |
| Q3 | 14 | three quarters are below this |
| Maximum | 20 |
Try it: five numbers, one picture
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.
| Measure | Working | Value |
|---|---|---|
| Range | 20 − 2 | 18 |
| IQR | 14 − 5 | 9 |
| Now change the 20 to 60 | range becomes 58 | IQR stays 9 |
| Why | it uses the middle half | only |
What to take away
- Seven things, and the fourth is the one that ruins projects.
| A statistical question | expects its answers to vary |
| It must name | the variable, the group and the intent |
| The four types | summary, comparison, relationship, time series |
| The type | decides what you must collect, before you collect it |
| Primary or secondary | is about who gathered it |
| Five-point summary | min, Q1, median, Q3, max |
| IQR | is Q3 minus Q1, and one odd value cannot move it |
Common mistakes
- IQR = maximum − minimumThat 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.
Is "how long is the trip to school?" statistical?
Comparing two groups. What else must you record?
Find the five-point summary of 8, 3, 11, 5, 14, 6, 18, 9.
Find the IQR of that set.
Ana downloads rainfall figures from NIWA for her project. What kind of data is she using?
Is screen time linked to hours of sleep for Year 9 students? What type of investigation is this?
A class records each student's height, eye colour and favourite sport. Which description is right?
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.
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 | |
|---|---|
| 1 | Yes, the answers vary |
| 2 | Which group each person is in |
| 3 | 3, 5.5, 8.5, 12.5, 18 |
| 4 | 7 |
Center and Variability

Full screen · PhET Interactive Simulations, University of Colorado Boulder, CC BY 4.0
Challenge
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
- 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.
- 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.
- 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.
- 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.
- 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
- Q1 = (5 + 6) ÷ 2 = 5.5, Q3 = (11 + 13) ÷ 2 = 12halves 3, 5, 6, 8 and 10, 11, 13, 15
- IQR = 12 − 5.5 = 6.5Q3 − Q1
- x = 6: 3, 5, 6, 6, 8, 10, 11, 13, 15 gives Q1 = 5.5, Q3 = 12lowest x that still works
- x = 11: 3, 5, 6, 8, 10, 11, 11, 13, 15 gives Q1 = 5.5, Q3 = 12highest x that still works
- x = 5 gives Q1 = 5, x = 12 gives Q3 = 12.5just outside, the IQR changes
- x = 9: 3, 5, 6, 8, 9, 10, 11, 13, 15, median 9, IQR 6.5both unchanged
- x ≥ 15: Q3 = (13 + 15) ÷ 2 = 14, IQR = 14 − 5.5 = 8.515 moves into the 8th spot
- (a) 6.5 (b) 6 ≤ x ≤ 11 (c) x = 9 (d) 8.5, when x ≥ 15
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
- Nine marks: the 1st is 2, the 5th is 8 and the 9th is 20.
- 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.
- So only the 4th and 6th marks are free, and both pairs have fixed totals whatever they are.
- 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.
- 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
- fixed: 2 + 8 + 20 = 30min, median, max
- 2nd + 3rd = 2 × 5 = 10, 7th + 8th = 2 × 12 = 24Q1 and Q3 are means of pairs
- total = 30 + 10 + 24 + 4th + 6th = 64 + 4th + 6thonly two free marks
- smallest: 4th ≥ 3rd ≥ 5 and 6th ≥ 8, so total ≥ 64 + 5 + 8 = 772, 5, 5, 5, 8, 8, 12, 12, 20
- largest: 4th ≤ 8 and 6th ≤ 7th ≤ 12, so total ≤ 64 + 8 + 12 = 842, 5, 5, 8, 8, 12, 12, 12, 20
- check 84 set: halves 2, 5, 5, 8 and 12, 12, 12, 20 give Q1 = 5, Q3 = 12summary matches
- smallest total 77, largest total 84
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
- 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.
- Each other mark lies between the known marks either side of it, for example 9A's 2nd mark is from 2 to 5.
- Raising any mark can never lower the median of the combined list, and lowering any mark can never raise it.
- 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.
- With 22 marks the median is the mean of the 11th and 12th.
Full working
- known positions in each class: 1st, 3rd, 6th, 9th, 11thmin, Q1, median, Q3, max
- 9A low: 2, 2, 5, 5, 5, 9, 9, 9, 14, 14, 20each unknown at its lower limit
- 9B low: 6, 6, 10, 10, 10, 15, 15, 15, 18, 18, 25same rule
- combined low: 2, 2, 5, 5, 5, 6, 6, 9, 9, 9, 10, 10, ...11th = 10, 12th = 10
- 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
- combined high: 2, 5, 5, 6, 9, 9, 9, 10, 10, 14, 14, 14, ...11th = 14, 12th = 14
- median of 22 ranges from (10 + 10) ÷ 2 = 10 to (14 + 14) ÷ 2 = 14moving marks only moves the median one way
- smallest possible median 10, largest possible median 14


