Find a course

Module 1: Data and Study DesignLesson 2 of 1213 min

Sampling, Bias and Experiments

Recognize common sources of bias, choose random sampling methods, and tell observational studies from experiments that can show cause and effect.

Step 1 of 13Learn

The poll with 2.4 million answers

In 1936, the magazine Literary Digest ran one of the largest polls in history. It mailed about 10 million ballots and got roughly 2.4 million back. Its prediction: Alf Landon would beat President Franklin Roosevelt comfortably.

Roosevelt won in a landslide, carrying 46 of 48 states.

How could 2.4 million responses be so wrong? Two problems:

  1. Who was asked. Names came largely from telephone directories, car registrations and magazine subscriber lists. During the Great Depression, people with phones and cars were wealthier than average and leaned toward Landon.
  2. Who answered. Only about a quarter replied. People who felt strongly about change (often Landon supporters) were more likely to mail back a ballot.

Meanwhile, a young pollster named George Gallup predicted a Roosevelt win using a much smaller, more carefully chosen sample.

The lesson is one of the most important in statistics: how a sample is chosen matters far more than how big it is. A large biased sample just gives you the wrong answer with more confidence. Bias is a systematic tendency to miss the truth in the same direction, and a bigger sample does nothing to fix it.

Step 2 of 13Chart

1936: Literary Digest prediction vs. the actual vote

A huge sample did not save the poll. The bars point in opposite directions because the people who answered were not representative of voters.

1936: Literary Digest prediction vs. the actual voteBar chart with 2 categories: Roosevelt: Digest poll prediction 43%, Actual popular vote 61%; Landon: Digest poll prediction 57%, Actual popular vote 37%.0%20%40%60%RooseveltLandon43%61%57%37%
Rounded figures from historical accounts of the 1936 US presidential election.
1936: Literary Digest prediction vs. the actual vote
ItemDigest poll predictionActual popular vote
Roosevelt43%61%
Landon57%37%

Step 3 of 13Tap to reveal

Five common sources of bias

  1. Voluntary response bias

    People choose whether to respond, as in online polls or call-in shows. Those with strong opinions, usually negative ones, respond most. Product review pages suffer from this.

  2. Convenience sampling

    Surveying whoever is easy to reach, such as shoppers at one mall on a Tuesday morning. They may differ systematically from the population in age, income or schedule.

  3. Undercoverage

    Part of the population has little or no chance of being selected, such as a phone survey that only dials landlines and misses younger adults who rely on cell phones.

  4. Nonresponse bias

    People selected for the sample can't be reached or refuse, and they differ from those who answer. Low response rates are a warning sign.

  5. Response bias

    Answers are pushed in one direction by question wording, the interviewer, or a desire to look good. "Do you agree that our wasteful city council should cut spending?" leads the respondent; people also underreport habits like drinking and overreport voting.

Step 4 of 13Practice · Match the pairs

Match each flawed survey to the type of bias it shows.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. A news site posts a poll and 80% of 12,000 visitors who click say taxes are too high
  2. A student surveys friends at lunch about school start times
  3. A survey asks, "Don't you agree that texting while driving should be banned?"
  4. A random sample of 1,500 addresses gets only 300 replies, mostly from retirees
  5. An online-only survey estimates how many adults use the internet

Step 5 of 13Learn

Random sampling methods

The cure for selection bias is to let chance pick the sample. Random selection doesn't guarantee a perfect sample, but it removes the researcher's preferences and makes the error predictable, which is what lets us measure it later.

  • Simple random sample (SRS): every group of n individuals has an equal chance of being chosen. Number everyone, then use a random number generator to pick n numbers.
  • Stratified random sample: divide the population into similar groups (strata), such as grade levels or regions, then take an SRS within each. This guarantees each group is represented and often gives more precise estimates.
  • Cluster sample: divide the population into groups that each look like a mini-population (such as classrooms or city blocks), randomly choose some clusters, and survey everyone in them. Cheaper and faster, usually less precise.
  • Systematic sample: choose a random starting point, then every kth individual, like every 20th customer through the door.

