Sampling bias
Sampling bias is a distortion that arises when the way data is collected gives some members of a population a higher or lower chance of being included than others.
A sample is meant to stand in for a larger population. If the method of collecting it favours some people or cases over others, the sample stops being a fair miniature, and conclusions drawn from it are skewed. The bias comes from the collection method, not from the people or things being studied, which is why it is easy to mistake for a real finding.
The classic example is the 1936 US presidential election. The Literary Digest collected more than two million postal surveys and predicted that Alf Landon would beat Franklin Roosevelt by a large margin. Roosevelt won. The magazine's sample over-represented wealthier people, who leaned Republican. A Gallup poll of about 50,000 people called the result correctly, showing that a smaller, better-drawn sample beats a huge, skewed one.
Machine learning datasets are samples too. Google's Machine Learning Crash Course gives the example of a survey that takes the first 200 people who reply to an email instead of choosing respondents at random; early responders are likely to be keener than typical customers. In 2018 Joy Buolamwini and Timnit Gebru found that two widely used face datasets, IJB-A and Adience, were 79.6% and 86.2% lighter-skinned. A model trained on such data learns the sample, not the world.
Some sampling bias can be corrected. If a group is under-represented by a known amount, its examples can be weighted up. But if a group is missing entirely, no reweighting can recover it. The practical defence is to ask, before training, who or what had a chance to end up in the data, and to test a model's performance separately on the groups that matter.
The 1936 Literary Digest poll surveyed over two million people but drew too heavily on wealthier households and wrongly predicted a Landon win over Roosevelt. In machine learning, training a model only on photos posted online is a modern equivalent, because online photos are not a random sample of the world. Sampling bias is usually treated as a type of selection bias. It refers to a non-random way of gathering the sample, while selection bias covers any process that skews which data ends up being analysed, including dropouts and filtering after collection. The terms are often used interchangeably. Prevention is best: random or stratified sampling designed to cover the population. After the fact, under-represented groups can be given more weight if the size of the gap is known. Groups that are entirely missing cannot be restored by reweighting. No. A bigger sample drawn the same way repeats the same skew with more confidence. The Literary Digest's two million responses lost to a Gallup sample of about 50,000 because the smaller sample was better drawn.Common questions
What is an example of sampling bias?
What is the difference between sampling bias and selection bias?
How can sampling bias be fixed?
Does a bigger dataset remove sampling bias?
Search for "sampling bias examples", "Literary Digest poll 1936" or "selection bias in machine learning". Reliable sources include statistics textbooks and survey methodology guides, machine learning fairness courses from major providers, and peer-reviewed studies that audit who is represented in specific datasets. Be wary of claims that a dataset is unbiased simply because it is large.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.