๐Ÿ“– Contents · Hub · Full version Chapter 2 ยท Sampling & Data
Statistics Easy Read · Chapter 2

Sampling & Data Collection

Almost every number you will meet in a report, a news story or a research paper came from a sample. A few people stand in for many. That fact should make you nervous until you see why it works. And it works far better than most people expect. A well chosen sample of a thousand can describe a nation of three hundred million to within a few percentage points. The catch is the phrase well chosen. A sample earns its trust from how it was picked, never from how big it is. The worst failures in the history of statistics were huge samples gathered badly. This chapter shows where good data come from and how data go wrong. It also shows how to tell a study that can prove a cause from one that can only spot a pattern.

By the end of this chapter you can

  • Tell a population apart from a sample, and a parameter apart from a statistic.
  • Explain why a sample picked at random stands for its population. Explain why precision depends on n, not on the size of the population.
  • Work out and explain the standard error of a sample mean, σ/√n.
  • Describe and carry out simple random, stratified, cluster and systematic sampling. Say why convenience sampling is not a probability method.
  • Tell sampling error apart from bias, and sampling error apart from nonsampling error.
  • Spot undercoverage, voluntary response, nonresponse and response bias in a study that is described to you.
  • Tell an observational study from an experiment. State just what each one lets you conclude.
  • Plan a simple experiment using control, randomization, replication, blinding and a placebo.

Section 1Why sampling works

Diagram showing a large population with a smaller sample drawn from inside it
Reference. Population versus sample. The sample is the handful we actually measure. The population is everyone we want to describe. Source and license: see the figure credits

Population, sample, parameter, statistic

The population is every person or thing you want to say something about. Examples are every registered voter, every bag of chips off the line, or every patient with a certain diagnosis. The sample is the part you actually measure. A number that describes the population is a parameter. A number worked out from your sample is a statistic. Parameters are fixed and almost always unknown. Statistics are known. And they wobble, because a different sample would have given different numbers.

Keeping the two straight is the most useful habit in this book. The whole subject is one long answer to one question: how close is my statistic to the parameter I care about? The symbols help. Greek letters stand for the truth. Roman letters stand for the estimate.

QuantityParameter (population)Statistic (sample)Known?
Meanμx̄μ unknown; x̄ computed
Standard deviationσsσ unknown; s computed
Proportionpp̂p unknown; p̂ computed
SizeNnBoth usually known

A census measures the whole population, so it gives parameters directly. We sample instead of taking a census for four reasons. One is cost. One is time. One is that some people are hard to reach (inaccessibility). You cannot find every homeless person in a city. The last is destruction. Testing whether a fuse blows destroys the fuse. A census of fuses would leave none to sell.

Why a random sample looks like its population

You cannot judge by eye whether a sample stands for the population (is representative). A sample "looks representative" to a person only after that person has decided which traits matter. And the traits that matter are most often the ones nobody thought of. Random selection solves this without knowing anything about the population. Say every person has the same chance of being drawn. Then every trait shows up in the sample in about its population share, on average. That covers age, income, opinion and blood type. It covers the traits you measured and the ones you never imagined. Randomness does not promise a good sample every time. It promises that the misses are not tilted (unbiased). And, most important, it lets you work out how big the misses are.

That last point makes sampling a science and not a hope. The wobble from sample to sample has a name, sampling variability. It also has a size you can measure, the standard error. Take a sample mean drawn from a population with standard deviation σ. Then

SE(x̄) = σ ÷ √n

That formula comes with conditions. They are worth naming now, because every method later in this book carries them too. The observations must be independent. In practice, that means the people were drawn at random. It also means the sample is no more than about 10% of the population, so taking out one unit barely changes the odds for the next. Break either rule and the formula gives the wrong wobble. Sample a large slice of a small population, and the real standard error is smaller than σ/√n. Use a cluster design, where neighbors are like neighbors, and it is larger. A standard error from a convenience sample is not cautious or rough. It is meaningless, because the chances it is built from do not exist.

A worked example: how precision grows

Say trip times to work in a large city have a standard deviation of σ = 12 minutes. We want to estimate the mean trip time μ.

Read the pattern. To cut the standard error in half, you must make the sample four times as big (quadruple it). That is because n sits under a square root. Going from 36 to 144 people is four times the work. It buys you twice the precision, not four times. This law of shrinking returns (diminishing returns) rules every survey budget ever written.

