Sampling and Experiments

Study Sheet

Sampling and Experiments

Where data comes from and what can go wrong

Samples and Bias

Concept
Population, sample, bias

A population is everyone you want to describe; a sample is the part you actually measure. A simple random sample gives every group of nn individuals the same chance of being chosen. Bias is a systematic tilt: voluntary response, convenience sampling, undercoverage, non-response, and leading questions all produce it.

Randomness is not sloppiness; it is the only known defense against the biases you cannot think of. A sample chosen by a person — even a careful one — reflects that person's reach and habits. A sample chosen by a random number generator reflects nothing but the population. Larger samples reduce random error; they do nothing at all about bias.

Example
Spot the bias

A website asks visitors to rate the site. Only people who feel strongly respond: voluntary response bias, which usually over-represents the unhappy. Surveying shoppers at a mall about online shopping misses everyone who never visits malls — undercoverage — and those are exactly the people most likely to shop online.

Example
A random sample by hand
010203040506070809101112131415161718192021222324252627282930digits 07 43 19 19 25 88 02 → 07, 19, 25, 02
Members are labelled 01–30; the random digits pick 07, 19, 25 and 02, scattered with no pattern.

Choose 44 of 3030 club members, numbered 0101–3030, using the random digits 07 43 19 19 25 88 0207\ 43\ 19\ 19\ 25\ 88\ 02. Read two digits at a time; keep numbers from 0101 to 3030, skip the rest, skip repeats. 0707 keep; 4343 skip (no such member); 1919 keep; 1919 skip (already chosen); 2525 keep; 8888 skip; 0202 keep. The sample is members 07,19,25,0207, 19, 25, 02.

Example
Big is not the same as good

In 1936 the Literary Digest mailed about 1010 million ballots to people drawn from phone books and car registrations and got about 2.42.4 million back, predicting a landslide for Landon. Roosevelt won easily. In the Depression, phone and car owners were wealthier than voters as a whole, and those who bothered to reply differed again. Millions of biased responses estimated the wrong thing very precisely.

Side note
Where it goes wrong

Believing a bigger sample fixes bias. Doubling a convenience sample doubles the number of people from the same wrong place; the error that comes from WHO is sampled does not shrink with nn. Only a better sampling method removes it.

Try it
Try it: name the bias

A radio host asks listeners to phone in whether they support a new tax. 85%85\% of callers oppose it. What kind of bias is this, and which way does it likely push?

Show the answer

Voluntary response (plus undercoverage of non-listeners). People with strong feelings — typically opponents — are the ones who call, so the 85%85\% likely overstates opposition.

Sampling Designs

Concept
Stratified, cluster, systematic

A stratified sample divides the population into groups (strata) and takes a random sample within each, so every group is represented. A cluster sample randomly picks whole groups (classrooms, blocks) and measures everyone in them. A systematic sample takes every kkth individual from a list after a random start.

Stratifying uses what you already know: if grades differ in their answers, sampling each grade separately removes the chance of an unlucky mix and makes estimates more precise. Clustering trades precision for convenience — surveying five whole classrooms is cheaper than finding sixty scattered students — and works best when each cluster is a miniature of the population. All three designs are still random; they only organize the randomness.

Example
Proportional strata
9th360 → 1810th300 → 1511th300 → 1512th240 → 125% of each grade (shaded): 60 in all
Each grade contributes 5% of its students: 18 + 15 + 15 + 12 = 60.

A school has 360360 ninth-graders, 300300 tenth-graders, 300300 eleventh-graders and 240240 twelfth-graders: 12001200 students. For a sample of 6060 (5%5\%) that mirrors the grades, take 5%5\% of each: 1818, 1515, 1515 and 1212, chosen at random within each grade.

Example
Every kkth

From an alphabetical list of the same 12001200 students, a sample of 6060 needs k=1200/60=20k = 1200/60 = 20. Pick a random start between 11 and 2020 — say 1313 — then take students 13,33,53,…,119313, 33, 53, \ldots, 1193. Quick and usually fine, unless the list has a pattern with period 2020.

Side note
Where it goes wrong

Confusing strata with clusters. Strata are groups that DIFFER from each other (sample within every one); clusters are groups that each LOOK LIKE the population (sample a few whole ones). Picking two whole grades at random would be a cluster sample, and could easily miss the seniors entirely.

Try it
Try it: name the design

A school randomly picks 55 homerooms and surveys every student in them. Stratified or cluster?

Show the answer

Cluster: whole groups are chosen at random and everyone in them is measured.

Experiments versus Observation

Concept
Cause needs an experiment

An observational study records what happens; an experiment assigns treatments. Only an experiment with random assignment can establish cause, because randomization balances every lurking variable across the groups, seen and unseen. A control group, blinding and replication make the comparison fair.

The logic is the same as sampling, turned inward: random assignment makes the treatment groups alike in everything except the treatment, so any difference too large to be chance must come from the treatment. Without randomization, the people who chose the treatment differ from those who did not, and the difference could be them rather than it.

Example
Design it
200volunteersrandomsplit100 usethe app100 donotcomparemeans
A completely randomized design: chance alone decides who gets the app.

To test whether a study app raises scores: randomly split 200200 volunteers into two groups of 100100 (for instance by shuffling their names); one group uses the app, the other does not; after a month compare mean scores. The random split is what licenses a causal conclusion; the 100100 in each group is replication, so chance differences average out.

Example
Blocking

Prior grades strongly affect test scores. To remove that noise, first sort the volunteers into blocks — A students, B students, and so on — and randomize to app or no app WITHIN each block. The comparison is then made grade-by-grade, so differences in prior grades cannot blur the effect of the app.

Example
Placebo and blinding

Testing a headache pill, the control group gets an identical-looking sugar pill (a placebo), because feeling treated can itself reduce pain. In a double-blind design neither patients nor the people rating their pain know who got which, so expectations cannot tilt the measurements either.

Side note
Where it goes wrong

Concluding cause from an observational study ("students who use the app score higher") — the app users may simply be the more motivated students. Motivation is a lurking variable that random assignment would have split evenly.

Try it
Try it: what is the confound?

Cities with more police have more crime. Does hiring police cause crime?

Show the answer

No — a lurking variable: city size (and the underlying crime rate) drives both police hiring and crime counts. Only an experiment, or careful comparison of similar cities, could isolate the effect of police.

Why It Works

Suppose 8080 of 200200 volunteers are highly motivated, and nobody knows which. Randomly split them 100100/100100: the number of motivated people in the app group has mean 4040 (half of 8080) and standard deviation 100⋅0.4⋅0.6⋅100199≈3.5\sqrt{100\cdot0.4\cdot0.6\cdot\tfrac{100}{199}} \approx 3.5. So the two groups almost always differ by only a handful of motivated people — and the same is true simultaneously for every other trait, measured or not. That is why a large difference in outcomes can be credited to the treatment: chance alone rarely produces a large imbalance, and probability tells us exactly how rarely.