Data bias occurs when a dataset does not fairly represent the real world. If the training data is biased, the model will likely produce biased predictions.
Biased Data → Biased Model → Unfair or Unreliable Predictions
Bias can affect real people in hiring, healthcare, lending, and many other high-stakes areas.
Even a small amount of bias in data can have large effects when a model is used by millions of people.
Representation bias occurs when some groups are underrepresented in the training data. The model performs worse on groups it has seen fewer examples of.
Group A — 50,000 images
Group B — 500 images
Problem — The model will perform much better for Group A than Group B
If trained mostly on one accent, the model may struggle with other accents that are underrepresented in training data.
Historical bias occurs when training data reflects past unfair decisions. The model learns from history and may repeat those patterns.
Historical records show Group A received loans more often than Group B.
Result — A model trained on this data may repeat the same unfair pattern
A hiring model trained on past decisions may learn to reject candidates similar to those historically rejected — even if those rejections were originally unfair.
A hospital uses different diagnostic tests for different patient groups.
Problem — Data quality is inconsistent across groups, making the model less reliable for some patients
An essay labeling task where one evaluator consistently gives lower scores to essays written by certain groups.
Problem — The labels reflect the evaluator's bias rather than objective quality
Feedback loop bias occurs when a model's predictions are used to collect more data, which reinforces the model's existing patterns.
App recommends popular music → Users listen → More popular music data collected → App recommends popular music even more → Less popular genres get less exposure
Platform shows certain jobs to certain demographics → Those demographics apply → System learns those demographics prefer those jobs → Bias reinforces over time
Group A Accuracy: 95%
Group B Accuracy: 70%
The average may look acceptable, but Group B is seriously underserved.
Dataset: 95% Group A, 5% Group B
A model that always predicts Group A results can achieve 95% accuracy while completely failing Group B.
Group A: 80%
Group B: 15%
Group C: 5%
If Group C is 5% of the dataset but 20% of real users, the model will underperform for that group.
Group A: 94%
Group B: 89%
Group C: 62%
The large gap for Group C indicates potential bias that should be investigated.
A speech recognition dataset should include:
Fraud detection example: Non-fraud 99%, Fraud 1%
Have multiple people label the same data independently and check for agreement before using the labels for training.
Zip code may correlate with race or income. Using zip code as a feature can introduce bias even if race is not explicitly included in the data.
Hiring — Models may deprioritize candidates from certain groups based on historical patterns
Healthcare — Models trained on limited demographics may be less accurate for others
Finance — Loan models may perpetuate past discriminatory lending patterns
Education — Scoring models may produce lower results for certain student groups
Facial Recognition — Some systems have much higher error rates for people with darker skin tones
A recommendation model is monitored monthly to check whether some user groups receive less relevant recommendations over time.
If disparities grow, the model may need to be retrained on more balanced data.
Ask the AI if you need help understanding types of data bias, how to detect bias, or what steps can reduce unfairness in machine learning systems.