Bias & Data Quality

Bad data in, bad AI out — with the uncomfortable punchline that there is no "perfectly fair".

Ethics 10 min Intermediate June 8, 2026

What This Is About

A skin cancer algorithm detects changes on light skin with high accuracy — on dark skin, detection rates drop drastically. Is the algorithm racist? No. It simply hasn't seen enough training images of dark skin tones. The error is in the data, and the fix requires engineering, not ideology. This article shows why bias is a technical data quality problem bounded by mathematical constraints.

Training Bias

Selection Bias The data sample doesn't represent reality. A language model trained almost exclusively on English text can only understand other cultures through an English-language lens.
Measurement Bias The measured features don't capture what they're supposed to measure. Historical lending decisions used as a proxy for creditworthiness only reflect past lending practices, not actual credit quality.
Label Bias Human annotators introduce systematic errors. Studies show that even established benchmark datasets contain massively incorrect labels.

Training Bias

AnalogyDefinition
Imagine learning to cook entirely from a cookbook that only contains French recipes. You'd become excellent at sauces and pastries — but you'd have no idea how to make sushi, curry, or tacos. You wouldn't be "anti-Asian" — you'd simply never been exposed to those techniques. That's exactly how an AI model works: it becomes an expert in its training distribution and a poor judge of everything outside it.

Example: Dermatology Image Classifier

A neural network for skin cancer detection is trained on a dataset consisting predominantly of images of light skin (Fitzpatrick types I-III). The model's loss function converges optimally for the dominant pixel distribution. When evaluated on dark skin (Fitzpatrick types IV-VI), detection accuracy drops drastically. The reason is mathematical: the model has seen too few examples of dark skin conditions, so its learned feature representations are poorly calibrated for those inputs. The fix is targeted data engineering: collect and annotate images across all skin types until the training distribution matches the deployment distribution.

Misconception: "AI Is More Objective Than Humans"

This claim reverses the causality. An AI model does not generate its own judgments from first principles — it compresses human-generated data into statistical patterns. If the underlying data contains biases, the AI reproduces them with perfect consistency at massive scale. A biased loan officer might reject 100 applications per month based on flawed criteria. An AI trained on that officer's historical decisions replicates the same flawed criteria across millions of decisions per second. The AI doesn't add objectivity — it adds speed and consistency to whatever patterns exist in the data, correct or not.

Impossibility Theorem

Impossibility Theorem

AnalogyDefinition
Building A has old wiring and fires occur twice a month. Building B is modern and fires occur once a year. You install the same alarm system in both buildings. Now you face three demands: (1) When the alarm says "70% fire risk," there should actually be fire 70% of the time — in both buildings; (2) The rate of false alarms should be equal for both buildings; (3) The rate of missed fires should be equal for both buildings. With fundamentally different fire frequencies, you cannot find one alarm threshold that satisfies all three demands simultaneously. The math forces a choice.
Calibration When the model predicts a 70% probability, the event actually occurs 70% of the time — equally for all groups. Optimizes prediction accuracy.
Equal False Positive Rate The proportion of incorrectly flagged cases (the "false alarms" from the building analogy) is identical for all groups. Minimizes unfounded alarms — but may miss actual cases.
Equal False Negative Rate The proportion of missed positive cases (the "missed fires" from the building analogy) is identical for all groups. Maximizes detection — but may lead to more false alarms in some groups.
Equal False Positive Rate

The proportion of incorrectly flagged cases (the "false alarms" from the building analogy) is identical for all groups. Minimizes unfounded alarms — but may miss actual cases.

Equal False Negative Rate

The proportion of missed positive cases (the "missed fires" from the building analogy) is identical for all groups. Maximizes detection — but may lead to more false alarms in some groups.

Example: Medical Screening

A screening algorithm detects a condition that affects 8% of Population A and 4% of Population B. If the developer enforces equal false positive rates (both groups get the same rate of unnecessary follow-up tests), the mathematics forces unequal false negative rates: more actual cases will be missed in Population B. If the developer instead enforces equal false negative rates (no group has more missed cases), Population A will receive significantly more false alarms. The developer must make an explicit engineering decision — there is no setting that avoids both.

