By Plainly Editorial

Updated

First published

What is selection bias?

Filed under Data literacy

What does selection bias mean in simple terms?

Every dataset passes through a filter: who was asked, who answered, who stayed until the end, which records survived. Selection bias happens when that filter is related to the thing you are measuring. The data you can see then differs in a systematic way from the data you cannot see.

Imagine a gym wants to know whether its members enjoy their workouts, so it surveys people in the building on a Monday evening. Everyone it reaches is someone who showed up. Members who stopped coming because they hated it are invisible. The survey will report high satisfaction, and asking 5,000 Monday visitors instead of 500 would not change that.

That is the key difference from random noise. Random error shrinks as the sample grows. Selection bias does not shrink at all; it just becomes more confidently wrong.

What is survivorship bias? The WWII planes story

Survivorship bias is a type of selection bias where you only see the cases that made it through some process. The famous example involves the statistician Abraham Wald, who worked with the Statistical Research Group at Columbia University during the Second World War on how bombers could survive enemy fire.

In the popular telling, analysts looked at returning planes, saw where the bullet holes clustered, and proposed adding armour there. Wald pointed out that the planes being examined were the ones that came back. Areas on returning planes with few holes, such as around the engines, were likely the places where a hit brought a plane down, so those were the areas that needed protection.

Historians note that Wald's actual wartime memoranda were technical and that many vivid details of the story are later reconstruction, so treat the anecdote as an illustration rather than a precise record. The lesson holds regardless: when the failures are missing from your data, the survivors can point you in exactly the wrong direction.

What are the main types of selection bias?

Self-selection or volunteer bias happens when people choose whether to take part, and the people who opt in differ from those who do not. Online reviews, phone-in polls and open web surveys are classic cases: people with strong feelings are far more likely to respond.

Non-response bias happens when you invite a fair sample but some groups are much less likely to answer. A random sample of households can still end up skewed if busy shift workers rarely pick up the phone.

Convenience samples use whoever is easiest to reach: students in a lecture hall, shoppers at one mall, your own social media followers. Attrition bias happens when people drop out of a study over time, and the ones who leave differ from the ones who stay, for example patients who quit a diet trial because it was not working for them. The table below summarises each type.

How does selection bias distort conclusions?

It can make an average too high or too low, invent a link that does not exist, or hide one that does. If a job training scheme only tracks graduates who completed the course, its success rate will look better than the experience of everyone who enrolled.

It also undermines comparisons. Suppose people who choose to use a meditation app report less stress than people who do not. The app might help, but people who download a meditation app may already be calmer, more organised or have more free time. The groups were selected differently before the app did anything, which is one reason correlation is not causation.

How do researchers reduce selection bias?

The strongest tool is random sampling: every member of the population has a known chance of being chosen, so no group can quietly select itself in or out. In experiments, randomly assigning people to treatment and control groups does the same job for comparisons.

Weighting comes next. If a survey ends up with too few young men relative to census figures, each young man who did respond is given more weight so the totals match the known population. Weighting helps, but it only corrects for characteristics you measured, and it cannot rescue respondents who are unusual in ways you did not record.

Good studies also chase non-respondents, follow up with people who drop out, and compare respondents with non-respondents on whatever information is available, such as age or region from the original sampling list. If the two groups look alike, there is more reason to trust the results.

How does selection bias affect AI?

AI models learn from whatever data they are given, so a skewed training set becomes a skewed model. A well-known 2018 study, Gender Shades, found that two widely used face datasets were roughly 80% or more lighter-skinned subjects (79.6% and 86.2%), and that commercial gender classifiers made far more mistakes on darker-skinned women, with error rates up to 34.7%, than on lighter-skinned men.

Survivorship bias shows up in claims about AI adoption. Case studies and conference talks feature companies where an AI project worked. Projects that were quietly abandoned rarely get a write-up, so a collection of success stories says little about the typical return on an AI investment.

Online polls about AI are also vulnerable. An open poll on a tech news site will over-represent enthusiasts and people who feel strongly. Pew Research Center has found that online opt-in polls can include bogus respondents and can produce misleading results, especially for estimates about young adults and Hispanic adults. Before trusting a figure like "70% of workers use AI daily", ask how the people were chosen.

Common types of selection bias with everyday and AI examples

TypeWhat goes wrongEveryday exampleAI example
Survivorship biasOnly cases that made it through a process are visibleJudging a course by its graduates while ignoring dropoutsJudging AI adoption from published success stories while failed projects go unreported
Self-selection (volunteer) biasPeople choose to take part, and volunteers differ from othersRestaurant ratings dominated by delighted or furious customersAn opt-in web poll on whether people trust chatbots, answered mostly by enthusiasts
Non-response biasInvited people who do not answer differ from those who doA household survey that rarely reaches night-shift workersA company AI survey answered mainly by staff who already use the tools
Convenience sampleData comes from whoever is easiest to reachPolling only students in one lecture hallTraining a speech model mostly on audio from a few accents because it was easy to collect
Attrition biasPeople who drop out over time differ from those who stayA diet trial where people for whom it fails quietly leaveA long-term study of AI tutoring that only counts students who kept using the app
Unrepresentative training dataThe data a model learns from under-represents some groupsA medical study recruited almost entirely from one age groupFace analysis tools trained mostly on lighter-skinned faces performing worse on darker-skinned faces
  • Airport surveys that only interview travellers who stopped to talk
  • Studying habits of successful founders without looking at similar people whose companies failed
  • Hospital patients appearing sicker than the general public because healthy people rarely end up in hospital
  • A vendor quoting satisfaction scores collected only from customers who renewed
  • An AI model that performs well on English text and poorly on languages that were scarce in its training data

Common questions

Is selection bias the same as a small sample size?

No. Sample size controls random noise; selection bias is about who got into the sample. You can have a huge biased sample or a small fair one. Adding more data through the same skewed process makes the estimate more confident without making it more accurate.

Is selection bias the same as sampling bias?

The terms overlap and are often used interchangeably. Sampling bias usually refers to flaws in how a sample is drawn, such as a convenience sample. Selection bias is the broader idea and also covers non-response, dropout and survivorship, where the filter happens after people were chosen.

Can you fix selection bias after collecting data?

Partly. Weighting the sample to match known population figures, modelling who responded, and comparing respondents with non-respondents can reduce the damage. None of these can fully correct for differences you never measured, so preventing bias through random sampling and follow-up is far more reliable than correcting it afterwards.

How can I spot selection bias in a news story?

Ask who was included and how they got there. Look for phrases like "readers who responded", "users of our app" or "companies we spoke to". Ask who is missing: people who quit, failed, did not reply or were never asked. If the missing group could plausibly answer differently, be cautious.

Why does selection bias matter for AI fairness?

A model learns patterns from its training data. If some groups are rare or missing, the model gets less practice on them and often performs worse for those people. Checking accuracy separately for different groups, rather than only one overall score, is a standard way to catch this.

Sources and further reading

  1. The Legend of Abraham Wald — American Mathematical Society (Feature Column)
  2. Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification — Proceedings of Machine Learning Research (Buolamwini and Gebru, 2018)
  3. Online opt-in polls can produce misleading results, especially for young people and Hispanic adults — Pew Research Center
  4. OpenIntro Statistics — OpenIntro

Glossary terms

Keep reading