Year 10StatisticsDeveloping knowledge from dataYear 10 Maths

Samples, bias, and choosing the right average

What this lesson covers

  • It is not always possible to get data from the entire population (as in a census). To make inferences about a population without a census, sampling is used.
  • Samples must be taken randomly from the population, otherwise there will be bias in the data, leading to inaccurate and misleading statistics. Samples are ideally chosen using simple random sampling, in which each item of the population has an equal probability of being chosen.
  • When sampling from a population, the distribution for a variable varies from sample to sample. To make a reliable inference about what is happening in the population, sample sizes need to be: about 1,000 for categorical variables (with the sample obtained using technology) at least 30 for numerical variables.
Key idea

Every statistic is about people nobody asked

  • A headline says forty percent of New Zealanders think something.
  • Nobody asked five million people. They asked about a thousand.
  • This lesson is about when that is allowed.
Key idea

Why not just ask everyone?

  • Asking everyone is a census, and New Zealand runs one.
  • It costs millions and takes months, for one set of questions.
  • So for anything else, you ask some and infer the rest.
ApproachDetailCost
A census asks everyoneNew Zealand does oneevery five years
It costsmany millionsand takes months
For one questionthat is not possible
So you ask someand infer the rest
Key idea

The thing that ruins a sample

  • A biased sample is one that does not look like the population.
  • Ask people leaving a gym how often they exercise.
  • You will get an answer, and it will be confidently wrong.
ProblemExample
A biased sampledoes not look like the population
Asking at a gymabout exercise habits
Asking onlineabout internet access
The answer is wrongand looks perfectly convincing
Worked example

It is usually not obvious

  • An online poll about internet access misses everyone without it.
  • A phone survey at 10am misses everyone at work.
  • The question is always: who could not have been chosen?
Key idea

What random actually means

  • Every single member of the population is equally likely.
  • The test: could any one of them have ended up in your sample?
  • Whoever happened to be nearby fails that test immediately.
RuleIn practiceNote
Simple random samplingeveryone equally likely
The testcould any personhave been chosen?
Whoever is nearbyfails that test
Use a random generatornot your judgement
Key idea

Doing it properly

  • Number the population, then use a random number generator.
  • Not your own choosing. People are terrible at being random.
  • The technology is free and it is the whole of the method.
Key idea

How many do you need?

  • For a categorical variable, around a thousand.
  • For a numerical one, at least thirty.
  • A category carries less information per person, so you need more.
VariableSample size
Categorical variableabout 1 000
Numerical variableat least 30
Why the differencea category carries less information
Biased and bigis still biased
Key idea

Big does not fix biased

  • A biased sample of ten thousand is not better than one of thirty.
  • It is worse, because it looks more convincing.
  • Size reduces variation. It does nothing at all to bias.
Key idea

Two fair samples will still disagree

  • Take a proper random sample. Then take another one.
  • They will not give identical answers, and neither is wrong.
  • That spread is sampling variation, and bigger samples vary less.
StepResultName
Take a sampleget a result
Take anotherslightly different
That spreadis sampling variationnot error
Bigger samplesvary less
Key idea

Collecting more than one thing

  • Record height, and you can describe how tall people are.
  • Record height and arm span for each person, and you can ask more.
  • They have to be recorded together, or the link is gone.
What you collectWhat you can askNote
One variablehow tall are they
Two at onceheight and arm spanper person
Now you can askare they related?
Record them togetheror the link is lost
Key idea

Write the question before you collect anything

  • Who exactly is the population? All Year 10s, or this school?
  • What are you measuring, and in what units?
  • Data collected without a question answers nothing in particular.
Do thisNot that
Write the question firstthen design the collection
Who is the population?all Year 10s? this school?
What will you measure?and in what units?
Data collected firstanswers nothing in particular
Worked example

Two averages, one set of numbers

  • Two, three, three, four, and forty-eight.
  • The mean is twelve. The median is three.
  • Four of the five values are below the mean.
Two averages, one set of numbers
Key idea

So which one should you report?

  • If the data has a long tail one way, use the median.
  • If it is roughly symmetric, the mean is fine and says more.
  • Ask what the average is meant to represent.
Shape of the dataUse
A long tail one wayuse the median
Roughly symmetricthe mean is fine
House prices, incomesalways reported as medians
Because a few very large onesdrag the mean up
Key idea

Which is why you never see a mean house price

  • House prices and incomes both have a long tail upwards.
  • A few very large ones would drag the mean well above typical.
  • So they are reported as medians. Check tonight. They always are.
Summary

What to take away

  • Seven lines, and the third one is the one people forget.
A sample is a claimabout people you did not ask
Random meanseveryone equally likely
A biased sampleis wrong at any size
Categoricalabout 1 000
Numericalat least 30
Samples varyand that is expected
A long tailmeans report the median
Your turn

Your turn: four questions

  • Pause here and answer all four.
  • Question 1 wants the reason, not just the word.
  • Question 4 follows from your answer to question 3.
Question
1A gym exit survey on exercise. Problem?
2Minimum sample size, numerical variable?
3For 2, 3, 3, 4, 48: mean and median?
4Which of those describes the data better?
Show answer

1. The sample is biased. Everyone leaving a gym exercises, so the sample cannot represent a population that includes people who do not. The result will overstate exercise however many people are asked. 2. At least 30. For a categorical variable you would want around 1,000. 3. The mean is 12, because the five values total 60. The median is 3, the middle value when they are in order. 4. The median. Four of the five values are below the mean, so the mean is not describing a typical value at all: it has been dragged up by the 48 on its own.

Worked example

The answers

  • It is biased: everyone leaving a gym exercises.
  • At least thirty for a numerical variable.
  • Mean twelve, median three.
  • The median, because the mean sits above four of the five values.

Is your child on track?

Take the free placement test