Planning data collection and sources of variation
What this lesson covers
- Data vary for many reasons, and a good plan anticipates the ones it can control.
- How data are collected or sourced decides what a conclusion can claim about the population.
The plan turns a question into instructions
- What exactly will be measured, and how?
- Who will be measured, and how many?
- Where does the data come from?
Primary or secondary data
- Primary: you collect it yourself.
- Secondary: someone else collected it.
- Either way, you must know how it was got.
| Data | Means | For example |
|---|---|---|
| Primary | you collect it yourself | survey, measure, time |
| Secondary | someone else collected it | Census at School, a report |
| Either way | you must know how it was got | or you cannot trust it |
Define the measurement exactly
- Resting pulse: when, how, and for how long.
- Count for 30 seconds, then double it.
- Written down so everyone does the same thing.
| Decision | Resting pulse rate |
|---|---|
| When | seated, after 2 minutes of rest |
| How | two fingers on the wrist, not the thumb |
| Count | beats in 30 seconds, then double |
| Record | whole beats per minute, e.g. 72 |
Natural variation
- Twenty careful measurements, twenty different people.
- They still spread from 58 to 90.
- People really do differ. That is not a mistake.

Measurement variation
- A miscount, a rounded value, a different method.
- The same pulse can be recorded differently.
- One clear method keeps this small.
Induced variation
- Some students measured just after PE.
- Their pulse is raised by the conditions, not by who they are.
- Keep conditions the same for everyone.
Sampling variation
- Three samples of 30, three different medians.
- Each one is an estimate of the population.
- Bigger random samples vary less.
| Sample | Who | Result |
|---|---|---|
| Sample A | 30 students | median 71.5 |
| Sample B | 30 other students | median 74 |
| Sample C | 30 more | median 69 |
| So | one median is an estimate | not the truth |
Four sources, four responses
- Natural variation is described, not removed.
- The other three you plan to reduce.
- Say which ones your data might have.
| Source | Cause | Response |
|---|---|---|
| Natural | people really differ | expected: describe it |
| Measurement | the recording slips | one clear method |
| Induced | conditions differ | same conditions for all |
| Sampling | another sample differs | bigger, random samples |
Try it: name the source of variation
Choosing who to measure
- Random: everyone has a fair chance of being picked.
- Friends or volunteers give a lopsided sample.
- Aim for 30 per group, or 30 pairs.
| Method | Effect |
|---|---|
| Random | everyone has a fair chance |
| Friends only | convenient, but not typical |
| Volunteers | only the keen ones reply |
| Size | 30 per group, or 30 pairs |
Try it: fix the pulse plan
Cleaning the data
- Look for values that cannot be right.
- Check before fixing, and never guess silently.
- Record every change you make.
| Value | Problem | Action |
|---|---|---|
| 720 | extra digit typed | check, then 72 |
| 7.2 | decimal point slipped | check, then 72 |
| (blank) | missing | leave out, say so |
| 112 | high but possible | keep, find out why |
Try it: a value that does not belong
Unusual is not the same as wrong
- A pulse of 112 is high, but a real person can have it.
- Deleting it makes the data look tidier than it is.
- Keep it, and look for a reason.
What the marker looks for
- Explain how the data were collected or sourced.
- Name the sources of variation you expect.
- Say what you did to reduce them.
What to take away
- Good data is planned, not hoped for.
| Primary or secondary | know how the data were got |
| Define the measure | so everyone records it the same |
| Natural | people really differ |
| Measurement | reduce with one clear method |
| Induced | keep conditions the same |
| Sampling | bigger, random samples |
| Cleaning | fix errors, keep real unusual values |
Common mistakes
- A pulse of 112 is an outlier, so I deleted it.112 is high but possible for a real person; keep it, look for a reason, and record anything you change.
- Heights 162, 158, 1.71, 165 cm: 1.71 is wrong, so leave it out.1.71 was recorded in metres; after checking, record it as 171 cm so every value has the same unit.
- Pulses spread from 58 to 90, so some of them must be measured wrong.That is natural variation, because people really differ; describe it, and reduce only measurement, induced and sampling variation.
- I posted the survey on the class page so anyone could answer, which makes it random.Only people who see it and choose to reply are included, so it is a volunteer sample, not a random one.
Your turn: eight questions
- Answer each in a sentence.
- Name the source of variation where you can.
- Say what you would do about it.
Some students get three goes at a reaction test, some get one. Problem?
Heights recorded: 162, 158, 1.71, 165 (cm). What needs fixing?
A sleep survey is posted on a class social media page. Problem?
A comparison of two groups: how many people at least?
A student uses Census at School results to study the sleep of Year 11s. What kind of data is this?
Resting pulses, all measured carefully the same way, range from 58 to 90 bpm. Which variation is this, and what do you do?
Year 11 heights run from 150 cm to 182 cm, plus one of 198 cm. What should you do with the 198 cm?
Two random samples of 30 from the same school give median pulses of 71.5 and 74 bpm. Why do they differ, and what helps?
Show answer
1. Induced and measurement variation: the conditions differ between students. Give everyone the same number of goes, for example the mean of three. 2. 1.71 was recorded in metres. After checking, record it as 171 cm so every value has the same unit. 3. Volunteer bias: only people who see the post and choose to reply are included, so the sample is not random and may not represent the population. 4. 60: at least 30 in each of the two groups. 5. Secondary data: someone else collected it, so the student must find out how it was collected. 6. Natural variation: people really differ, so it is expected. Describe it rather than try to remove it. 7. Check it, and keep it if it is real: a 198 cm student is unusual but possible. Deleting it makes the data look tidier than it is. 8. Sampling variation: each random sample is a different set of students. Bigger random samples vary less.
The answers
- Conditions differ: give everyone the same number of goes.
- 1.71 is in metres: check, then 171 cm.
- Volunteers only: not a random sample.
- 60: at least 30 in each group.
Sample question: Achieved
A class recorded these heights in centimetres: 162, 171, 1.68, 158, 1650, 174, (blank), 169. Find each problem value, say what you would do with it, and then find the median height of the cleaned data.
Hint
Look for values in the wrong unit, values with an extra digit and missing values, then sort what is left.
Answer
1.68 was recorded in metres: after checking, record 168. 1650 has an extra digit: after checking, record 165. The blank is missing: leave it out and say so. The 7 cleaned values have median 168 cm.
Step by step
- Heights of Year 11 students are usually somewhere between about 140 and 200 cm. Anything far outside that needs checking.
- 1.68 looks like a height in metres. 1.68 m is 168 cm, so after checking with the student, record 168.
- 1650 cm would be over 16 metres tall. It is most likely 165 with an extra 0 typed. Check, then record 165.
- The blank is missing data. Do not guess a value. Leave it out and write down that you did.
- The cleaned data has 7 values: 162, 171, 168, 158, 165, 174, 169.
- Sort them: 158, 162, 165, 168, 169, 171, 174.
- With 7 values the median is the middle one, the 4th: 168 cm.
- Classic mistake: finding the median before cleaning. The 1650 would sit at the top and push the middle value up.
- Check: 3 values sit below 168 and 3 sit above it.
Full working
- 1.68 m → 168 cmwrong unit, check first
- 1650 → 165extra digit typed, check first
- blank: leave out and record itmissing
- 158, 162, 165, 168, 169, 171, 1747 values, sorted
- median = 4th value
- Median 168 cm
Sample questions: Merit
Investigative question: "Do Year 11 students at our school who play video games most days tend to have faster reaction times than those who do not?" Reaction time will be measured with a ruler-drop test: a partner drops a 30 cm ruler and the student catches it. Write a measurement plan that makes every value recorded the same way. Then name three sources of variation and say how your plan reduces each one.
Hint
Decide when, how, how many goes and what is recorded, then match one part of the plan to each of measurement, induced and sampling variation.
Answer
Plan: seated, in class, not straight after PE; strong hand, ruler zero level with the top of the thumb; no practice beyond one trial go; three recorded drops, record the mean distance in cm to the nearest 0.5 cm. Measurement variation (reading the ruler): one method, one reader, read at the top of the thumb. Induced variation (practice or tiredness): same number of goes and same conditions for everyone. Sampling variation: at least 30 randomly chosen students in each group.
Step by step
- A plan has to be clear enough that two different people would record the same student in the same way.
- When: seated in class, not straight after PE, because exercise or tiredness could change reaction time.
- How: the student uses their strong hand, with the zero of the ruler level with the top of their thumb. The partner drops it with no warning.
- How many goes: one practice drop, then three recorded drops. Use the mean of the three, because one drop can be a lucky or unlucky catch.
- Record: the distance the ruler fell, in cm, to the nearest 0.5 cm, read at the top of the thumb.
- Measurement variation is when the recording slips, such as reading the ruler at a different place. One fixed reading point reduces it.
- Induced variation comes from conditions. If some students get ten practice goes, they improve because of the conditions, not because of who they are. Same goes, same conditions for all.
- Sampling variation means another sample would give different results. Random samples of at least 30 in each group reduce it.
- Natural variation, people really differing, cannot be planned away. You describe it in the analysis.
- Check: each of the three sources has a matching part of the plan.
Full working
- seated, in class, not after PEsame conditions
- strong hand, zero at top of thumbsame method
- 1 practice, 3 recorded, use the meansame number of goes
- record cm to nearest 0.5 cm
- measurement: one reading point; induced: same goes and conditionsreduce each
- sampling: at least 30 random students per group
- A written method plus a fix for measurement, induced and sampling variation
A school has 240 Year 11 students: 90 play a team sport and 150 do not. Mere wants to compare their hours of sleep, so she surveys the 30 students in her own maths class. Her class has 18 who play a team sport and 12 who do not. Explain two problems with her sample, and describe how she could choose a better one from the Year 11 roll.
Hint
Think about how many she has in each group, and whether her class is a fair picture of all Year 11s.
Answer
First, 18 and 12 are both under 30 per group, so each median would vary a lot from sample to sample. Second, one class is not random: it is a convenience sample and may differ from Year 11 as a whole (same timetable, same teacher, maybe a similar level). Better: list the 90 sport players and the 150 non-players from the roll, number each list, and use a random number generator to choose 30 from each list.
Step by step
- The question compares two groups, so the sample needs enough students in each group, not just 30 in total.
- Her class gives 18 sport players and 12 non-players. Both are under 30, so each group's median could change a lot if she asked different students.
- Second problem: she chose her own class because it was easy. That is a convenience sample, not a random one.
- One class may not be typical. Students in the same class share a timetable and often a similar level, which could link to sleep.
- Fix: start from the roll. Make one list of the 90 who play a team sport and one list of the 150 who do not.
- Number each list, 1 to 90 and 1 to 150.
- Use a random number generator to pick 30 numbers from each list, skipping repeats. Now everyone in each group has a fair chance.
- Classic mistake: thinking 30 students in total is enough. The rule is about 30 in each group.
- Check: 90 + 150 = 240, and 30 is less than both 90 and 150, so the plan is possible.
Full working
- 18 and 12both under 30 per group
- one class onlyconvenience sample, not random
- lists from the roll: 90 sport, 150 not90 + 150 = 240
- number each list, random number generator
- 30 chosen at random from each list
- Problems: groups too small and not random; fix: 30 random students from each group on the roll
Sample questions: Excellence
Two random samples of 8 resting pulse rates (beats per minute) were taken from the same Year 11 population. Sample 1: 62, 66, 68, 69, 71, 74, 78, 88. Sample 2: 64, 70, 72, 75, 77, 79, 81, 85. Find the median of each sample and explain why they differ. Then Aroha compares 8 students who walk to school (median 68) with 8 who are driven (median 71) and concludes that walkers tend to have lower pulse rates. Use your two samples to judge her conclusion, and say what she should do instead.
Hint
The two samples come from the same population, so the gap between their medians shows how much a median can move by chance alone.
Answer
Sample 1 median 70, sample 2 median 76. They differ because of sampling variation: each random sample of 8 gives a different estimate. Two samples from the same population differed by 6 beats per minute, so Aroha's difference of 3 beats per minute could easily be chance. Her conclusion is not supported. She should take random samples of at least 30 in each group and compare whole distributions.
Step by step
- Each sample has 8 values, already in order. With an even number of values, the median is halfway between the 4th and 5th values.
- Sample 1: the 4th and 5th values are 69 and 71. Halfway is 70.
- Sample 2: the 4th and 5th values are 75 and 77. Halfway is 76.
- Both samples were random and from the same population, yet their medians differ by 76 − 70 = 6 beats per minute. That is sampling variation.
- Now Aroha's groups. Her medians differ by 71 − 68 = 3 beats per minute, and she also used only 8 per group.
- Here is the key link: samples of 8 from the same population already differed by 6. A difference of 3 is smaller than the difference chance alone produced here.
- So her difference could be nothing more than sampling variation. The data does not support "tend to".
- She should not say walkers have higher pulses either. The right conclusion is that no call can be made from these samples.
- Improvement: random samples of at least 30 per group. Bigger random samples vary less, so a real difference would show up more clearly.
- She should also compare the whole distributions, using box plots, not just the medians.
- Check: 4 values lie below 70 in sample 1 and 4 lie above it. 4 lie below 76 in sample 2 and 4 above it.
Full working
- Sample 1 median = (69 + 71) ÷ 2 = 704th and 5th of 8
- Sample 2 median = (75 + 77) ÷ 2 = 76
- 76 − 70 = 6same population: sampling variation
- Aroha: 71 − 68 = 3, only 8 per group
- 3 < 6the gap could be chance
- Medians 70 and 76; her conclusion is not supported; use at least 30 per group
Ten resting pulse rates (beats per minute) were recorded: 66, 71, 720, 64, 98, 104, 69, 112, 75, 62. Later you find out that the students with 98, 104 and 112 were measured within five minutes of finishing PE. Clean the data and justify each decision. Find the median with and without the three PE values, and explain which source of variation the PE values show and how you would change the plan.
Hint
Fix the impossible value first. Then decide about the PE values because of how they were measured, not because they are high.
Answer
720 becomes 72 after checking. The PE values are set aside because they were measured in different conditions (induced variation), not because they are large. Median of the 10 values with 72: 71.5; median of the 7 values without PE: 69. Plan change: everyone sits and rests for 2 minutes before measuring and nobody is measured within an hour of PE; re-measure those three students.
Step by step
- First, look for values that cannot be right. A resting pulse of 720 is impossible. It is most likely 72 with an extra digit. Check, then record 72.
- Next, the three PE values: 98, 104 and 112. A real resting pulse of 98 or even 112 is possible, so being high is not a reason to delete them.
- The reason to set them aside is how they were measured. Straight after PE, a pulse is raised by the conditions, not by the person. That is induced variation.
- So these values do not measure resting pulse at all. Leave them out of the analysis, record why, and re-measure those students later.
- Median with all 10 values, after the 720 fix: sort them: 62, 64, 66, 69, 71, 72, 75, 98, 104, 112.
- With 10 values, the median is halfway between the 5th and 6th: (71 + 72) ÷ 2 = 71.5.
- Median without the PE values: 62, 64, 66, 69, 71, 72, 75. With 7 values the median is the 4th: 69.
- The induced variation pushed the median up by 71.5 − 69 = 2.5 beats per minute. A group measured after PE would look less fit than it is.
- Plan change: every student sits for 2 minutes before measuring, and nobody is measured within an hour of PE.
- Classic mistake: deleting a value just because it is unusual. Keep real unusual values. Remove a value only with a reason you can state.
- Check: the cleaned 7 values have 3 below 69 and 3 above it.
Full working
- 720 → 72extra digit, check first
- 98, 104, 112 measured after PEinduced variation, not real resting pulse
- all 10: 62, 64, 66, 69, 71, 72, 75, 98, 104, 112
- median = (71 + 72) ÷ 2 = 71.5
- without PE: 62, 64, 66, 69, 71, 72, 75median = 4th value
- Median 71.5 with PE values, 69 without; rest 2 minutes, never after PE
Challenge
A class plan says: count resting pulse beats for 15 seconds, then multiply by 4. The recorded pulses (beats per minute) are 64, 72, 70, 76, 68, 81, 60, 88. Which values could not have come from this method, and what would you do with them? Then explain why counting for 15 seconds gives more measurement variation than counting for 30 seconds and doubling, using what one miscounted beat does to the recorded value.
Hint
Every value from the method is (a whole number of beats) × 4. Then think: if a student miscounts by one beat, how much does the recorded value change for each method?
Answer
70 and 81 are not multiples of 4, so they could not have come from the method: check with those students and re-measure them, and record the change. One miscounted beat changes the recorded pulse by 4 beats per minute with the 15-second method, but by only 2 with the 30-second method, so the 15-second method has twice the measurement variation.
Step by step
- With the 15-second method, every recorded value is a whole number of beats multiplied by 4, so it must be a multiple of 4.
- 64, 72, 76, 68, 60 and 88 are all multiples of 4. 70 and 81 are not.
- So those two students did not follow the method. Do not guess or delete silently: check with them, re-measure if you can, and record what you changed.
- If a student miscounts by one beat in 15 seconds, the recorded pulse is off by 1 × 4 = 4 beats per minute.
- Counting for 30 seconds and doubling, one miscounted beat is off by only 1 × 2 = 2 beats per minute. A longer count reduces measurement variation.
Full working
- valid values are multiples of 4beats × 4
- 70 ÷ 4 = 17.5, 81 ÷ 4 = 20.25not whole numbers
- one beat wrong, 15 s method: 1 × 4 = 4 beats per minute
- one beat wrong, 30 s method: 1 × 2 = 2 beats per minute
- 70 and 81 are impossible: check and re-measure; the 15 s method doubles the error of one miscount
To see how much medians move by chance, a teacher took repeated random samples of resting pulse rates from the same Year 11 population. Five samples of 10 had medians 68, 74, 70, 77, 71 beats per minute. Five samples of 30 had medians 71, 73, 72, 70, 74 beats per minute. Study A compared two groups of 10 students and found medians 5 beats per minute apart. Study B compared two groups of 30 and also found medians 5 apart. Which study gives better evidence of a real difference? Explain using the samples.
Hint
Find how far apart the medians were when the samples all came from the SAME population, once for samples of 10 and once for samples of 30. A difference that chance alone can produce is not strong evidence.
Answer
Study B. Samples of 10 from one population had medians spread over 9 beats per minute (68 to 77), so a 5 beat gap in Study A could easily be sampling variation. Samples of 30 spread over only 4 (70 to 74), so a 5 beat gap in Study B is bigger than chance alone produced here, and is better evidence of a real difference.
Step by step
- All ten samples came from the same population, so any differences between their medians are sampling variation only.
- Samples of 10: the medians run from 68 to 77, a spread of 9 beats per minute.
- Samples of 30: the medians run from 70 to 74, a spread of only 4 beats per minute. Bigger random samples vary less.
- Study A's gap of 5 is smaller than the 9 that chance produced with samples of 10, so it could be chance.
- Study B's gap of 5 is bigger than the 4 that chance produced with samples of 30, so it is more convincing. It is still evidence, not proof.
Full working
- size 10: 77 − 68 = 9 beats per minutespread from chance alone
- size 30: 74 − 70 = 4 beats per minutespread from chance alone
- Study A: 5 < 9within chance
- Study B: 5 > 4beyond what chance produced here
- Study B gives the better evidence of a real difference
A school has 240 Year 11 students: 90 play a team sport and 150 do not. Lisiate randomly chooses 30 from each group to compare sleep. Later he pools all 60 students and uses the median of the pooled sample as an estimate of the median sleep for all Year 11s at the school. His comparison found that team-sport students tend to sleep longer. Explain why his pooled estimate is likely to be biased, say which way, and find how many from each group a random sample of 80 should have so that it matches the school. Does that sample still suit a comparison of the two groups?
Hint
Compare the share of sport players in his pooled sample with their share of the whole Year 11. Then split 80 in the same ratio as 90 to 150.
Answer
Sport players are 50% of his pooled sample but only 37.5% of Year 11. Since they tend to sleep longer, the pooled median is likely to be too high. A matching sample of 80 has 30 sport players and 50 non-players. It still suits a comparison, because each group has at least 30.
Step by step
- In the school, 90 of 240 Year 11s play a team sport: that is 37.5%.
- In the pooled sample, 30 of 60 play a team sport: that is 50%. Sport players are over-represented.
- His comparison showed sport players tend to sleep longer, so having too many of them pushes the pooled median up. The estimate is biased upwards.
- To match the school, a sample of 80 should keep the same shares: 90 ÷ 240 × 80 = 30 sport players and 150 ÷ 240 × 80 = 50 non-players, each chosen at random from its own list.
- Both groups have at least 30, so the same sample works for comparing the groups and for estimating the whole year level.
Full working
- school: 90 ÷ 240 = 37.5% sport
- pooled sample: 30 ÷ 60 = 50% sporttoo many sport players
- sport players tend to sleep longer → pooled median too highbias upwards
- 90 ÷ 240 × 80 = 30, 150 ÷ 240 × 80 = 50same shares as the school
- Biased upwards; a matching sample of 80 is 30 sport and 50 non-sport, which still allows a comparison
Where science uses this
Report a mistake
More in AS 91944
Statistical enquiry: PPDAC and investigative questions6 min
Planning data collection and sources of variation6 min
Comparing groups: box plots, shift and overlap6 min
Scatter plots: describing a relationship between two variables6 min
Writing a statistics conclusion: Achieved to Excellence6 min
Statistical enquiry: 7 questions solved step by step10 min
Comparing groups: 6 questions solved step by step11 min
Scatter plots: 7 questions solved step by step10 minIs your child on track?
Take the free placement test