Who Gets the Loan?
A fairness audit of mortgage lending in two parts. The first reworks the 1990 Boston study: the econometrics of the racial approval gap, and what a model trained without race does by race. The second joins 22 years of Virginia mortgage applications, 13 million records from three publishers and three formats, into one dataset. Results are associations after controlling for what the data record, with their limits stated first.
Read the brief
The problem
My econometrics course used the 1990 Boston data for one problem set: a few regressions of loan approval on race and finances. I wanted to know how far the answer moves with what you control for, whether a model that never sees race ends up treating applicants equally, and what today's public data for Virginia show over two decades.
What I built
- Boston, 1990: probit and logit models with marginal effects, an Oaxaca-Blinder decomposition, and race-blind models measured for demographic parity, equalized odds, calibration and proxies.
- Virginia, 2004-2025: readers for three eras of public mortgage data (National Archives fixed-width files, CFPB historic files, the CFPB's current API) feeding one schema, with one rule for groups, samples and geography, and every year's tracts mapped onto 2020 tracts.
- Denial-gap models with lender and county fixed effects, by year and by era, a tract map, and denial reasons by group.
What it found
In Virginia, Black applicants were denied more often than white applicants in all 22 years. Comparing applicants at the same lender with the underwriting fields reported since 2018, a 3.5-point home-purchase gap remains in 2018-2025. That fits discrimination but also things the data don't record, such as credit scores.
How I tested it
The course's models reproduce the instructor's Stata output to every printed digit. Every Virginia year from 2007 on matches the publisher's official record count exactly, the fixed-effects estimator is checked against a standard library, and every push reruns the tests before the site deploys.