Skip to content

Population and sample

You study a sample to learn about a population. How the sample was drawn matters more than how big it is.

Introductory ~9 min8 steps

What runs in CodeSplash

You will be able to

  • Name the population, sampling frame and sample of a study
  • Tell sampling bias apart from sampling variability
  • Explain why a larger sample doesn't remove bias

Read first

01

Who do you want to talk about?

Read

The populationPopulationEveryone or everything your conclusion is about, whether or not you measured them. is everyone your conclusion is about. The sampling frame is the list you can actually draw from. The sampleSampleThe units you actually measured, used to learn about a larger population. is who ended up in your data.

Every gap between them is a place where the study can go wrong. Say you want to know about all customers. Your frame is customers with an email address, and your sample is those who answered. People who answer surveys may not resemble those who don't.

02

Which survey would you trust?

Predict

Predict first

You want the share of adults who hold an opinion. Which survey would you trust more?

A: 1,000 people drawn at random, and most answeredB: 100,000 people who chose to answer a web pollThey are equally trustworthy
Reveal

Survey A, in most settings. In 1936 the Literary Digest polled more than two million people and called the US election wrong, because its lists and its volunteers leaned one way. Smaller scientific polls got it right.

Size shrinks random error. It does nothing about who was missed.

03

Bias against sample size

Explore

Here high earners are more likely to answer a survey. Change People invited and Nonresponse bias, and compare Bias with SD of survey means.

AExplorable · Sampling bias

Does a bigger sample fix a biased way of collecting data?

If you invite ten times as many people, what happens to the gap between the survey mean and the truth?

How sure?
0.80

How much more likely high earners are to answer.

200
Simulating…

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

04

Two kinds of error

Read

An estimate misses the truth in two ways.

estimate−truth=bias⏟how you sampled+random error⏟which units you drew\text{estimate} - \text{truth} = \underbrace{\text{bias}}_{\text{how you sampled}} + \underbrace{\text{random error}}_{\text{which units you drew}}

Sampling variabilitySampling variabilityHow much a statistic changes from one sample to another, even when nothing about the population changes. shrinks as the sample grows. Selection biasSelection biasA systematic gap between the sample and the population, caused by how units got into the data. doesn't, so a large biased sample gives a precise estimate of the wrong number.

05

Check your reading

Checkpoint

Check yourself

A hospital studies its own patients to learn about all adults with diabetes. What is the sampling frame?

Show the answer

Answer: b

All adults with diabetes is the population, and the analyzed patients are the sample. The frame is the list in between. Anyone who never reaches this hospital can't be sampled.

Check yourself

An app's feedback form gets 200,000 replies from its most active users. You double the replies by leaving the form up longer. What happens?

Show the answer

Answer: a

More replies from the same kind of user make the estimate more precise, around the wrong target.

06

Check your sample against what you know

In the app

When you know a population share, compare your sample with it. In this example a sample's share of blue eyes is tested against a reference of a quarter: 36.3% of 592 people, p < .001.

A gap like this is a prompt to ask who your sample misses.

07

Who's missing?

Reflect

Think of a dataset you use. Who could never appear in it? Who appears, but rarely? Would your conclusion change for them?

08

Recap

Recap
  • Population, frame and sample are three different groups. Name all three.
  • Random error shrinks with sample size. Bias doesn't.
  • A precise answer about the wrong people is still wrong, so describe who your sample represents.

Concepts in this lesson