01 / 21

Algorithmic Bias
& Fairness

Explore how automated decision-making can embed injustice, and learn the ethical frameworks philosophers use to evaluate algorithmic systems.

Philosophy

What Is an Algorithm?

An algorithm is a step-by-step procedure for solving a problem or making a decision. In the digital age, algorithms process data to produce outputs: loan approvals, news feeds, hiring recommendations, and criminal risk scores.

Input Data Algorithm Decision feeds produces

Defining Algorithmic Bias

Algorithmic bias occurs when an automated system produces results that are systematically unfair to particular groups of people: by race, gender, socioeconomic status, or other protected categories.

Training Data Bias
Historical data reflects past discrimination: a hiring model trained on a company's history may penalize female applicants.
Design Bias
Developers choose which features to include and what to optimize: these choices embed values into the system.
Feedback Loop Bias
Biased outputs become new inputs: predictive policing sends more officers to surveilled neighborhoods, generating more arrests.

Why Fairness Matters

Algorithmic decisions now govern high-stakes domains: who gets a loan, who is released on bail, which students receive scholarships. When these systems embed bias, they can scale injustice to millions of people at computational speed.

Biased Algorithm Criminal Justice Lending Hiring Healthcare

Three Ethical Frameworks

Philosophers evaluate algorithmic fairness through multiple lenses. Each framework asks a different fundamental question about what makes a system just or unjust.

Deontological
Does the algorithm respect rights and treat individuals as ends in themselves, not merely as data points? (Kant)
Consequentialist
Does the algorithm maximize overall well-being while minimizing harm across all affected groups? (Mill)
Justice-Based
Would this algorithm be chosen from behind a veil of ignorance, not knowing which group you belong to? (Rawls)

Formalizing Fairness

Computer scientists have tried to translate philosophical intuitions into mathematical definitions. Two major fairness criteria are:

Demographic Parity
The positive outcome rate should be equal across groups: \( P(\hat{Y}=1 \mid A=0) = P(\hat{Y}=1 \mid A=1) \)
Equal Opportunity
Among those who truly deserve the outcome, the true positive rate should be equal: \( P(\hat{Y}=1 \mid Y=1, A=0) = P(\hat{Y}=1 \mid Y=1, A=1) \)

The Impossibility Theorem

A landmark result in fairness research shows that when base rates differ between groups, you cannot simultaneously satisfy multiple fairness definitions. This is analogous to Arrow's impossibility theorem in social choice theory.

Demographic Parity Equal Opportunity Predictive Parity ✕ ✕ ✕

Bias vs. Discrimination

These terms are often confused but carry importantly different meanings in philosophical analysis.

Bias Discrimination
Definition A systematic deviation from accuracy or neutrality Differential treatment based on group membership
Nature Can be statistical or cognitive: not always morally wrong Always involves moral evaluation: can be just or unjust
Example A model under-predicts risk for one group A policy denies loans to a racial group
Key Question Is the system accurate? Is the treatment justified?

How to Evaluate an Algorithm

1
Identify the stakeholders. Who is affected by the algorithm's decisions, and how are benefits and burdens distributed?
2
Examine the training data. Does the data reflect historical inequalities that could be perpetuated?
3
Choose a fairness criterion. Which definition of fairness aligns with the moral values at stake in this context?
4
Apply an ethical framework. Evaluate the system through deontological, consequentialist, and justice-based lenses.
5
Consider accountability. Who is responsible when the algorithm causes harm, and what remedies exist?

Case Study: COMPAS

The COMPAS system was used by U.S. courts to predict whether defendants would re-offend. A ProPublica investigation found that it falsely labeled Black defendants as high-risk at nearly twice the rate of white defendants.

44.9% Black 23.5% White False Positive Rate

Case Study: Hiring AI

A major tech company built a resume-screening algorithm trained on 10 years of hiring data. Because the company had historically hired mostly men, the algorithm learned to penalize resumes that mentioned women's colleges or women's organizations.

1
Stakeholders: Job applicants (especially women), the company, and the broader labor market.
2
Data problem: Training data reflected a decade of gender-biased hiring decisions.
3
Deontological critique: The system treated women as means to the company's optimization goal, not as autonomous agents deserving equal consideration.

Case Study: Healthcare Allocation

A widely used healthcare algorithm assigned risk scores to patients to determine who needed extra care. Researchers discovered it used healthcare spending as a proxy for health needs.

Health Need Healthcare Spending Algorithm Score Unequal access to care distorts this proxy

Rawls and the Veil of Ignorance

John Rawls proposed a thought experiment: imagine you are designing a society without knowing your place in it. Would you accept an algorithm that benefits the majority but harms a minority?

Veil of Ignorance ? Unknown Identity ? Unknown Identity Fair Algorithm Biased Algorithm

Transparency and Accountability

Many algorithms operate as "black boxes": their internal logic is opaque even to their creators. This raises deep philosophical questions about moral responsibility.

Epistemic Problem
If no one understands how the algorithm decides, can anyone be held responsible for its decisions?
Responsibility Gap
Developers say: "The data decided." Users say: "The machine decided." This creates a diffusion of accountability.

Common Mistakes

✕ Assuming Neutrality
Believing that because a decision is made by a machine, it must be objective. Algorithms reflect the values of their creators and data.
✕ Single-Framework Analysis
Evaluating fairness through only one ethical lens. Robust analysis requires multiple frameworks to reveal different dimensions of injustice.
✕ Conflating Fairness Criteria
Treating "demographic parity" and "equal opportunity" as interchangeable. They are distinct and often incompatible mathematical definitions.

Summary: Frameworks at a Glance

Framework Core Question Strength Limitation
Deontological Are rights respected? Protects individuals May ignore outcomes
Consequentialist Is overall welfare maximized? Considers all effects May sacrifice minorities
Rawlsian Justice Does it benefit the worst-off? Centers the vulnerable Hard to operationalize

Question 1 of 5

A criminal risk algorithm has equal accuracy for all racial groups, but its false positive rate is significantly higher for one group. Which fairness criterion does it violate?

Question 2 of 5

A philosopher argues that an algorithm is unjust because no rational person would accept it if they didn't know which group they belonged to. Which ethical framework is this philosopher using?

Question 3 of 5

The impossibility theorem in algorithmic fairness is significant because it shows that:

Question 4 of 5

Which best describes the core disagreement between Position A and Position B?

Question 5 of 5

A company's hiring AI penalizes resumes from women's colleges. A Kantian critique of this system would most likely argue that: