TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is selection bias? Types and examples in analytics

Selection bias happens when the people in your data are not representative of the people you want to draw conclusions about. Types, analytics examples and how to reduce it.

Su He Reviewed by Emma Collins Also called sampling bias Last updated Nov 4, 2026 Glossary

Quick answer

Selection bias is a distortion that happens when the people or events included in an analysis differ systematically from the population you want to draw conclusions about, because of how they were chosen or chose themselves.

What is selection bias?

Selection bias happens when the group you analyse differs systematically from the group you want to draw conclusions about. The difference comes from how people ended up in the data: they were picked in a skewed way, they chose themselves, or some of them dropped out.

It does not shrink with more data. A million self-selected users are still self-selected.

Five types, with analytics examples

TypeWhat happensAnalytics example
Self-selectionPeople choose their own groupUsers who turn on a feature are compared with those who did not
Sampling biasThe sampling method skips part of the populationA survey shown only on desktop
Non-responseSome people do not answerOnly very happy and very angry customers fill in the NPS survey
AttritionPeople drop out unevenly over timeLong trials lose low-intent users, so later weeks look better
SurvivorshipOnly the cases that made it are leftStudying only customers who stayed

There is also a quiet one built into tracking: coverage bias. Visitors with ad blockers, strict browsers or no consent may be missing from client-side data, and they are not a random slice of your audience.

A sample example: the newsletter effect

A team compares purchase rates over 90 days (sample numbers):

GroupPurchase rate
Newsletter subscribers9.0%
Non-subscribers2.5%

That looks like a 3.6× lift from the newsletter. But people who subscribe were already more interested. Looking at the same subscribers in the 90 days before they subscribed:

GroupBefore subscribingAfter
Subscribers6.5%9.0%
Non-subscribers (same periods)2.4%2.5%

Most of the gap existed before the newsletter. The change linked to subscribing is closer to +2.5 points for subscribers against +0.1 for everyone else, and even that may include other differences, so check for confounding variables.

How to reduce selection bias

  1. Randomise when you can. A random holdout removes self-selection.
  2. Compare before and after for the same people, against a group that did not change.
  3. Define the population at entry, not at the end of the process.
  4. Sample deliberately. Use stratified sampling so small groups are represented in surveys and interviews.
  5. Close tracking gaps. Send key business events (signups, orders) from your server so they are counted even when a browser blocks scripts.

In TapCub

TapCub does not bypass ad blockers or Do Not Track, so browsers that block the script are missing from website reports. The default website setup is anonymous with no cookie, which avoids the consent-driven gaps that cookie banners can create; identified mode, by contrast, writes a device id only after consent. Send purchases and signups as server-side events so totals do not depend on the browser. To compare a feature against a fair baseline, build a rule segment with a random bucket condition as a holdout, and use the period comparison to look at the same people before and after.

Was this explanation clear?

We use your answers to fix and expand this page.

Su He

Data Analyst

Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is a simple example of selection bias?

Concluding that a feature raises retention because users who turned it on retain better, when the users who bother to turn on features were more engaged to begin with.

What is the difference between selection bias and sampling bias?

Sampling bias is a type of selection bias caused by how a sample is drawn. Selection bias is broader and also covers people dropping out or choosing which group they are in.

Is survivorship bias a type of selection bias?

Yes. The selection happens because only cases that survived some process are left to measure.

How do you reduce selection bias?

Assign groups at random where you can, compare people before and after they opted in, define the population at entry, and fill tracking gaps (such as blocked browsers) with server-side events.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics