Jugami Statistics

Jugami › Statistics and Probability › Sampling and Surveys

Statistics · Unit 7

Sampling and Surveys

How asking a few people can tell you about millions, how surveys go wrong, and why only a randomized experiment can show cause and effect.

Every poll, survey and medical trial rests on the same quiet idea: you can learn about a huge group by looking carefully at a small part of it, if you choose that part by chance. This unit shows the main ways to pick a random sample, the ways samples and questions mislead, and how to design an experiment that can answer “does it work?”. It builds on samples and bias in Unit 4 and leads into the inference you met in Unit 5.

A grid of 48 households in four colored neighborhoods, eight of them circled in gold as a random sample, with an arrow pointing to a survey clipboard. Ask a few, learn about many

Dewey defeats Truman, 1948

On election night in November 1948, the Chicago Daily Tribune went to press with the headline DEWEY DEFEATS TRUMAN. The paper printed about 150,000 copies. The polls had agreed: Gallup's final survey, taken October 15–25, had Thomas Dewey at 49.5% and President Harry Truman at 44.5%.

Truman won. In the official state returns he took 49.6% of the popular vote (24,179,347 votes) to Dewey's 45.1%, and 303 electoral votes to Dewey's 189 (Strom Thurmond won 39). A photo of a grinning Truman holding up the wrong headline became one of the most famous pictures in American politics.

What went wrong? Two things, and both are in this unit.

Both mistakes produce bias: an error that pushes results the same way every time and doesn't shrink when you ask more people.

Populations, samples and censuses

The population is the whole group you want to learn about: all voters in a country, all phones a factory made today, all students in a school. A sample is the part of the population you actually measure. A census tries to measure every member of the population. The US Census, every ten years, tries to count every person living in the country.

Why not always take a census? It can be too slow, too expensive or simply impossible. Some measurements destroy what they test: a company that crash-tested every car it built would have none left to sell. A well-chosen sample is faster and cheaper, and it can even be more accurate than a rushed census, because the work can be done carefully.

As in Unit 4, a number that describes the population is a parameter (usually unknown), and a number calculated from a sample is a statistic. If a random sample of 1,000 voters has 52% in favor, the 52% is a statistic, p̂. The share of all voters in favor is the parameter, p.

The list you actually draw the sample from is the sampling frame: a register of voters, a school's enrollment list, a map of addresses. If the frame leaves out part of the population, no amount of careful random choosing can put them back.

Random sampling methods

A sample is random (statisticians also say probability sample) when chance decides who is in it, and every member of the population has a known chance of being chosen. Chance can't play favorites, so random samples are free from the selection bias that sank the 1948 polls. There are several ways to use chance.

Simple random sample (SRS)

Every group of n members has the same chance of being the sample. Number everyone in the frame, then use a random number generator (or names drawn from a well-mixed hat) to pick n different numbers. An SRS is the baseline that the formulas in Unit 5 assume.

Stratified random sample

Split the population into groups called strata whose members are alike in some way that matters (grade level, region, age group), then take a separate SRS inside each stratum. Stratifying guarantees every group is represented, and when the strata really differ, the estimate is more precise than an SRS of the same size.

Cluster sample

Split the population into clusters, usually by location (homerooms, city blocks, crates in a warehouse), pick some clusters at random, and measure everyone in the chosen clusters. It is cheap: an interviewer can visit one block instead of houses all over town. The catch: if each cluster is full of similar people, a few clusters give a noisy estimate.

Strata or clusters? You sample within every stratum, but you take whole clusters. Strata work best when each group is alike inside and different from the others. Clusters work best when each cluster is a mini-version of the whole population.

Systematic sample

To pick n from a list of N, work out the gap k = N ÷ n, choose a random starting point among the first k names, then take every k-th name after it. It's quick to do by hand. It goes wrong if the list has a pattern that repeats every k places, such as a rota where every 7th entry is a Sunday.

Multistage sample

Large surveys combine methods in stages. A national survey might pick counties at random, then neighborhoods at random inside the chosen counties, then households at random inside those neighborhoods. Each stage uses chance, so the whole sample is still random, but interviewers only travel to a few places.

Worked example: four ways to pick 60 students

A made-up high school has 1,200 students: 360 in grade 9, 300 in grade 10, 300 in grade 11 and 240 in grade 12. They sit in 40 homerooms of 30. The principal wants 60 students to answer a survey about the cafeteria.

  1. SRS: number the students 1 to 1,200 and let a random number generator pick 60 different numbers.
  2. Stratified by grade (proportional): 60 ÷ 1,200 = 1 in 20 from each grade, so take SRSs of 18, 15, 15 and 12 students from grades 9, 10, 11 and 12.
  3. Cluster: pick 2 of the 40 homerooms at random and survey all 30 students in each.
  4. Systematic: k = 1,200 ÷ 60 = 20. Pick a random start from 1 to 20, say 7, then take students 7, 27, 47, … , 1,187 from the alphabetical list.