A memory trick for the two that get confused: in stratified sampling you take some from every group; in cluster sampling you take every individual from some groups.

Even a random sample has sampling variability: different random samples give somewhat different results. That's not bias. It's random error, and larger samples shrink it.

Step 6 of 13Practice · Choose one

A university wants to survey 400 students. It splits the student list by year (first-year, sophomore, junior, senior) and randomly selects 100 students from each year. What kind of sample is this?

Step 7 of 13Practice · Diagram

Ways to let chance pick the sample

A city randomly picks 12 of its 300 apartment buildings and interviews every household in them. Which method is this?

Tap the shape that answers the question, then press Check.

Ways to let chance pick the sampleHierarchy diagram: Random sampling, Simple random, Stratified, Cluster, Systematic.Random samplingSimple randomStratifiedClusterSystematic
Random sampling
Simple random

Every group of n individuals has the same chance. Number everyone and draw random numbers.

Stratified

Split into similar groups (strata) and take an SRS inside each one, so every group is represented.

Cluster

Randomly pick whole groups (classrooms, blocks) and survey everyone in them. Cheap, but less precise.

Systematic

Start at a random point on a list and take every k-th person.

Step 8 of 13Learn

Observational studies vs. experiments

Suppose data show that people who drink coffee have more heart attacks. Does coffee cause heart attacks?

In an observational study, researchers observe individuals and measure variables without assigning anything. They see who drinks coffee and who has heart attacks. The problem: coffee drinkers might also differ in other ways. Decades ago, coffee drinkers were more likely to smoke. Smoking is a confounding variable: it's linked to both coffee drinking and heart attacks, so their effects get tangled together.

A classic example: ice cream sales and drowning deaths rise and fall together. Ice cream doesn't cause drowning; hot weather drives both.

In an experiment, researchers impose a treatment: they decide who gets what. If they randomly assign 500 people to drink coffee daily and 500 to drink none, then smokers, health nuts and everyone else get spread roughly evenly across both groups. Any big difference in heart problems can then be attributed to the coffee.

That's the key difference. Observational studies can show association. Well-designed randomized experiments can show causation. Observational studies are still valuable, especially when experiments would be unethical (you can't assign people to smoke) or impossible, but their conclusions need careful wording: "is linked to," not "causes."

Step 9 of 13Practice · True or false

A large observational study finds that students who eat breakfast earn higher grades. This shows that eating breakfast causes higher grades.

Step 10 of 13Learn

Designing a good experiment

Good experiments rest on three principles:

  1. Control. Compare the treatment to a control group that gets no treatment, an existing treatment, or a placebo (a fake treatment such as a sugar pill). Keep other conditions the same for all groups.
  2. Randomization. Use chance to assign subjects to groups. This balances confounding variables, including ones you never thought to measure.
  3. Replication. Use enough subjects that chance differences between groups even out.

Blinding strengthens experiments further. In a single-blind study, subjects don't know which treatment they got. In a double-blind study, neither the subjects nor the people measuring outcomes know. This matters because of the placebo effect: people often feel better just because they believe they're being treated, and researchers may unconsciously judge outcomes more favorably for the treatment group.

Random sampling and random assignment are different jobs. Random sampling (choosing who is in the study) lets you generalize results to the population. Random assignment (choosing who gets which treatment) lets you conclude cause and effect. A study of volunteers with random assignment can show causation, but only for people like those volunteers. The best studies do both.

Step 11 of 13Compare

Random sampling vs. random assignment

AspectRandom samplingRandom assignment
What chance decidesWhich individuals from the population are in the studyWhich treatment each subject receives
What it allowsGeneralizing results to the whole populationConcluding that the treatment caused the difference
Without itResults may apply only to the people studiedConfounding variables could explain any difference
Typical settingSurveys and pollsExperiments and clinical trials

Step 12 of 13Practice · What would you do?

What would you do?

A company wants to know whether its new study app raises exam scores. Which plan gives the strongest evidence that the app causes higher scores?

Step 13 of 13Practice · Select all that apply

Which features strengthen an experiment testing whether a new pain medication works? Select all that apply.

Select all that apply.