It also tells you how far off a typical sample lands. That needs one more assumption: the sampling distribution of x̄ is about normal. That is exact when the population itself is normal. By the Central Limit Theorem, it is about true for a large enough n, whatever the shape of the population. Grant that. Say the true mean trip is μ = 24 minutes and n = 36. Then about 95% of samples give an x̄ within about 2 standard errors of the truth. That is between 24 − 2(2.0) = 20 minutes and 24 + 2(2.0) = 28 minutes. Notice what is random here. It is the sample, not μ. The population mean sits still. Our estimate is what moves. The "95%" describes how often the method lands close, across all the samples we might have drawn. It is never a statement of chance about μ, which has no probability distribution at all.

Now look hard at that formula. N, the size of the population, is not in it. Say the sample is a small part of the population. Then a sample of 1,000 is about as precise for a country of 300 million as for a town of 30,000. This is the true fact in a first statistics course that is hardest to believe. It is why national polls of about 1,000 people are not absurd. Think of tasting soup. You need a big enough spoonful, not a spoonful that grows with the size of the pot. But the soup must be stirred.

Size never fixes a bad method. In 1936, the Literary Digest mailed about 10 million straw ballots for president. It got back about 2.4 million. Then it predicted a landslide for Alf Landon. Roosevelt won in one of the largest landslides on record. The mailing lists came from car registrations, phone books and magazine subscribers. In the Depression, that meant wealthy people. And only about a quarter of the people mailed a ballot bothered to reply. George Gallup polled a few tens of thousands of people. He chose them on purpose to mirror the voters, and he got it right. Two and a half million badly chosen people lost to fifty thousand well chosen ones. Stirring beats scooping.
Interactive Draw real random samples from a city of millions and watch the estimates pile up around the true 62%, then discover that precision comes from sample size, not city size, and that a convenience sample converges just as tightly on the wrong answer. Open full ↑
Key points
  • A parameter (μ, σ, p) describes the population and is unknown. A statistic (x̄, s, p̂) is worked out from the sample and varies.
  • Random selection makes a sample stand for the population on every trait at once. That includes the traits you never measured.
  • SE(x̄) = σ/√n. Making n four times as big cuts the standard error in half.
  • Precision depends on n, and mostly not on the size of the population. A bigger badly chosen sample just gives a wrong answer with more confidence.

Section 2Sampling methods

Diagram of stratified sampling: a population split into strata with units drawn from each stratum
Reference. Stratified sampling. The population is split into groups, and a sample is drawn from inside every group. Source and license: see the figure credits

The sampling frame comes first

Before you can pick anybody, you need a sampling frame. That is the actual list of units you will draw from. The frame is where good plans quietly die. You may want "all adults in the county." But your frame may be "all landline numbers in the county," and those are not the same population. Every method below is only as good as the frame it runs on. So write down your frame plainly, and ask who is missing from it.

The four probability methods

A probability sample is one in which every person has a known chance of being picked that is not zero. Only probability samples support the tools for drawing conclusions (inference) in the rest of this book.

A simple random sample (SRS) of size n is chosen so that every possible group of n people is equally likely to be the sample. In practice, you number the frame 1 to N. Then a computer draws n different numbers. Read the definition with care. It asks for more than "everyone has an equal chance." Systematic sampling also gives everyone an equal chance. Yet most groups of size n can never be picked by it. So it is not an SRS.

Stratified sampling splits the frame into strata. These are groups whose members are alike, such as class year, region or age band. Then it takes a separate random sample inside every stratum. When the strata truly differ from one another, this beats an SRS of the same size. That is because you have removed the variation between groups from your estimate by force, instead of leaving it to luck. It also makes sure you will not draw zero seniors by accident.

Cluster sampling also splits the frame into groups, but the logic runs the other way. Clusters are bundles that occur naturally, such as city blocks, clinics or classrooms. Ideally, each one is like the whole population in miniature. You pick whole clusters at random. Then you measure everyone inside the chosen ones. This is a way to save money. Visiting 30 blocks and talking to every household costs far less than chasing 600 addresses spread across a city. The price is precision. Neighbors are like neighbors. So 600 people from 30 blocks carry less independent information than 600 people drawn at random.

Systematic sampling takes every kth unit after a random start, with k = N/n. It is fast and needs no numbered list. You can do it at a factory exit or a store door. Its one real danger is periodicity, a list that repeats in a cycle. If the cycle matches k, the sample locks onto one part of the cycle. For example, say you sample every 7th day of hospital admissions. Then every observation falls on the same day of the week.

A worked example: proportional allocation and a systematic plan

A student body of N = 12,000 has 4,200 first year students, 3,300 sophomores, 2,700 juniors and 1,800 seniors (4,200 + 3,300 + 2,700 + 1,800 = 12,000 ✓). We want n = 400 students, shared out in proportion (proportional allocation). So each stratum gives nh = n × (Nh / N). Since 400/12,000 = 1/30, we just divide each stratum by 30:

Check the total: 140 + 110 + 90 + 60 = 400 ✓. Each student's chance of being picked is 140/4,200 = 1/30 for a first year student and 60/1,800 = 1/30 for a senior. They are the same, and that is just the point of proportional allocation.

Now pick the same 400 by systematic sampling. Here k = 12,000 ÷ 400 = 30. Draw a random start between 1 and 30, say 17. Then take students 17, 47, 77, 107 and so on, each one 30 further down the list. The jth pick is 17 + 30(j − 1). So the 400th is 17 + 30(399) = 17 + 11,970 = 11,987, safely inside the list ✓. It is fast, tidy and perfectly fine here, unless the student list happens to repeat every 30 names.

MethodHow it worksBest whenMain risk
Simple randomEvery group of size n equally likelyYou have a clean, complete frameCostly to reach a scattered sample
StratifiedSplit into similar groups, sample within every groupGroups differ from each otherNeeds stratum sizes known in advance
ClusterSplit into mini-populations, sample whole groupsTravel or contact cost dominatesLess precise per person; clusters must be internally diverse
SystematicRandom start, then every k-th unit, k = N/nUnits arrive in a stream; no list existsHidden periodicity in the ordering
ConvenienceWhoever is easy to reachNever, for inferenceBias of unknown size and unknown direction

Convenience sampling means surveying the people already in front of you. Its cousin is voluntary response sampling, in which people pick themselves by calling in or clicking a link. Neither one is a probability method at all. Nobody's chance of being picked is known. So no standard error can be worked out, and no margin of error means anything. These samples are useful for coming up with ideas to test (hypotheses) and for trying out a survey form first. They are useful for nothing else. Real surveys often chain methods together into a multistage design. They might cluster on counties, then on blocks, then take an SRS of households, and then pick one adult at random inside each household.

Stratified versus cluster, settled in one line. Stratified takes some from every group. Cluster takes everyone from some groups. And the ideal makeup inside each group is the opposite. Strata should be alike inside and different from each other. Clusters should each be mixed inside, like little copies of the whole population.
Interactive Draw simple random, stratified, cluster, systematic and convenience samples from the same town of 300 households, and watch the exact standard errors, design effects and bias shift with every choice you make. Open full ↑
Key points
  • Define the sampling frame first. Anyone missing from the frame cannot be seen by your study.
  • An SRS makes every group of size n equally likely. That asks for more than equal chances for each person.
  • Stratified samples from every group and is most often more precise. Cluster samples whole groups and is most often cheaper but less precise.
  • Systematic uses k = N/n after a random start. Watch for periodicity.
  • Convenience and voluntary response samples support no valid inference at any size.

Section 3Bias and error

Illustration contrasting statistical bias with random statistical noise using target patterns
Reference. Bias versus noise. Scatter around the target is random error. A group of shots centered away from the bullseye is bias. Source and license: see the figure credits

Two completely different ways to be wrong

Every estimate misses the truth. But there are two unrelated reasons why. Mixing them up is the most costly mistake in applied statistics. Sampling error is the ordinary gap between a sample statistic and the population parameter. It cannot be avoided. It happens just because you measured some people instead of all of them. It is random and centered on zero. And it shrinks in a way you can predict as n grows. That is the σ/√n from Section 1.

Bias is steady (systematic). It is a tendency for your method to miss in the same direction, sample after sample. Bias does not shrink as n grows. Gather ten times as much data with the same flawed method, and you get the same wrong answer. It just comes with a tighter, more convincing error bar. Think of target shooting. Random error is a wide group of shots. Bias is a tight group of shots centered off the bullseye. More bullets tighten the group. Only fixing the sights moves it.

The named biases, and where they come from

