012 min
Algorithmic bias in a hospital risk score
Picture a hospital system with a care-management program. The program gives extra nurse visits and appointment help to patients with complex health needs. It has a limited number of places, so a risk score ranks the patients and the highest scores are invited first.
In 2019 Ziad Obermeyer, Brian Powers, Christine Vogeli and Sendhil Mullainathan studied a widely used commercial score of this kind. They compared its scores with how ill patients really were. At the same risk score, Black patients were sicker than White patients. The authors estimated that this cut the number of Black patients picked for extra care by more than half.
The score was not trained to predict illness. It was trained to predict how much each patient would cost the health system. Cost looks like a sensible stand-in for need, because ill people usually use more care. A stand-in like this is called a proxy: a quantity that is easy to measure, used in place of one that is hard to measure. But access to care was unequal. The system had spent less on Black patients with the same level of need, so the score ranked them as healthier than White patients who were equally sick.
Nobody in this story chose to treat patients unequally. The unequal result came from one design choice about what to predict. This pattern is why researchers study algorithmic bias: a system that turns data about people into decisions about them can pass a gap in the data on to the decision.
021 min
Where the idea of algorithmic bias comes from
Computer scientists wrote about biased software long before machine learning was common. In 1996 Batya Friedman and Helen Nissenbaum sorted bias in computer systems into three kinds. Pre-existing bias comes from society and is present before anyone writes the software. Technical bias comes from the limits of hardware, software and design choices. Emergent bias appears when a system meets users and settings its designers did not expect. The hospital score fits the first kind: the unequal spending existed before the model did.
032 min
How algorithmic bias enters a system
The hospital score shows one entry point for bias. A machine-learning model is built in stages, and each stage has its own.
Data that records the past
A model learns from training data, a set of past examples. If the examples record decisions made with a bias, the model learns to repeat them. If some groups appear rarely, the model has less to learn from for those groups and makes more errors on them.
A target that stands in for the real goal
The hospital's cost target is the clear case. The same problem appears with other stand-ins: arrests instead of crimes, clicks instead of interest, past hiring decisions instead of job performance. Each one records what a system or its users did, and that can differ between groups for reasons unrelated to the real goal.
Inputs that carry the group by another route
A model can be forbidden to use a protected attribute such as race or gender and still reproduce it. A postal code, a first name or a purchase history may track the attribute, so the model rebuilds it from other columns. Removing a column does not remove the pattern.
A test that averages over everyone
Teams usually judge a model by one overall accuracy figure. A group that is a small share of the test data barely moves that figure, so a poor result for that group can go unseen. A face-analysis audit made this visible.
042 min
Algorithmic bias in face analysis
In 2018 Joy Buolamwini and Timnit Gebru tested three commercial systems that guess a person's gender from a face photo. First they checked two public image sets that such systems are often measured on. Lighter-skinned people made up 79.6 percent of one set and 86.2 percent of the other.
A system can score well on sets like these and still fail on people the sets barely include. So the team built a new set, balanced by gender and skin type, and ran the three systems again. Darker-skinned women had the highest error rate on every system, between 20.8 and 34.7 percent. The error rate for lighter-skinned men was never above 0.8 percent.
The gap that single categories hide
The gap between darker-skinned women and lighter-skinned men was larger than the gap for gender alone or for skin type alone. Across the three systems, men and women differed by 8.1 to 20.6 points of error rate, and lighter and darker faces by 11.8 to 19.2 points. A report that split results only one way would have shown a milder problem.
What happened after the audit
Inioluwa Deborah Raji and Buolamwini went back to the three companies in 2019. Within seven months of the audit, all three companies had released new versions of their systems. Every one of them narrowed the accuracy gaps between men and women and between lighter and darker skin. The largest gain was for darker-skinned women, whose error fell by 17.7 to 30.4 percent between audit periods.
Companies nobody had audited
The same study also tested Amazon and Kairos, which had not been named in the first audit. Both still lagged behind the three audited companies, with error rates of 31.37 and 22.50 percent for darker-skinned women. Naming the problem in public had changed the companies that were named.
051 min
Algorithmic bias that grows after launch
Some bias is not in the first version of a system. It builds up after launch, once the system's own decisions become its next data. Predictive policing shows the pattern.
A predictive policing system reads recorded incidents and sends officers to the neighborhoods with the most records. Officers sent to a neighborhood record more incidents there, and the system reads those records as proof that it should send them again. Neighborhoods that nobody visits produce no new records, so the system never gets a chance to learn it was wrong about them. This is a feedback loop, a process whose output returns as its input.
Danielle Ensign and colleagues built a mathematical model of this process in 2017. Their model shows why such a system keeps sending police back to the same neighborhoods, whatever the true crime rate is.
How the loop was broken in the model
The same paper also tested a remedy that leaves the predictive system itself unchanged. The team changed which data the system receives. In their model the loop then stopped, and the system could learn the true crime rate.
061 min
Algorithmic bias in who sees what
Bias also appears in systems that choose what to show people. Two studies show two routes.
Ad delivery that optimizes toward a skew
An advertiser can set targeting to include everyone, and the platform still decides who actually sees the ad. Muhammad Ali and colleagues studied this delivery step in 2019. They showed that Facebook's ad delivery skews who sees an ad, partly because of price effects in the ad market and partly because of the platform's own predictions about which ads suit which users. The skew appeared even when advertisers set their targeting to be highly inclusive. So an advertiser with fair settings can still get a skewed audience, because the cause sits in the platform's optimization.
Search ads that depend on a name
Latanya Sweeney searched for people's names on two websites in 2013 and recorded which ads appeared. On one site, names given mostly to Black babies produced arrest-related ads in 81 to 86 percent of searches, and on the other site in 92 to 95 percent. The ads appeared whether or not the named person had an arrest record in the advertiser's database.
072 min
Why algorithmic bias has no single fix
Suppose the hospital rebuilds its score. It must then decide what counts as fair, and the criminal justice system shows why that is hard.
In 2016 ProPublica examined COMPAS, a risk score made by Northpointe to predict whether defendants will commit new crimes. It followed more than 7,000 people arrested in Broward County, Florida, in 2013 and 2014. ProPublica reported that the formula wrongly flagged Black defendants as future criminals at almost twice the rate it did for White defendants. Northpointe replied that the score met a different test of fairness: a given score meant the same chance of reoffending in each group.
Both tests sound reasonable. In 2016 Jon Kleinberg, Sendhil Mullainathan and Manish Raghavan formalized three fairness conditions for risk scores. They proved that, apart from highly constrained special cases, no method can satisfy all three conditions at the same time.
| Condition | The question it asks |
|---|---|
| Calibration within groups | Does a given score mean the same chance of the outcome in every group? |
| Balance for those who had the outcome | Do those people get the same average score in every group? |
| Balance for those who did not | Do those people get the same average score in every group? |
The special cases are groups with equal outcome rates, or perfect prediction. Real data rarely has either. So a team cannot ask for a fair model and stop there. It has to choose which error to keep equal across groups, and say why. That choice is a decision about people, not a software setting.
082 min
Three misreadings of algorithmic bias
Once a team finds bias in a tool, three conclusions are common. Each fails for a reason that studies can show.
Misreading: people should decide instead
People are biased too, and some studies compare the two directly. In a 2017 study of bail decisions, Jon Kleinberg and colleagues estimated that a prediction model could cut the jail population by 42 percent with no rise in crime. That is a simulation, not a deployed system, but it shows the choice is not between a biased tool and a neutral person. The question is which process makes fewer harmful errors, and for whom.
Misreading: a complex tool must be more accurate
Julia Dressel and Hany Farid reported in 2018 that online volunteers with no criminal justice training predicted reoffending about as accurately and fairly as COMPAS did. A classifier that used only two inputs, a person's age and number of previous convictions, matched COMPAS as well, although COMPAS uses 137 inputs. Cost, secrecy and complexity do not show that a tool is accurate or fair. Only a comparison on real outcomes does.
Misreading: the data shows what would have happened
In bail data, the judge's decision decides which outcomes can be seen. Crime outcomes are observed only for defendants who were released, not for those the judges detained. A model trained on those records says little about the people who were held. Any claim about how it would treat them rests on assumptions.
091 min
What algorithmic bias means for your work
Algorithmic bias changes a different decision for each role.
- Product managers decide what the model predicts. Ask what the label really measures, and whether it measures the same thing for every group. Write the per-group results you need to see into the launch criteria.
- Designers decide how a score appears. A single confident number invites people to follow it, which is automation bias: the tendency to trust automated advice over one's own judgment. Show uncertainty, and give people a way to question a result.
- Engineers decide how the model is tested. Report results for each group and for combinations of groups, check which inputs act as proxies, and keep logging outcomes after launch so a loop like the policing one becomes visible.
- Founders decide where the risk sits. Rules are starting to follow: Article 10 of the EU's AI Act, adopted in 2024, requires providers of high-risk systems to examine their data for possible biases and to take measures to detect, prevent and reduce them. Ask vendors what they tested and on whom.
101 min
Checking for algorithmic bias
Say the hospital's data team rebuilds the score. They start by writing down what the score is for: finding patients who will benefit from extra care. Then they ask whether the target measures that. Obermeyer's team found that changing the target away from cost removes the bias in who is picked for extra care.
Next the team compares the new scores with patients' actual health, group by group, before anyone is enrolled. They decide who may overrule a score and how a patient can ask for a second look. After launch they repeat the comparison on a schedule, because patients, clinics and data all change.
| Stage | What to compare |
|---|---|
| Target | What the label measures, and whether it measures the same for every group |
| Test | Error rates for each group and for combinations of groups |
| Use | Who follows the score, who can overrule it, and how a person can appeal |
| After launch | Outcomes by group, repeated on a schedule |
111 min
What fixing algorithmic bias cannot do
An audit shows that a gap exists. It does not show why. The hospital's gap was found by comparing the score with a direct measure of illness, which most teams do not have for their own systems. Without one, a gap in results can have causes inside and outside the model.
Fixing the model also leaves the world as it was. The hospital's score ranked Black patients lower because less money had been spent on their care. A better score does not close that access gap.
Small groups give noisy numbers. When a group has few examples, a measured error rate can change a lot from one sample to the next. A team may then see a gap that is not there or miss one that is.
121 min
Algorithmic bias vs. nearby concepts
The deciding question is who bears the errors. If a system's mistakes fall more often on one group of people than another, the problem is algorithmic bias, whatever else the word bias means in other fields.
| Term | What it describes | How it differs |
|---|---|---|
| Statistical bias | A model whose average prediction is off from the true value; see the bias-variance tradeoff | Measured for everyone together. A model can have low statistical bias and still err more for one group |
| Cognitive bias | A systematic error in a person's judgment | Lives in a mind, not a system. A person's bias can be recorded in the data the model learns from |
| Automation bias | People trusting automated advice too much | A human habit that can multiply a system's bias |
| Fairness | The standard a system is held to, with several definitions | Fairness is the goal. Algorithmic bias is a measured departure from it |
?4 questions
Questions people ask
Does algorithmic bias mean someone meant to discriminate?
Can more data fix algorithmic bias?
Is algorithmic bias only about race and gender?
Can a system be made completely free of bias?
§13 sources
Sources
Show all 13 sourcesHide sources
Obermeyer, Z., Powers, B., Vogeli, C. and Mullainathan, S. (2019). Dissecting racial bias in an algorithm used to manage the health of populations. Science 366(6464), 447-453 . . Open copy
Buolamwini, J. and Gebru, T. (2018). Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification. Proceedings of Machine Learning Research 81, 77-91
Raji, I. D. and Buolamwini, J. (2019). Actionable Auditing: Investigating the Impact of Publicly Naming Biased Performance Results of Commercial AI Products. AIES 2019
Angwin, J., Larson, J., Mattu, S. and Kirchner, L. (2016). Machine Bias. ProPublica
Kleinberg, J., Mullainathan, S. and Raghavan, M. (2016). Inherent Trade-Offs in the Fair Determination of Risk Scores. arXiv:1609.05807
Ensign, D., Friedler, S. A., Neville, S., Scheidegger, C. and Venkatasubramanian, S. (2017). Runaway Feedback Loops in Predictive Policing. arXiv:1706.09847
Ali, M., Sapiezynski, P., Bogen, M., Korolova, A., Mislove, A. and Rieke, A. (2019). Discrimination through optimization: How Facebook's ad delivery can lead to skewed outcomes. arXiv:1904.02095
Sweeney, L. (2013). Discrimination in Online Ad Delivery. arXiv:1301.6822
Kleinberg, J., Lakkaraju, H., Leskovec, J., Ludwig, J. and Mullainathan, S. (2017). Human Decisions and Machine Predictions. NBER Working Paper 23180
Dressel, J. and Farid, H. (2018). The accuracy, fairness, and limits of predicting recidivism. Science Advances 4(1)
European Union (2024). Artificial Intelligence Act, Article 10, data and data governance
Friedman, B. and Nissenbaum, H. (1996). Bias in computer systems. ACM Transactions on Information Systems 14(3), 330-347
The 1996 Friedman and Nissenbaum paper blocks automated requests, so it is confirmed only by its publisher record.