Which is best? If opinions about the cafeteria differ by grade, stratifying makes the estimate steadier. Two homerooms might happen to be two grade 12 classes, so the cluster sample is the riskiest here, even though it is the easiest to collect.

Compare the methods

This made-up town has 200 households on 20 streets, split into four neighborhoods. Each household says whether it would use a new bus route. Neighborhood A, next to the bus depot, is keen; D, on the far side, is not. Overall, 90 of 200, or 45%, say yes. Take samples of 20 households with each method and watch where the estimates land.

Press 100 with every method and compare the rows. What you should see:

Bad ways to sample

A convenience sample takes whoever is easiest to reach: friends, the people in the front row, shoppers at one mall at lunchtime. A voluntary response sample lets people choose themselves: call-in shows, website polls, “text YES to…”. Both let something other than chance decide who answers.

Voluntary response is especially bad because the people who bother to reply usually feel strongly, and often negatively. A website poll can collect thousands of votes and still tell you nothing about the population.

“We got 50,000 replies, so it must be accurate.” Size doesn't rescue a self-selected sample. Fifty thousand people who chose to answer represent only people who choose to answer.

Kinds of bias

A sampling method is biased if, used again and again, it would consistently overestimate or underestimate the parameter. Random sampling removes one source of bias, the choosing, but a survey can still go wrong in other ways.

Common sources of bias in surveys
BiasWhat happensExample
Selection biasThe way the sample is chosen favors some kinds of peopleInterviewers pick friendly-looking people to approach
UndercoveragePart of the population can't be chosen, because it's missing from the frameA phone survey that dials only landlines misses people with only a cell phone
NonresponsePeople who were chosen can't be reached or refuse, and they differ from those who answerBusy parents are never home when the interviewer calls
Response biasPeople answer, but not truthfully or accuratelyPeople overstate how often they vote or recycle, and understate habits they're embarrassed about
Wording and order effectsThe question itself, or the questions before it, pushes the answer“Don't you agree that…?”

Undercoverage and nonresponse are both about who ends up in the data. Response bias and wording effects are about what they say. A survey can suffer from several at once.

Bigger isn't better: the 1936 Literary Digest poll

In 1936 the magazine The Literary Digest mailed mock ballots to about 10 million Americans. The names came from its own readers, car registrations and telephone lists. About 2.38 million sent them back, one of the largest polls ever. It predicted that Alf Landon would beat President Franklin Roosevelt with 57% of the vote and 370 electoral votes.

Roosevelt won with 60.8% of the vote and every state except Maine and Vermont (523 electoral votes). George Gallup's much smaller poll, about 50,000 people, picked Roosevelt to win, with 55.7% of the vote.

The Digest's sample had two problems. Its lists leaned toward better-off households (undercoverage), and the 2.38 million who chose to reply were not like the 7.6 million who didn't (nonresponse). A 1988 analysis concluded that nonresponse was the bigger problem. The magazine folded in 1938.

Four targets. Top left: shots packed tightly around the bull's-eye (low bias, low variability). Top right: shots scattered widely but centred on the bull's-eye (low bias, high variability). Bottom left: shots packed tightly but off to the upper right (high bias, low variability). Bottom right: shots scattered widely and centred off to the upper right (high bias, high variability). Low bias, low variability Low bias, high variability High bias, low variability High bias, high variability
Bias is aiming at the wrong spot; variability is how much the shots scatter. A bigger sample shrinks the scatter but does not move the aim.

Precision is not accuracy. Sample size controls variability: a bigger random sample gives answers that cluster more tightly. Bias moves the center of that cluster. Making the sample bigger only clusters the wrong answers more tightly around the wrong value.

Wording and question order

Even with a perfect random sample, the answers depend on the question. Pew Research Center tests this with split-ballot experiments: half the sample, chosen at random, gets one version of a question and half gets another. Because chance decided who got which, any big difference comes from the wording. Here are four real examples.

Common ways a question pushes people:

Designing a survey