Undercoverage happens when part of the population cannot appear in the frame at all. Examples are a landline only poll in a cell phone world, or a mall survey that misses everyone who does not shop at malls. Voluntary response bias arises because people who take the trouble to reply hold stronger opinions than those who do not. Those opinions are most often negative. Nonresponse bias strikes after the sample is picked. Your sample was chosen properly, but a large share did not answer. And the ones who answered differ from the ones who did not. Response bias is about the measuring itself. Causes include how a question is worded ("Do you support wasteful spending on X?") and wanting to look good (social desirability). People report drinking less than they do, and voting and flossing more than they do. Other causes are the effect of the interviewer and faulty memory (recall).

ProblemWhat goes wrongDirectionDoes a bigger n help?
Sampling errorLuck of the drawRandom, averages to zeroYes: shrinks in proportion to 1/√n
UndercoverageFrame excludes part of the populationSystematicNo
Voluntary responsePeople select themselves inSystematic (strong opinions over-represented)No
NonresponseSelected people do not answerSystematicNo
Response biasAnswers are inaccurate as givenSystematicNo
Processing / measurementBad instrument, data-entry or coding errorsEitherNo

The last five rows are nonsampling error. That is every source of error that has nothing to do with which people you picked. Nonsampling error is why a census can still be wrong. The U.S. census reaches for everybody, and it still misses people and records some answers wrong. In most real surveys, nonsampling error is larger than sampling error. And it is the part nobody reports.

A worked example: bias dwarfs the margin of error

A researcher picks 1,000 adults at random. She asks whether they exercise at least three times a week. Only 400 reply, and 260 of those say yes:

p̂ = 260 ÷ 400 = 0.65, or 65%

The reported 95% margin of error for a proportion is about 1.96 × √(p̂(1 − p̂) / n). Before using it, check what it assumes. It needs a random sample of independent people. It also needs enough of both outcomes for the normal approximation to be trusted. The usual rule of thumb is at least 10 successes and 10 failures. Here we have 260 yes and 140 no ✓, so the math is fair. Still, watch what happens next. Step by step:

Now say a strong follow up reaches the 600 people who did not reply (nonrespondents). It finds that only 25% of them exercise three times a week. That is 0.25 × 600 = 150 people. The truth across all 1,000 adults picked is

(260 + 150) ÷ 1,000 = 410 ÷ 1,000 = 0.41, or 41%

The estimate was off by 0.65 − 0.41 = 0.24, which is twenty four percentage points. Yet the stated uncertainty was under five. The bias is five times the whole margin of error. And here is the sting. Repeat the study with 10,000 adults picked, at the same 40% response rate. The estimate stays near 65%, while the margin of error falls to about ±1.5 points. You will have bought a far more precise copy of the same wrong number.

A margin of error is a budget for chance error, nothing more. It counts only the randomness of who got drawn. It assumes the frame was complete, everyone answered and everyone answered honestly. It says nothing at all about whether those things were true. Read "±3 points" as "±3 points if the method was clean." Read it correctly, too. The 95% belongs to the method across many possible samples. It is not a 95% chance that this one interval has caught the truth.
Interactive Switch nonresponse and voluntary-response bias on and off in a live survey simulation, and watch the estimate walk away from a truth that never moves: discovering that the bias is set by the ratio of response rates, that more data never repairs it, and that a margin of error cannot see it. Open full ↑
Key points
  • Sampling error is random and shrinks in step with 1/√n. Bias is steady (systematic) and does not shrink at all.
  • Nonsampling error can strike even a full census. It covers coverage, nonresponse, response and processing errors. It is most often larger than sampling error.
  • Nonresponse bias depends on who is missing. So a low response rate is a warning sign that no sample size can cure.
  • A margin of error measures chance variation only, never bias.

Section 4Observational studies versus experiments

Diagram of a confounding variable linked to both the explanatory and response variables
Reference. Confounding: a hidden third variable linked to both the explanatory variable and the response variable. Source and license: see the figure credits

One question separates them

The dividing line is very simple: who decided who got what? In an observational study, the researcher measures people as they already are. She records an exposure that the people (or life) chose for them. In an experiment, the researcher assigns the explanatory variable. She uses a chance method to decide which subjects get which treatment. Then she compares the outcomes.

Observational studies come in a few familiar shapes. A cross-sectional study takes a snapshot at one point in time. A prospective cohort study finds people now and follows them forward, waiting for outcomes to appear. A retrospective case-control study starts with people who already have the outcome. It matches them to people who do not. Then it looks back in time for differences in exposure. All three watch. None of them assigns.

Why observation cannot prove cause

A confounding variable (also called a lurking variable) is a third factor. It is linked to the explanatory variable and related to the response. So its effect cannot be pulled apart from the effect you care about. People sort themselves into the exposed and unexposed groups, and they do so for all sorts of hidden reasons. So groups you only watch differ in a thousand ways besides the exposure.

Watch how badly this can go, with exact numbers. Take 1,000 coffee drinkers, of whom 600 smoke. Take 1,000 people who do not drink coffee, of whom 200 smoke. Let lung cancer strike 10% of smokers and 1% of nonsmokers. And let coffee itself do nothing at all.

Coffee drinkers get lung cancer at 6.4% versus 2.8%. That is a rate ratio of 6.4 ÷ 2.8 ≈ 2.3. So a headline could truthfully say that coffee drinkers are more than twice as likely to get lung cancer. Every number above is real and worked out correctly. Yet the story about cause is pure fiction, made up by smoking. That is confounding. No amount of extra data removes it, because more data means more of the same tangle.

So when you see a link between X and Y, five explanations compete. X may cause Y. Y may cause X (reverse causation). Do sneakers cause fitness, or do fit people buy sneakers? A confounder may cause both. The link may be a fluke of sampling. Or the study may have been biased. Watching alone cannot decide among them.

What each design licenses you to say

Two kinds of randomization do two different jobs, and people mix them up all the time. Random sampling is how subjects got into the study. It lets you generalize to the population. Random assignment is how subjects got sorted once inside. It lets you draw conclusions about cause. They are separate choices, so there are four cases.

Random assignmentNo random assignment
Random sampleCausal conclusion, generalizable to the population (the gold standard, and rare)Association only, generalizable to the population (a good survey or cohort study)
No random sampleCausal conclusion, but only for subjects like these (most clinical trials)Association only, and only for subjects like these (a convenience study)

Observational studies are not second class. They are often the only ethical or workable choice. You cannot assign people at random to smoke for thirty years. Without an experiment, what tips the balance toward cause is a pattern that builds up. That pattern includes a large effect and a dose-response gradient, where more exposure brings more effect. It includes the same result across many populations and designs, the right order in time, and a believable way it could work (a plausible mechanism). That is just how the case against tobacco was built.

The rule for reading observational studies. Sometimes an observational finding is reported with a verb about cause, such as cuts, boosts, prevents or triggers. In your head, rewrite it with "is linked with" (is associated with). Then ask who chose the exposure and what else those people have in common. If the researchers did not assign the exposure, the cause verb was added by the headline writer. The data did not earn it.
Interactive Plant a known effect in a walking program, then run the study two ways, let people choose or let a coin choose, and watch a lurking variable manufacture a benefit that only randomization erases. Open full ↑
Key points
  • Observational study: the exposure is watched. Experiment: the researcher assigns the exposure.
  • A confounder is linked to both the explanatory and the response variables. It makes a link impossible to read.
  • Random sampling → you can generalize; random assignment → you can claim cause. They are separate promises.
  • Observational studies show association. Only a randomized experiment shows causation directly.

Section 5Designing an experiment

Line graph of mean words recalled plotted against assigned drug dose
Reference. A dose-response result from a designed experiment. Mean recall is plotted against the dose each group was assigned. Source and license: see the figure credits

The vocabulary, then the four principles

The people or things in an experiment are experimental units. They are called subjects when they are people. A factor is an explanatory variable you control. Its settings are levels. A treatment is one mix of levels. The response is what you measure. Think of a study of two drug doses given at two times of day. It has two factors, each at two levels. So it has 2 × 2 = 4 treatments.

A good experiment rests on four ideas. Control means keeping other conditions the same across groups. Above all, it means having a control group. This is a comparison arm that gets no treatment, a placebo or the current standard of care. Without a comparison group, you cannot separate the treatment's effect from other things. Time passes. Illness clears up on its own. Patients drift back toward their usual state (regression). Randomization assigns units to treatments by chance. Replication means having enough units per treatment that ordinary variation averages out. It does not mean just repeating one measurement. Blocking groups similar units together and then randomizes within each block. It is the experiment's cousin of stratified sampling.

Randomization needs its own paragraph, because it is the whole reason experiments can prove things. It is not there to be fair. It is there to make the treatment groups the same, on average, in every way. That means age, how severe the illness is, genes, diet, outlook, and the hundred variables nobody thought to record. Then, when the outcomes differ, the only steady difference left is the treatment. Matching on known variables cannot do this, because you can only match on what you thought of.

