How propublica/compas-analysis works
This repository packages data and analysis for ProPublica’s COMPAS recidivism investigation. The principal workflow is an analyst following the Jupyter analysis against the supplied defendant and risk-score data; a separate Python utility groups parsed records by person, filters them to two-year populations, and writes analysis-ready CSVs. The README identifies the notebook, SQLite database, and investigation, but the notebook itself was not excerpted, so its internal analysis steps and data connections cannot be verified here.
Main entry points: truth_tables.py Two-year preparation · cox-parsed.csv Parsed Cox records · Compas Analysis.ipynb COMPAS analysis · compas-scores-two-years.csv Two-year scores
Components 10
Analysis
- COMPAS analysis
Compas Analysis.ipynb
Data preparation
- Two-year preparation
truth_tables.py
Research data
- Defendant database
compas.db - Parsed Cox records
cox-parsed.csv - Parsed violent records
cox-violent-parsed.csv - Raw COMPAS scores
compas-scores-raw.csv - COMPAS scores
compas-scores.csv - Two-year scores
compas-scores-two-years.csv - Two-year violent scores
compas-scores-two-years-violent.csv
Other components
- Analyst
Connections 4
- Analyst → COMPAS analysis: follows
README - Parsed Cox records → Two-year preparation: reads
truth_tables.py - Two-year preparation → Two-year scores: writes
truth_tables.py - Two-year preparation → Two-year violent scores: writes
truth_tables.py