AI vs bias

Eight investigations based on real cases. Find out why an AI treats people unfairly, then fix it and watch the model retrain. About this simulator

About this simulator and how it works

Free demo: level 1 (3 cases: the face ID check, the CV filter and the health referral tool). Levels 2 and 3 (credit cut-offs, the accuracy trap, the reoffending risk debate, a policing feedback loop and the 2020 exam grades) are in the full version.

Each case is an AI system making decisions about people, built on what went wrong in a real, published case. Open the evidence charts, work out the cause, then change the data, the target or the cut-offs and watch the results by group change. Every number comes from a model trained in your browser on a made-up population.

How it works

  • Investigate: each evidence button draws a chart comparing the two groups. Look at at least two before you answer.
  • Diagnose: pick the main cause. A wrong answer costs the "first time" star, and you can try again.
  • Fix: the controls change the training data, what the model learns to predict, or the decision cut-offs. The model retrains on the spot and the charts update, with a faint line showing where you started. Meet the targets and press Submit fix.
  • Stars: one for the right cause and a working fix, one for the right cause first time, one for no hints.

The fairness measures used

  • Selection rate: the share of a group that gets a "yes". The "four-fifths" rule of thumb comes from US employment guidelines: a group selected at less than 80% of the rate of the most-selected group is a warning sign. It is not UK law; in the UK the Equality Act 2010 makes direct and indirect discrimination unlawful whatever tool makes the decision.
  • True positive rate: of the people who deserve a "yes", how many get one. Equal true positive rates is called "equal opportunity".
  • False positive rate: of the people who deserve a "no", how many wrongly get a "yes" (or, in the reoffending case, a wrong "high risk" label).
  • Precision: of the people given a "yes", how many deserved it.
  • When two groups have different base rates, a model that is not perfect cannot make the false positive rate, the false negative rate and the precision equal for both at once. Chouldechova (2017) proved this, and Kleinberg, Mullainathan and Raghavan (2016) proved a closely related result for calibrated scores. Case 2.3 lets you see it happen.

The real cases behind the game

  • 1.1: Buolamwini and Gebru, "Gender Shades" (2018): commercial face-analysis systems misclassified the gender of darker-skinned women up to 34.7% of the time, against 0.8% for lighter-skinned men.
  • 1.2: Reuters (2018) reported that Amazon dropped an experimental CV-ranking tool after it learned to mark down CVs containing the word "women's".
  • 1.3: Obermeyer and others, Science (2019): a widely used US health algorithm predicted cost instead of illness, so Black patients had to be sicker than white patients to be flagged for extra care.
  • 2.3: ProPublica (2016) on the COMPAS reoffending tool, and the reply from its maker, Northpointe: both sides used different, incompatible fairness measures.
  • 3.1: Lum and Isaac, "To predict and serve?" (2016): a simulation of predictive policing on Oakland drug crime data.
  • 3.2: the 2020 grading algorithm used by Ofqual for A levels in England, withdrawn after results day in favour of centre assessment grades.

What is illustrative

The people in each case are made up: they are generated by a short formula built to reproduce the kind of problem found in the real case, not the real data or the real model. The models (logistic and linear regression) really are trained in your browser on that data, and every rate shown is counted from their decisions on separate test data. Real systems are bigger and messier, and real fixes are argued over for years, but the mechanisms you will see here are the ones the research describes.