Placebo and blinding

A placebo is a fake copy of the treatment that does nothing (it is inert). Examples are a sugar pill, a salt water (saline) shot or a sham procedure. It exists because the placebo effect is real and often large. People get better because they believe they are being treated. Say the control group gets nothing at all. Then the treatment group's gain mixes the drug's effect with the belief's effect, and you cannot pull them apart. A placebo control makes the belief equal in both arms. So the difference shows the drug alone.

Blinding keeps people from knowing who got what. In a single-blind study, the subjects do not know. In a double-blind study, neither the subjects nor the people who deal with them and judge the outcome know. Double blinding matters because hopes leak in. A keen assessor who knows a patient got the new drug may rate that patient's "moderate" gain as "marked." Whoever measures the response should always be blind.

PrincipleWhat it doesWhat breaks without it
Control groupProvides the comparison baselineImprovement from time, healing, or regression is credited to the treatment
RandomizationBalances known and unknown variables across armsGroups differ systematically; confounding returns
ReplicationGives enough units for variation to average outOrdinary noise is mistaken for a real effect
BlockingRemoves a known nuisance variable's influenceA big known source of variation hides the effect
PlaceboEqualizes the psychological effect of being treatedBelief effects are counted as drug effects
Double-blindingRemoves expectation from subjects and assessorsReporting and rating drift toward what people expect

A worked example: building the design

We want to compare a new headache drug with the standard drug and with a placebo. We have 180 volunteers.

Completely randomized design. Number the volunteers 1 to 180. Use a computer to shuffle them into three arms of 180 ÷ 3 = 60 each. Every subject gets a capsule that looks the same. So nobody can tell the arms apart, not the subject, the nurse or the assessor. That makes it double blind. Measure the minutes until real relief. Say the group means come back as placebo 42 minutes, standard drug 30 and new drug 26. The standard drug is 42 − 30 = 12 minutes faster than the placebo. The new drug is 30 − 26 = 4 minutes faster than the standard. Assignment was random. So no difference that existed before the study can explain those gaps in a steady way. The question left is whether a gap this size could come from chance alone. The inference tools later in this book are built to answer that.

Now block it. Say how bad the headache is at the start (baseline severity) strongly affects recovery time. First split the 180 into blocks, say 108 with moderate headaches and 72 with severe ones. Then randomize within each block. That gives 108 ÷ 3 = 36 moderate per arm and 72 ÷ 3 = 24 severe per arm. And 36 + 24 = 60 per arm as before, 180 in total ✓. Every arm now has the same mix of severity by design, not by luck. So severity can no longer muddy the comparison. And the leftover variation that the treatment effect must stand out from is smaller.

Two design warnings are worth carrying forward. Keep hidden differences out of the procedure. Say the new drug is given in a quiet private room and the placebo in a crowded hallway. Then the room is confounded with the drug. And beware of people leaving the study (attrition). Subjects who drop out are most often the ones doing worst. So leaving them out of the analysis quietly brings back the very selection bias that randomization was meant to destroy.

Randomization is not about fairness. It is about the unknown. Any careful researcher can balance the groups on age and sex. Only chance can balance them on the variables nobody has heard of yet. That is just why a randomized experiment supports a claim about cause, and a matched observational study does not. The experiment controls for the confounders you have not imagined.
Interactive Assemble a clinical trial one safeguard at a time, control group, randomization, blinding, and watch each one delete a specific, named slab of bias from what the study reports, across 240 genuinely simulated studies. Open full ↑
Key points
  • The four pillars are control, randomization, replication and, when useful, blocking.
  • A placebo makes the mental effect of treatment equal. Double blinding takes hopes out of the picture for both subjects and assessors.
  • Random assignment balances unmeasured variables. That is what allows a conclusion about cause.
  • Blocking removes a known nuisance variable. It is stratification used for assignment instead of selection.

The chapter in one breath

  • A parameter describes the population and is unknown. A statistic comes from the sample and varies from sample to sample.
  • Random selection, not sample size, is what makes a sample stand for the population. It balances every variable, including the ones you never measured.
  • SE = σ/√n. Make the sample four times as big to cut the error in half. The size of the population barely matters.
  • The probability methods are simple random, stratified (some from every group), cluster (everyone from some groups) and systematic (every kth after a random start). Convenience and voluntary response samples support no inference.
  • Sampling error is random and shrinks as n grows. Bias is steady and never shrinks. A bigger bad sample only gives a wrong answer with more confidence.
  • Nonsampling error covers coverage, nonresponse, response and processing errors. It strikes even a census, and a margin of error counts none of it.
  • Observational studies show association and are haunted by confounding. Only experiments, which assign the treatment, show causation.
  • Good experiments use a control group, random assignment, enough replication, a placebo where it fits, and double blinding.

ReferenceWords worth knowing

A quick reference for the terms in this chapter. Skim it now, or come back whenever a word trips you up.

Bias
A steady tendency for a method to miss the truth in the same direction. Unlike random error, it does not shrink as the sample grows.
Blinding
Keeping the treatment a secret from the people in the study (single-blind), or from them and the researchers who judge them (double-blind).
Blocking
Grouping similar experimental units together and randomizing treatments within each group. Then a known nuisance variable cannot bend the comparison.
Census
An attempt to measure every member of a population instead of a sample. It can still suffer from nonsampling error.
Cluster sample
A sample made by picking whole groups that occur naturally, at random, and measuring everyone inside them.
Confounding variable
A third variable linked to the explanatory variable and related to the response, so that their effects cannot be pulled apart.
Control group
The comparison arm of an experiment. It gets no treatment, a placebo or the current standard of care.
Convenience sample
A sample of whoever is easiest to reach. The chances of being picked are unknown, so no valid inference is possible.
Experiment
A study in which the researcher assigns the explanatory variable to units, ideally at random, and then compares the responses.
Margin of error
Half the width of an interval estimate. It measures chance variation from sampling only, never bias or nonsampling error.
Nonresponse bias
A skew that arises when people who were picked do not take part, and they differ in a steady way from those who do.
Nonsampling error
Any error that has nothing to do with which people were chosen. It includes coverage gaps, nonresponse, wrong answers, and mistakes in measuring and processing.
Observational study
A study that records an exposure the subjects already have, instead of assigning it. It shows association, not causation.
Parameter
A fixed number that sums up a population, such as μ, σ or p. It is almost always unknown.
Placebo
A fake copy of a treatment that does nothing (inert). It is used so that the control group believes it is treated as much as the treatment group does.
Population
Every person or thing you want to draw a conclusion about.
Random assignment
Using chance to place subjects in treatments. It balances known and unknown variables, and it is what allows conclusions about cause.
Replication
Giving each treatment enough units that ordinary variation averages out. It is not the same as repeating one measurement.
Response bias
Skew in the answers themselves. It can come from how a question is worded, wanting to look good (social desirability), the effect of the interviewer, or faulty memory.
Sample
The part of the population that is actually measured.
Sampling error
The random gap between a sample statistic and the population parameter. It comes from measuring only part of the population.
Sampling frame
The actual list of units a sample is drawn from. Anyone not on it cannot be picked.
Simple random sample (SRS)
A sample chosen so that every possible group of n people is equally likely to be picked.
Standard error
The typical wobble of a statistic from sample to sample. For a sample mean, it is σ/√n, assuming the observations are independent.
Statistic
A number worked out from a sample, such as x̄, s or p̂. It varies from sample to sample.
Stratified sample
A sample made by splitting the population into groups of similar members (strata) and drawing a random sample from inside every stratum.
Systematic sample
A sample taken by choosing every kth unit after a random start, with k = N/n. It can go wrong if the list repeats in a cycle (periodicity).
Undercoverage
A coverage gap in which part of the population cannot appear in the sampling frame at all. So it can never be picked.
Voluntary response bias
A skew that arises when people pick themselves for a sample. People with strong opinions end up with too large a share.

Check yourself

