Skip to main content
QUICK REVIEW

[Paper Review] Fast Threshold Tests for Detecting Discrimination

Emma Pierson, Sam Corbett‐Davies|arXiv (Cornell University)|Feb 27, 2017
Statistical Methods and InferenceMathematics26 references16 citations
TL;DR

This paper introduces discriminant distributions—a computationally efficient family of continuous distributions on [0,1]—to accelerate Bayesian inference in threshold tests for detecting discrimination. By replacing beta distributions with discriminant distributions in the threshold test model, the authors achieve a 75x+ speedup in inference, reducing computation from hours to minutes, enabling scalable analysis of large datasets like 2.7 million NYPD stops and a national traffic stop database of 22 million records.

ABSTRACT

Threshold tests have recently been proposed as a useful method for detecting bias in lending, hiring, and policing decisions. For example, in the case of credit extensions, these tests aim to estimate the bar for granting loans to white and minority applicants, with a higher inferred threshold for minorities indicative of discrimination. This technique, however, requires fitting a complex Bayesian latent variable model for which inference is often computationally challenging. Here we develop a method for fitting threshold tests that is two orders of magnitude faster than the existing approach, reducing computation from hours to minutes. To achieve these performance gains, we introduce and analyze a flexible family of probability distributions on the interval [0, 1] -- which we call discriminant distributions -- that is computationally efficient to work with. We demonstrate our technique by analyzing 2.7 million police stops of pedestrians in New York City.

Motivation & Objective

  • To address the computational intractability of fitting Bayesian latent variable models for threshold tests in discrimination detection.
  • To develop a flexible, computationally efficient family of distributions on [0,1] that enables fast inference in threshold tests.
  • To scale the threshold test to large datasets such as 2.7 million NYPD stops and 22 million national traffic stops.
  • To extend the threshold test to partially observed decisions, such as the decision to stop a pedestrian.
  • To improve accessibility of the threshold test for policy analysts with limited computational resources.

Proposed method

  • Introduce discriminant distributions—a subset of logit-normal mixture distributions—as a replacement for beta distributions in threshold tests.
  • Design discriminant distributions so that their cumulative distribution function (CDF) and conditional expectations are analytically tractable and computationally efficient.
  • Replace the expensive gradient evaluations of conditional beta distributions in Hamiltonian Monte Carlo (HMC) with faster operations using discriminant distributions.
  • Apply the modified threshold test to both observed decisions (e.g., search outcomes) and partially observed decisions (e.g., stop decisions) using Bayesian hierarchical modeling.
  • Use HMC inference with discriminant distributions to achieve full Bayesian posterior inference, improving model fit over variational approximation.
  • Validate performance via robustness checks, including varying assumptions about racial composition of pedestrians and posterior predictive checks.

Experimental results

Research questions

  • RQ1Can a new family of continuous distributions on [0,1] significantly accelerate Bayesian inference in threshold tests for detecting discrimination?
  • RQ2Does replacing beta distributions with discriminant distributions in the threshold test model maintain or improve model fit while reducing computation time?
  • RQ3Can the threshold test be extended to detect bias in decisions that are only partially observed, such as the decision to stop a pedestrian?
  • RQ4How stable are inferred thresholds to assumptions about the racial composition of pedestrians in a precinct?
  • RQ5Can the accelerated method be applied to national-scale datasets previously infeasible to analyze with the original threshold test?

Key findings

  • The discriminant distribution model reduced inference time by 77x compared to the original beta-based model, cutting fit time from 15,943 seconds to 208 seconds for the stop model.
  • The speedup enabled running the threshold test nearly 100 times for robustness checks—equivalent to two months of serial computation under the original method—within less than one day using the new approach.
  • The model achieved a 75-fold speedup in sampling efficiency, with 84x faster sampling per effective sample and 37x faster integration steps.
  • Robustness checks showed that inferred thresholds for Black and Hispanic pedestrians remained consistently lower than for White pedestrians across varying assumptions about racial composition, with thresholds for Blacks at 0.8–1.2% and Hispanics at 1.8–2.1% compared to 5.7–6.1% for Whites.
  • HMC with discriminant distributions yielded significantly better model fit than variational inference with beta distributions, with 4x lower RMSE for stop rates (0.2% vs. 0.9%) and 2x lower RMSE for hit rates (0.7% vs. 1.3%).
  • The method enabled fitting a single national model on 22 million traffic stops in 30 minutes, a task previously requiring state-level data splitting due to computational limits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.