Surveys, sampling and experiments
Population and sample, parameters and statistics, the three ideas of sampling, sampling designs (simple random, stratified, cluster, systematic), sampling variability, what makes a valid survey, the main sources of bias, and observational studies versus randomized experiments.
Textbook: Ch. 8 and ch. 9 (sections 9.1 and 9.2) · Sessions: Module 8, lecture 11, tutorial 12 · About 45 minutes
Population, sample, parameter and statisticImportant
Inferential statistics uses a sample to learn about a population. The population is the whole group we want to know about (all Belgian adults aged 16 to 64); the sample is the part we actually examine. A parameter is a number that describes the population, usually unknown (the population proportion p, the population mean μ); a statistic is a number computed from the sample (p̂, ȳ) to estimate it. The sampling frame is the list from which the sample is actually drawn.
| Population | Sample | |
|---|---|---|
| Proportion | parameter p | statistic p̂ |
| Mean | parameter μ | statistic ȳ |
| Standard deviation | parameter σ | statistic s |
Three ideas of samplingImportant
- Examine a part of the whole. The sample must be representative; a sample that systematically over- or under-represents a group is biased, and no sample size repairs bias.
- Randomize. Let chance pick the cases. Randomizing protects against the influences you know about and also those you do not know about; it matches the sample to the population better than any hand-picking.
- The sample size is what matters. The precision of an estimate depends on the number of cases sampled, not on the fraction of the population. A random sample of 1,000 says about as much about Belgium as about the whole EU.
Different random samples give different values of a statistic: sampling variability. The difference between a statistic and the parameter (p̂ ≠ p) is called sampling error; it is not a mistake, and chapters 9 and 10 show how to measure it.
Sampling designsImportant
| Design | How | When useful |
|---|---|---|
| Simple random sample (SRS) | every set of n cases has the same chance (in R: sample(frame, size = n)) | the basic design behind all formulas in this course |
| Stratified | split the population into homogeneous groups (strata) and draw an SRS in each | groups differ a lot; guarantees each group is represented |
| Cluster | split into groups that each look like the population, randomly pick whole clusters | when a list of individuals is costly but a list of groups exists |
| Systematic | take every k-th case from the list after a random start | when the list has no pattern that repeats every k cases |
| Multistage | combine designs, for example regions, then towns, then households | large national surveys |
Planning two designs
A firm has 12,000 customers, of whom 60% are private persons and 40% are companies. It wants a sample of 400.
Systematic sample
Stratified sample, proportional allocation
Stratifying makes sure both customer types are represented in the right proportion, and gives more precise estimates when the strata differ.
The valid survey and sources of biasImportant
A valid survey answers four questions: what do I want to know; who are the right respondents (the right sampling frame); what are the right questions; and what will be done with the results? The usual ways a survey goes wrong:
| Bias | What happens | Example |
|---|---|---|
| Voluntary response | people choose themselves, so strong opinions dominate | an online poll, a survey with a reward for anyone who joins |
| Convenience sample | cases that are easy to reach | interviewing people at one train station |
| Bad sampling frame (undercoverage) | the list misses part of the population | a landline phone book for a survey of students |
| Nonresponse | those who do not answer differ from those who do | a 10% response rate to a mailed questionnaire |
| Response bias | the wording or the situation pushes answers | a leading question, or asking about illegal behaviour face to face |
Always pilot the questionnaire on a small group first: unclear or leading questions show up quickly.
Observational studies and experimentsNeutral
In an observational study the researcher only records what happens: who chose a product, who saves more. It can show association, but a lurking (confounding) variable can always explain it. In an experiment the researcher assigns treatments to the subjects. In a randomized controlled trial, the subjects are randomly assigned to a treatment group and a control group, and the outcomes are compared. Because chance decides who gets what, the groups are alike in everything except the treatment, so a clear difference can be attributed to it: experiments can show causation.
Online businesses run the same design as an A/B test: visitors are randomly shown version A or version B of a page, and the share that buys is compared.
Key takeaways
- Parameter (population, unknown) versus statistic (sample, computed).
- Examine a part, randomize, and remember that sample size, not the fraction sampled, drives precision.
- SRS, stratified, cluster, systematic and multistage designs.
- Bias (voluntary response, convenience, bad frame, nonresponse, response bias) is not fixed by a larger sample.
- Sampling error is natural variation, not a mistake.
- Only randomized experiments can show causation.
Multiple choice (8)
A firm offers a voucher to anyone who completes its online survey. The sample is...
The mean income of all households in a city is a...
Pick 20 schools at random and interview every teacher in them. This is...
A sample of 1,500 is drawn from a country of 10 million and one of 1,500 from a country of 80 million. Precision is...
"Don't you agree that taxes are already far too high?" is an example of...
Which study can show that a savings product causes higher savings?
From a list of 5,000 invoices you take every 50th one after a random start. This is...
Different random samples give different values of p̂. This is called...
Exam-style open questions (2)
Criticise a survey
A city wants to know how residents travel to work. It places a poll on its website for one week; 3,400 people respond. Name two problems and propose a better design.
Show the worked outline
- Voluntary response: those with strong opinions (for example about cycling lanes) respond more.
- Bad frame: website visitors are not all residents and miss those who rarely use the website.
- Better: an SRS (or stratified by district) from the population register, with reminders to limit nonresponse.
Design an experiment
A web shop wants to know whether free shipping above 50 euro raises the average order value. Describe a randomized experiment.
Show the worked outline
- Randomly assign visitors to version A (current rules) or version B (free shipping above 50 euro).
- Run both versions in the same period and record order values.
- Compare the mean order values of the two groups; random assignment makes the groups comparable, so a clear difference can be attributed to the offer.
LabSampling design and bias sorter
Two exercises of six items each.