1. A college reports that the mean GPA of its 12,000 students is 3.11. A researcher surveys 250 of them and finds a mean GPA of 3.04. Name the population, the sample, the parameter and the statistic.
Population = all 12,000 students; sample = the 250 surveyed; parameter = μ = 3.11; statistic = x̄ = 3.04. The parameter is fixed. The statistic would change if a different 250 students had been drawn.
2. Household incomes in a region have σ = $24,000. Work out the standard error of the sample mean for n = 100 and for n = 900. Say what the comparison shows.
SE = 24,000/√100 = 24,000/10 = $2,400; SE = 24,000/√900 = 24,000/30 = $800. Nine times the data gave three times the precision. That is because n sits under a square root. It is the classic shrinking return.
3. A student objects that a poll of 1,000 people cannot describe a country of 300 million. The reason given is that it is "only about 0.0003% of the population." What is wrong with the objection?
Precision depends on n, not on the share of the population sampled. The size of the population is not in σ/√n. Say the sample is a small part of the population. Then 1,000 people picked at random give about the same precision for a nation as for a town. What matters is that the picking was random, not that it was in proportion.
4. A hospital has 900 nurses, 300 physicians and 300 technicians. It wants a stratified sample of 150 with proportional allocation. Work out the numbers.
Total N = 1,500, and 150/1,500 = 1/10. So take 90 nurses, 30 physicians and 30 technicians. Check: 90 + 30 + 30 = 150 ✓. And each person's chance is 1/10 in every stratum.
5. Name each design. (a) A researcher picks 20 of a district's 400 classrooms at random and surveys every student in them. (b) A researcher picks a random start between 1 and 8. Then she takes every 8th patient off an appointment list.
(a) Cluster sampling: whole groups are picked, and everyone inside is measured. (b) Systematic sampling with k = 8. Neither is a simple random sample. In (a), students in classrooms not chosen have no chance of appearing. In (b), only 8 of the huge number of possible groups of that size can ever occur.
6. Explain the difference between stratified and cluster sampling. Include how each type of group should ideally be made up.
Stratified takes some units from every group. Cluster takes all units from some groups. Strata should be alike inside and different from each other, which is what buys precision. Clusters should each be mixed inside, like little copies of the whole population.
7. A morning show invites viewers to text in their opinion. It gets 84,000 replies, and 71% of them oppose a new policy. Name the flaw. Explain why the large number of replies does not rescue it.
Voluntary response bias. People picked themselves, and those with strong (most often negative) feelings are far more likely to act. Bias is steady, so it does not shrink as n grows. The 84,000 texts from people who chose to reply estimate the opinions of people who text in. They do not estimate the opinions of the population, no matter how large the count grows.
8. A sample of 500 people is drawn properly. It gets 300 replies (respondents), and 195 of them report owning a pet. That gives p̂ = 0.65. A follow up finds that only 30% of the 200 nonrespondents own pets. Work out the true proportion among all 500 and the size of the bias.
Nonrespondent owners = 0.30 × 200 = 60; total = (195 + 60)/500 = 255/500 = 0.51. The bias is 0.65 − 0.51 = 0.14, or 14 percentage points. The reported margin of error for n = 300 would be 1.96 × √(0.65 × 0.35 / 300) ≈ 0.054, about ±5.4 points. That is far smaller than the bias it fails to catch. No amount of extra sampling would close that gap.
9. Tell sampling error apart from nonsampling error. Give one nonsampling error that would still occur in a complete census.
Sampling error is the random gap caused by measuring only part of the population. Nonsampling error is every other source of error. Even a census suffers from people it cannot reach, people who answer wrongly, and mistakes in entering or coding data. None of these has anything to do with which people were picked.
10. Researchers find that adults who eat breakfast weigh less than those who skip it. A headline says that "breakfast cuts weight." What kind of study is this, and what is the flaw?
It is an observational study, so it can only report an association. The researchers did not assign anyone to eat breakfast. Breakfast eaters may well differ in exercise, sleep, income and smoking. Any of these could confound the comparison. Reverse causation is also possible, since people trying to lose weight skip meals. Only random assignment would earn the verb "cuts."
11. A trial assigns 240 patients at random to a new inhaler or a placebo inhaler. Neither the patients nor the clinicians who judge them know which is which. State the purpose of the placebo, the purpose of the blinding, and how many patients are in each arm.
240 ÷ 2 = 120 per arm. The placebo makes the mental effect of being treated equal, so the difference shows the drug, not the belief. Double blinding keeps the hopes of both subjects and assessors from tilting the reported outcomes. Blinding the assessor matters most, since the assessor is the one who scores the response.
12. Why is random assignment said to control for variables the researchers never measured? What would matching on age and sex fail to do?
Placing people by chance makes the arms the same on average for every trait at once, measured or not. So the treatment is the only steady difference left. Matching balances only the variables you thought of. Any variable no one noticed could stay unbalanced and confound the result. Examples are genes, diet, how severe the illness is and motivation. That is just why observational studies cannot close the gap to cause.