Good questions are short, neutral and specific, ask one thing at a time, offer balanced answer choices (including a way to say “not sure” when that's honest), and use words everyone understands.

Before the real survey, run a pilot test (or pretest): try the questions on a small group from the population and see where people hesitate, misread or skip. Professional pollsters also use focus groups and one-on-one interviews in which people say aloud what they think a question means.

Worked example: fixing a loaded question

Draft: “Don't you agree that the cafeteria's overpriced lunches should cost less and taste better?”

  1. Spot the problems: “Don't you agree” leads the reader; “overpriced” is loaded; “cost less and taste better” is two questions in one.
  2. Split it into two neutral questions: “How would you rate the price of a cafeteria lunch? Too high / About right / Too low / Not sure.” Then: “How would you rate the taste of cafeteria lunches? Very good / Good / Fair / Poor.”
  3. Pilot it: ask ten students to talk through their answers. If several ask “which lunch?”, add “a typical cafeteria lunch this term”.

Experiments vs observational studies

A survey observes. It records what people think or do, without changing anything. Questions about cause and effect need something more.

The variable the researchers change is the explanatory variable, or factor; its settings are levels. The outcome they measure is the response variable. The people (or plants, or batches) receiving treatments are the subjects or experimental units. With more than one factor, each treatment is a combination of levels: 3 fertilizer amounts × 2 watering schedules = 6 treatments.

Observational studies can show association, as in Unit 6's chocolate and hormone therapy examples. People who chose differently also differ in other ways, so the effect of the explanatory variable can't be untangled from those lurking variables. When two variables' effects on the response can't be told apart, they are confounded.

Designing an experiment

Good experiments share four principles.

  1. Comparison. Compare two or more treatments, often a new treatment against a control group that gets the usual treatment, nothing, or a placebo. Without a comparison group you can't tell what would have happened anyway.
  2. Random assignment. Use chance to decide which subjects get which treatment. That makes the groups alike on average in everything, including lurking variables nobody thought to measure.
  3. Control. Keep everything else the same for all groups: same instructions, same timing, same measuring tools.
  4. Replication. Use enough subjects in each group that chance differences between them even out. (Repeating a whole study with new subjects is also called replication, and it matters just as much.)

Placebos and blinding

People often feel better just because they are being treated. This is the placebo effect. A placebo is a dummy treatment, like a sugar pill or a saltwater shot, that looks the same as the real thing, so the control group has the same experience apart from the treatment itself.

Expectations affect researchers too. In a single-blind experiment, either the subjects or the people measuring the response don't know who got which treatment. In a double-blind experiment, neither do.

Worked example: does sleep affect memory?

A teacher has 40 student volunteers and wants to know whether a full night's sleep improves memory.

  1. Variables: the explanatory variable is hours of sleep (two levels: 5 hours and 8 hours); the response is the score on a 30-word memory test the next morning.
  2. Random assignment: write each name on a card, shuffle, and deal 20 cards to each group.
  3. Control: everyone studies the same words at the same time, sleeps at home with a fitness band to check their hours, and takes the same test.
  4. Blinding: students know how long they slept, so they can't be blind; but the person scoring the tests can be. That makes it single-blind.
  5. Conclusion: if the 8-hour group scores clearly higher, random assignment lets us say sleep caused the difference, for volunteers like these.
Flow chart of a completely randomized design: 40 student volunteers go to random assignment, which splits them into group 1 of 20 students who sleep 8 hours and group 2 of 20 students who sleep 5 hours. Both groups lead to: compare mean memory test scores. 40 student volunteers Random assignment Group 1: 20 8 hours of sleep Group 2: 20 5 hours of sleep Compare mean memory scores
The sleep experiment as a completely randomized design: chance alone decides who gets which treatment.

Why assign at random?

Twenty volunteers will test a new warm-up routine against the usual one. Eight of them are varsity athletes, who will run fast whatever warm-up they do. Compare three ways to make the groups.

When volunteers choose, the athletes tend to pick the exciting new routine. If the new group runs faster, is that the warm-up or the athletes? You can't tell: the treatment and athletic ability are confounded. Random assignment doesn't make the groups identical, but it makes any imbalance a matter of chance, which is exactly what the significance tests in Unit 5 account for.

Blocking and matched pairs

If you already know a variable affects the response, don't leave it to chance. Group similar subjects into blocks (athletes and non-athletes, say), then randomly assign treatments within each block. This is a randomized block design. It does for experiments what stratifying does for samples: it removes a known source of variation, so the treatment effect is easier to see.

A matched pairs design is the smallest kind of block: pairs of very similar subjects, such as twins, with a coin flip deciding which one gets which treatment. Or each subject gets both treatments, in a random order, and acts as their own control: for example, each runner tries both warm-ups on different days, with a coin flip deciding which comes first.

Mixing up blocking and stratifying. Both split subjects into similar groups first. Stratifying is for choosing a sample; blocking is for assigning treatments in an experiment.

A real trial: the 1954 polio vaccine

In the early 1950s, polio was one of the most feared childhood diseases in America. In 1954 Jonas Salk's new vaccine was tested in one of the largest medical experiments ever, evaluated by Thomas Francis Jr.'s team at the University of Michigan: 1,829,916 children in 211 areas of 44 states were included. It was really two studies, side by side.

Bar chart of paralytic polio cases per 100,000 children in the placebo-control areas of the 1954 trial: vaccinated 16, placebo 57, not inoculated because parents said no 36. Vaccinated 16 33 cases among 200,745 children Placebo 57 115 cases among 201,229 children Not inoculated (parents said no) 36 121 cases among 338,778 children
Paralytic polio cases per 100,000 children in the 1954 trial's placebo-control areas (Francis report, 1955).

In the placebo-control areas, the vaccinated children had about 16 cases of paralytic polio per 100,000, against 57 for the placebo group. That difference, between two groups made alike by chance, was the evidence that the vaccine worked.

Look at the third bar. The children whose parents said no had a lower rate (36) than the placebo children (57), even though neither group was protected. The volunteers' families were different: the trial's report found striking differences in income and education between families who joined and those who didn't. That's why comparing vaccinated volunteers against everyone else, as the observed-control areas did, was a weaker design: 17 cases per 100,000 among vaccinated second graders against 46 among first and third graders. That comparison mixes the vaccine's effect with grade level and family background. The randomized half of the trial avoided that problem.

Scope of inference

Two different uses of chance give two different kinds of conclusion.

What you can conclude
Randomly assignedNot randomly assigned
Random sampleCause and effect, for the whole populationAssociation only, for the whole population
Not a random sampleCause and effect, but only for subjects like theseAssociation only, for these subjects

Most experiments use volunteers, so they land in the bottom-left cell. The polio trial randomly assigned children whose parents volunteered, so strictly its causal conclusion was for children like them. Doctors then had to judge that the vaccine would work the same way in other children too, and later experience bore that out.

Worked example: what can we say?

A random sample of 300 workers at a large company is split by coin flips: 150 get a new safety training, 150 don't. A year later the trained workers have fewer injuries, and the difference is statistically significant.

  1. Random sample? Yes, from all the company's workers, so the result generalizes to them.
  2. Random assignment? Yes, so the training can be said to cause the drop.
  3. Conclusion: the training reduces injuries among this company's workers. It says nothing directly about workers at other companies.

When the response is a category rather than a number, such as “injured or not”, the groups in an experiment like this are compared with a chi-square test, the subject of Unit 8.

Common mistakes

Calling any haphazard choice “random”. Picking “random” people in the hallway is a convenience sample. Random means a chance process like a random number generator.

Thinking a bigger sample fixes bias. Size reduces variability, not bias. See 1936.

Mixing up random sampling and random assignment. Sampling decides who is in the study; assignment decides who gets which treatment.

Confusing strata and clusters. Sample some from every stratum; take all of a few clusters.

Calling a study an experiment because it has groups. If the subjects (or nature) chose the groups, it's observational.

Treating a placebo group as “no treatment”. The placebo is there so both groups have the same experience. Comparing against people who got nothing mixes in the placebo effect.

Saying an observational study “proves” a cause. Without random assignment, lurking variables may explain the link.

Practice

History

Quiz

Ten questions. Pick an answer for each, then check.

1. A school splits its students by grade and picks 20 students at random from each grade. This is

2. An inspector picks 3 of a factory's 50 crates at random and tests every phone in those 3 crates. This is

3. In 1936 the Literary Digest got about 2.38 million replies and still badly missed the result. What does this show?

4. To pick 50 names from a list of 1,500 with a systematic sample, you choose a random start among the first k names and take every k-th name. What is k?

5. A survey is mailed to 2,000 randomly chosen households, but only 300 return it. The main worry is

6. Researchers compare the health of people who choose to drink green tea with that of people who don't. Why can't this study show that green tea causes better health?

7. In a double-blind experiment,

8. A coach has 12 sprinters and 12 distance runners. She randomly assigns half of each kind to a new training plan. This design uses

9. Volunteers who answered an ad are randomly assigned to two study methods, and one group scores significantly higher. What can be concluded?

10. In the 1954 polio trial's placebo-control areas, children whose parents refused had about 36 paralytic cases per 100,000, against 57 for the placebo group. Why does that matter?

Talk about it

Sources