A news website runs an online poll on a new bus route and gets 5000 replies: 80% against. Does that mean 80% of the city is against it? Probably not. Only people who read that website, and who care strongly enough to click, took part. The numbers are large, but the method of choosing people is the problem. Sampling is about choosing data so that it tells you the truth about a bigger group.
Statistics studies a sample to learn about a whole population.
The words of sampling
Term
Meaning
Population 总体
the whole group the claim is about
Census 普查
data from every member of the population
Sample 样本
the part of the population that is actually measured
Sampling unit 抽样单位
one member that can be chosen
Sampling frame 抽样框
the list that the sample is drawn from
A statistic 统计量 is a number worked out from a sample, such as a sample mean. You use it to estimate the matching number for the population, called a parameter 参数.
Census or sample?
Census
Sample
accurate for the whole population
cheaper and quicker, with less data to handle
slow and expensive for large groups
results vary from one sample to another
impossible if testing destroys the item
can be biased if badly chosen
If you test how long light bulbs last, the test destroys them. So only a sample makes sense.
Different samples from the same population give different results. This natural variation is not a mistake. Larger samples usually vary less, so they give more reliable estimates, as long as they are chosen fairly.
Random sampling methods
Simple random sampling 简单随机抽样: every possible sample of size $n$ is equally likely to be chosen.
Four random sampling designs: who gets selected, and how
Worked example. Choose 25 of a school's 500 students. Number them 001 to 500 (the sampling frame). Generate random numbers from 001 to 500 and ignore repeats until you have 25 different numbers. Survey those 25 students.
Strength: it is free of selection bias.
Weakness: it needs a complete list, and by chance it may miss a small group.
Systematic sampling 系统抽样: choose every $k$th unit from a list, after a random start, where $k=\frac Nn$.
Worked example.$N=40$ and $n=8$, so $k=5$. Choose a random start from 1 to 5, say 3. Then take units 3, 8, 13, 18, 23, 28, 33 and 38.
Strength: quick and simple, and it spreads the sample through the list.
Weakness: if the list has a repeating pattern, the sample can be biased. For example, if every 5th house on a list is a corner house, every unit chosen might be a corner house.
Stratified sampling 分层抽样: split the population into groups (strata) and sample each group in proportion to its size, randomly within each group.
Worked example. 120 people are in group A and 80 in group B. Take a sample of 30. Group A gets $30\times\frac{120}{200}=18$ and group B gets $30\times\frac{80}{200}=12$. Then choose 18 at random from A and 12 at random from B.
Stratified: 30 × 120/200 = 18 and 30 × 80/200 = 12; a bigger biased sample is still biased
Worked example: rounding. Groups of 47, 85 and 68 (200 in total); sample 30.
Group
Size
$30\times\frac{\text{size}}{200}$
Take
Year 12
47
7.05
7
Year 13
85
12.75
13
Staff
68
10.2
10
Total
200
30
30
Round each, then check the total. If rounding gives 29 or 31, change the group whose decimal was closest to .5.
Strength: every group is fairly represented.
Weakness: you must know the size of each group, and have a list for each one.
Non-random methods
Quota sampling 配额抽样: the interviewer fills a fixed number (a quota) for each group, such as 18 from A and 12 from B, but chooses who to ask.
Quota, opportunity and cluster sampling methods
Opportunity sampling 方便抽样: use whoever is available, such as the first 30 people at the school gate.
Cluster sampling 整群抽样: split the population into natural groups (clusters), choose some clusters at random, and measure every member of those clusters. For example, choose 4 of a city's 40 schools at random, and survey every student in those 4.
These methods are quick and cheap, and quota and opportunity sampling need no sampling frame. But when a person chooses who is in the sample, bias 偏倚 can enter. Cluster sampling is cheap to run, but if the clusters are very different from each other the results vary a lot.
The methods compared
Method
Random?
Needs a frame?
Main weakness
Simple random
yes
yes
small groups can be missed
Systematic
start only
yes
a repeating pattern in the list biases it
Stratified
within groups
yes
the group sizes must be known
Quota
no
no
the interviewer chooses
Opportunity
no
no
rarely representative
Cluster
the clusters
a list of clusters
clusters may differ from each other
A bigger sample cannot fix bias
Bias comes from how the units are chosen. A bigger sample chosen the same way repeats the same fault.
Worked example. The voluntary online poll on the bus route got 5000 replies. People with strong opinions, and people who use that website, are over-represented, however many replies there are. A random sample of 200 from the list of residents would be more reliable. A small random sample beats a large biased one.
Working with the large data set
The exam uses AQA's large data set. Know it well, and use only the real values.
Check
Why
variable definitions and units
a value means nothing without its unit
missing or blank entries
missing is not zero: leave it out, do not count it as 0
dates and regions covered
a sample from one year or region may not apply elsewhere
how the data were collected
the collection method decides the possible bias
Interpreting in context. When you comment on a sample, always talk about the real situation. “The sample only includes cars from 2002, so it may not represent cars made today” earns credit. “The sample might be biased” alone does not.
Which method?
A school wants the views of its 600 students, with the year groups represented in proportion. It has a full list of students by year group. The best choice is a stratified sample by year group, chosen at random within each year. Opportunity and quota sampling let someone choose who is asked, and a census of all 600 would cost far more time than it needs.
Choosing a method starts with the list you have
Practice
What is the sampling frame for a survey of a school's students?
A list has 1200 people. Describe how to take a systematic sample of 60.
Two groups have 150 people each. How many from each group in a stratified sample of 40?
Why does a factory not test every battery it makes?
A survey of 50 people in a shopping centre on a weekday morning asks about local transport. Give one reason the results may be biased.
A club has 36 juniors, 54 adults and 30 seniors. Find the numbers in a stratified sample of 20.
Answers.
The list of all students in the school.
$k=\frac{1200}{60}=20$: choose a random start from 1 to 20, then every 20th person.
20 and 20.
Testing destroys them, so a census would leave nothing to sell.
For example: people at work or school on a weekday are left out; people who drive to the centre are over-represented.