There is growing concern that the rise of algorithmic decision-making can lead to discrimination against legally protected groups, but measuring such algorithmic discrimination is often hampered by a fundamental selection challenge. We develop new quasi-experimental tools to overcome this challenge and measure algorithmic discrimination in the setting of pretrial bail decisions. We first show that the selection challenge reduces to the challenge of measuring four moments: the mean latent qualification of white and Black individuals and the race-specific covariance between qualification and the algorithm’s treatment recommendation. We then show how these four moments can be estimated by extrapolating quasi-experimental variation across as-good-as-randomly assigned decision-makers. Estimates from New York City show that a sophisticated machine learning algorithm discriminates against Black defendants, even though defendant race and ethnicity are not included in the training data. The algorithm recommends releasing white defendants before trial at an 8 percentage point (11 percent) higher rate than Black defendants with identical potential for pretrial misconduct, with this unwarranted disparity explaining 77 percent of the observed racial disparity in algorithmic recommendations. We find a similar level of algorithmic discrimination with regression-based recommendations, using a model inspired by a widely used pretrial risk assessment tool.

More on this topic

BFI Working Paper·Sep 14, 2026

(How) Do We Teach Emotions?

Anjali Adukia, Matthew Bonci, and Paula Dastres
Topics: Technology & Innovation
BFI Working Paper·Aug 27, 2026

Artificial Intelligence and Political Advice

Georgy Egorov and Konstantin Sonin
Topics: Technology & Innovation
BFI Working Paper·Aug 25, 2026

When the Middle Class Undermines Progress: The Political Economy of AI Regulation

Anna Denisenko and Konstantin Sonin
Topics: Technology & Innovation