Misconception: "Bias Can Be Eliminated with Enough Effort"

The Impossibility Theorem refutes this directly. Bias reduction is always possible, but complete elimination across all fairness definitions simultaneously is not. This is not a limitation of current technology or compute power — it is a proven mathematical constraint. Any claim that a system has "eliminated bias" is either using a single narrow fairness metric (while violating others) or ignoring mathematical reality.

Signal vs. Noise

80%
Data Curation Share of professional ML development time spent on data preparation, cleaning, and curation
100B+
Training Tokens Hundreds of billions of tokens from internet sources form the training basis of modern language models — but the internet is not a representative sample
Quality > Quantity
Data Principle A smaller model on curated data often outperforms a larger model on unfiltered data

Analogy: Studying with Mixed-Quality Notes

You have 1,000 pages of study material, but 700 pages contain outdated information, duplicated passages, contradictions, and irrelevant tangents. Only 300 pages contain accurate, well-structured content. A student who reads all 1,000 pages will be confused — they'll memorize contradictions and outdated facts alongside correct information, unable to distinguish which is which. A student who reads only the curated 300 pages will learn more effectively, despite seeing less material. Machine learning works identically: more data helps only when the additional data increases the signal, not the noise.

Example: Language Model Training

GPT-3 was trained on hundreds of billions of tokens scraped from the internet. The internet is not a representative sample of human knowledge — it is disproportionately English-language, Western-centric, and skewed toward tech-savvy demographics. Adding more data from the same source (more internet text) does not correct these distributions; it reinforces them. This is why subsequent models invested heavily in data curation: filtering, deduplication, quality scoring, and proportional weighting of sources. The breakthrough was not "more parameters" but "better data per parameter."

Misconception: "More Data Always Fixes Bias"

If the data source itself is skewed, scaling up amplifies rather than corrects the skew. A dataset of 1 million biased examples produces a more confidently biased model than a dataset of 10,000 biased examples. The fix is not volume but representativeness: ensuring the training distribution matches the intended deployment distribution across all relevant dimensions.

Gebru et al. (2021) proposed a standardized documentation format for datasets — comparable to datasheets for electronic components. Every dataset should document: How was the data collected? Which populations are represented? What are the known limitations? What is the dataset suitable for — and what is it not suitable for? These "Datasheets for Datasets" establish professional data governance and make quality assessment of training data systematic and traceable.

Interactive: What Type of Bias Is This?

You have learned about three error sources: biased training data, conflicting fairness metrics, and poor data quality. Use the diagnosis tree to systematically determine which mechanism is at play in a given scenario.

?

Where is the suspected source of error?

Key Takeaways

  1. Bias is a data problem: AI models don't generate their own judgments — they compress the patterns of their training data. Biased data produces biased predictions.
  2. Perfect fairness is mathematically impossible: The Impossibility Theorem proves that three intuitive fairness metrics cannot all be satisfied when base rates differ.
  3. Data quality beats data quantity: More data helps only when it increases the signal. Scaling data from a biased source amplifies the bias.
  4. Bias is not a bug but a constraint: Professional AI development means identifying biases, consciously choosing tradeoffs, and investing in data curation.

Quiz: Bias & Data Quality

Question 1 / 5
Not completed

A credit scoring model trained on historical lending decisions reproduces the biases of past loan officers. Which type of training bias does this primarily represent?

Select one answer
Answer Key: 1) B · 2) B · 3) B · 4) B · 5) B

Checkpoint: Do you understand Bias & Data Quality?

  • Imagine an AI that only learns from English texts what "good food" means. What type of bias arises and why?
  • Why is it mathematically impossible to set an alarm system so that it is simultaneously "fair" across all fairness metrics for two very different buildings?
  • Why doesn't simply feeding the AI more data from the internet solve the problem of biased training data?