Population and sample
You study a sample to learn about a population. How the sample was drawn matters more than how big it is.
What runs in CodeSplash
- One proportion (exact binomial / score test) Verified in Python and R
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
Who do you want to talk about?
ReadThe 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.
Which survey would you trust?
PredictPredict first
You want the share of adults who hold an opinion. Which survey would you trust more?
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.
Bias against sample size
ExploreHere 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 much more likely high earners are to answer.
Commit your prediction above to see the result
Make your prediction to see the result.
Two kinds of error
ReadAn estimate misses the truth in two ways.
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.
Check your reading
CheckpointCheck 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.
Check your sample against what you know
In the appWhen 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.
Who's missing?
ReflectThink of a dataset you use. Who could never appear in it? Who appears, but rarely? Would your conclusion change for them?
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