42.1 Bias Types
| Bias Type | Example | Impact | Mitigation |
|---|---|---|---|
| Demographic | Model predicts higher risk for minority groups | Discriminatory outcomes | Stratified evaluation by demographics |
| Socioeconomic | Model deprioritizes low-value cases | Underserves vulnerable populations | Fairness constraints in training |
| Historical | Trained on biased historical data | Perpetuates past inequities | Bias-aware training techniques |
| Institutional/Payer | Over-optimizes for one segment | Neglects others | Balanced training across segments |
42.2 Fairness Metrics
| Metric | Definition | When to Use |
|---|---|---|
| Demographic parity | Same prediction rate across groups | Outcome should be independent of group |
| Equal opportunity | Same true positive rate across groups | Catching positives equally matters |
| Predictive parity | Same precision across groups | Prediction accuracy should be equal |
| Calibration | Predicted probabilities match actual rates per group | General fairness assessment |
42.3 Bias Detection Pipeline
Model Predictions
│
▼
Segment by protected attributes (age, gender, race, geography, tier)
│
▼
Calculate fairness metrics per segment
│
▼
Compare across segments
├── Disparity < threshold → Pass
└── Disparity > threshold → Alert + investigate
Wire this into CI/CD (see Part 100.3) as a mandatory gate — model deployments should not reach production without passing a fairness check.
42.4 Q&A
Q: How would you handle a situation where your AI model shows bias against certain demographics in production?
- Immediate: increase human oversight for the affected demographic; stop auto-approving AI decisions for that group.
- Investigation: check if the demographic is underrepresented in training data or if historical data itself is biased; run fairness metrics segmented by the affected group.
- Mitigation options: re-balance training data (oversample underrepresented groups); add fairness constraints to training; post-processing calibration per group; separate models per demographic if appropriate; additional human review for flagged demographics.
- Prevention: fairness metrics as a CI/CD gate — every deployment must pass fairness tests across demographics before production approval.