A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

AI Ethics, Fairness, and Bias

Graduate Depth 82 in the knowledge graph ☐ I know this ☆ Set as goal
102topics build on this
398prerequisites beneath it
See this on the map →
Algorithm Design Basics→→Adversarial Examples and RobustnessFairness in Machine Learning
ethics fairness bias-mitigation

Core Idea

AI systems inherit biases from data, labels, and design, causing harms along protected attributes. Fairness definitions (demographic parity, equalized odds) conflict; no universal metric exists. Mitigation: dataset balancing, fairness constraints, debiasing. Regulatory frameworks are emerging.

How It's Best Learned

Audit a classifier for demographic bias, implement fairness constraints, and measure fairness-accuracy tradeoffs.

Common Misconceptions

Bias cannot be eliminated, only understood and mitigated. Fairness requires explicit measurement and involves trade-offs.

Explainer

When you build a classifier or recommendation system, you are encoding decisions that affect people — who gets a loan, who sees a job posting, who is flagged for additional screening. Algorithmic bias arises when these decisions systematically disadvantage groups defined by protected attributes like race, gender, age, or disability. The sources are rarely malicious intent. More often, bias enters through training data that reflects historical inequities (a hiring model trained on past decisions inherits past discrimination), through label definitions that embed contested value judgments (what counts as "creditworthy" depends on who defined the threshold), or through feature selection that serves as a proxy for protected attributes (zip code can proxy for race in many contexts).

The challenge deepens when you try to define fairness mathematically. Several competing definitions exist, and they are provably incompatible in most real-world settings. Demographic parity requires that the positive prediction rate be equal across groups — the same fraction of men and women should be approved for loans. Equalized odds requires that the true positive rate and false positive rate be equal across groups — the model should be equally accurate for everyone. Calibration requires that among all people given a 70% risk score, 70% actually default, regardless of group. Choquet's impossibility result shows that except in trivial cases, you cannot satisfy all three simultaneously. This means every fairness intervention involves a tradeoff, and choosing which definition to prioritize is an ethical and political decision, not a purely technical one.

Mitigation strategies operate at three stages. Pre-processing methods modify the training data — resampling to balance group representation, relabeling potentially biased labels, or learning fair representations that remove protected information while preserving predictive signal. In-processing methods add fairness constraints directly to the learning algorithm, such as penalizing disparate impact in the loss function or enforcing equalized odds as a constraint during optimization. Post-processing methods adjust the model's outputs after training, for example by choosing different classification thresholds for different groups to equalize false positive rates. Each approach has strengths and limitations: pre-processing is model-agnostic but may discard useful information; in-processing gives the tightest integration but requires modifying the training pipeline; post-processing is easy to implement but can feel like a patch rather than a fix.

Beyond technical mitigation, responsible AI practice requires institutional structures: bias audits that measure disparate impact before deployment, transparency mechanisms that allow affected individuals to understand and contest decisions, ongoing monitoring for distribution shift that can introduce new biases over time, and diverse teams whose varied perspectives catch blind spots that homogeneous groups miss. Regulatory frameworks like the EU AI Act are beginning to codify these requirements into law. The core lesson is that fairness is not a box to check once — it is a continuous process of measurement, deliberation, and adjustment that requires both technical skill and ethical reasoning.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Conditional Statements → Defining and Calling Functions → Functions: Decomposing Problems → Function Parameters and Argument Passing → Return Values → Variable Scope → Introduction to Classes → Objects and Instances → Methods and Attributes → Algorithm Design Basics → AI Ethics, Fairness, and Bias

Longest path: 83 steps · 398 total prerequisite topics

Prerequisites (1)

Leads To (2)