Explainer
What is selection bias?
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
| Type | What goes wrong | Everyday example | AI example |
|---|---|---|---|
| Survivorship bias | Only cases that made it through a process are visible | Judging a course by its graduates while ignoring dropouts | Judging AI adoption from published success stories while failed projects go unreported |
| Self-selection (volunteer) bias | People choose to take part, and volunteers differ from others | Restaurant ratings dominated by delighted or furious customers | An opt-in web poll on whether people trust chatbots, answered mostly by enthusiasts |
| Non-response bias | Invited people who do not answer differ from those who do | A household survey that rarely reaches night-shift workers | A company AI survey answered mainly by staff who already use the tools |
| Convenience sample | Data comes from whoever is easiest to reach | Polling only students in one lecture hall | Training a speech model mostly on audio from a few accents because it was easy to collect |
| Attrition bias | People who drop out over time differ from those who stay | A diet trial where people for whom it fails quietly leave | A long-term study of AI tutoring that only counts students who kept using the app |
| Unrepresentative training data | The data a model learns from under-represents some groups | A medical study recruited almost entirely from one age group | Face analysis tools trained mostly on lighter-skinned faces performing worse on darker-skinned faces |
Examples
- 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
- The Legend of Abraham Wald — American Mathematical Society (Feature Column)
- Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification — Proceedings of Machine Learning Research (Buolamwini and Gebru, 2018)
- Online opt-in polls can produce misleading results, especially for young people and Hispanic adults — Pew Research Center
- OpenIntro Statistics — OpenIntro
Glossary terms
- Selection bias
Selection bias occurs when the cases included in data systematically differ from the population of interest, which can warp conclusions even when the numbers look precise.
- Sample size
Sample size is the number of observations collected for an estimate. Larger samples usually reduce noise, but they do not fix a biased selection by themselves.
- Correlation
Correlation describes a relationship where two variables tend to move together. It does not by itself prove that one variable causes the other.
- Causation
Causation means a change in one factor produces a change in another. Establishing it usually needs careful design beyond noticing that two things move together.
Keep reading
- What is sample size?
Sample size is the number of people, items or measurements you actually observed in order to learn about a larger group. Bigger samples give more precise estimates, but with diminishing returns: the margin of error shrinks with the square root of the sample size, so quadrupling the sample only halves the error.
- Correlation vs causation: what is the difference?
Correlation means two things tend to move together; causation means one actually makes the other happen. A correlation can come from a hidden third factor, from the effect running the other way, from chance, or from how the data was collected. Proving causation needs stronger evidence, ideally a randomised experiment.
- Average vs median: what is the difference?
The average (mean) is the total divided by the count. The median is the middle value once the numbers are sorted. When data has a few extreme values, such as one very high salary, the mean gets pulled towards them while the median barely moves, so the median usually describes the typical case better.
- AI model comparison (free tool)
Every major language model side by side: context window, price per million tokens, and whether you can download it.
- What is an AI hallucination?
An AI hallucination is when a language model states something false or unsupported as if it were true, such as an invented fact, a fake citation or a quote nobody said. It happens because models generate plausible-sounding text rather than looking facts up. Grounding answers in real sources and verifying important claims are the main defenses.