Skip to main content
v2026.11,986 entries · CC-BY 4.0

Stanford Open Policing Project: Data, Methods and How to Cite It

What the Stanford Open Policing Project data contain, how its outcome and threshold tests work, coverage limits, license and how to cite it.

Written and maintained by CASRAI Editorial Board

Published

On this page

The Stanford Open Policing Project is an interdisciplinary effort by Stanford researchers and journalists to collect, standardize and freely release records of police vehicle and pedestrian stops in the United States. Its stop files, released under the Open Data Commons Attribution License, cover locations in 42 states, and the project reports more than 200 million standardized records. For a researcher the practical questions are what the files contain, how uneven the coverage is, which statistical tests the project applies to them, and how to cite the work.

What the Stanford Open Policing Project is

The project is a partnership between the Stanford Computational Journalism Lab and the Stanford Computational Policy Lab, supported by the Knight Foundation. Its stated purpose is to make police stop data comparable across agencies. Stop records sit in thousands of separate departmental systems, and the project says it began requesting traffic stop data from states in 2015. It describes its main obstacles as states that do not collect drivers’ demographic information, states that collect it but do not release it, and wide variation in how states track and process what they do keep. The project’s web-search description also names an earlier title for the work, Law, Order and Algorithms.

The standardization is the contribution: the same field names and codes are applied to records from different agencies, so an analyst can compare a state patrol in one state with a city department in another. The processing code is public in the project’s GitHub repository (stanford-policylab/opp), which lets other researchers inspect how raw agency files were turned into the released ones.

What the data contain

The project’s data page lists a common set of fields across the files: stop date, stop time and stop location; driver race, sex and age; whether a search was conducted and whether contraband was found; whether a citation or a warning was issued; whether a frisk was performed or an arrest made; and the reason for the stop and the violation. Some locations carry additional fields, and the project documents the reasons in each location’s README. The data table below groups these fields and shows which of them feed the project’s analyses.

Every location is available as zipped CSV and as RDS (the R serialization format); shapefiles are offered for some locations. The project notes that many files are too large to open in Excel, so a scripting environment is the realistic route. Before analysis, read the README for the location you are using: the project urges users to review the location-specific details first.

Coverage and data quality

Coverage is not uniform, and the files should not be treated as a census of US policing. The data page gives two examples of how different the files are: St. Petersburg, Florida covers January to July 2010, while Texas statewide covers 2006 to 2017. Some files include stops by a local jurisdiction or pedestrian stops, which the page flags in footnotes. The table of locations also indicates whether data are available for at least 70% of records in that location, and an analyst should check that flag for every field they rely on, because a field that is missing for many records (race, for instance) cannot support a disparity estimate.

The project’s findings page states which part of the collection is good enough for formal inference: data from 21 state patrol agencies and 29 municipal police departments, comprising nearly 100 million stops, are detailed enough for rigorous statistical analysis. That subset, not the full 200-million-record headline, underlies the main published analyses. For wider context on the limits of administrative crime and enforcement records, see the CASRAI guides on crime data and the dark figure of crime.

How the project tests for disparities

The project’s findings page separates three questions: who is stopped, who is searched once stopped, and whether the search standard differs by race. Each question has a different method and a different stated weakness.

Stop rates

Officers generally stop Black drivers at higher rates than white drivers and stop Hispanic drivers at similar or lower rates, and the patterns persist after controlling for age and gender. The project itself cautions that stop rates are hard to interpret, because driving behavior, time on the road and the local population may not match the population of people who drive through an area, especially on highways. The peer-reviewed paper addresses this with a veil-of-darkness comparison, in which it finds that Black drivers were less likely to be stopped after sunset, when darkness masks the driver’s race.

Search rates and the outcome test

In nearly every jurisdiction, stopped Black and Hispanic drivers are searched more often than stopped white drivers. The project says this alone does not prove discrimination, since higher search rates could reflect effective policing if minority drivers carried contraband at higher rates. The outcome test, which the project attributes to Gary Becker in the 1950s, looks at the hit rate: if officers do not discriminate, contraband should turn up at the same rate on searched minority and white drivers. In the project’s data the hit rate is generally lower for Hispanic drivers than for white drivers, which the test reads as discrimination against Hispanic drivers, while Black hit rates are typically in line with white hit rates.

The project is explicit that the outcome test can fail to detect discrimination when it is there and can indicate discrimination when it is not. It illustrates the second failure with a hypothetical in which a fair officer applies the same 10% suspicion threshold to everyone, yet white drivers’ hit rate is 75% and Black drivers’ hit rate is 50%, because the underlying distribution of suspicion differs between the two groups. The hit rates differ and the officer’s standard does not, so the gap in hit rates is not evidence of unequal treatment on its own.

The threshold test

The threshold test builds on Becker’s idea. It combines search rates and hit rates to infer the evidentiary standard an officer applies before searching. Using it, the project reports that police require less suspicion to search Black and Hispanic drivers than white drivers, which it describes as evidence of discrimination. It also states the main limit: if officers suspect more serious criminal activity when they search Black and Hispanic drivers, lower thresholds could have non-discriminatory causes, and the results are one step in understanding complex police interactions.

Reported findings and the marijuana legalization analysis

The Nature Human Behaviour paper analysed nearly 100 million traffic stops. Its abstract reports that the bar for searching Black and Hispanic drivers was lower than for white drivers, and that legalization of recreational marijuana reduced the number of searches of white, Black and Hispanic drivers, though the bar for searching Black and Hispanic drivers remained lower than the bar for white drivers after legalization. The findings page adds the detail for Colorado and Washington: search rates fell sharply after legalization because many searches are drug-related, the analysis excludes searches after an arrest and other searches done as a procedural matter, and the racial disparities in searches and the gap in search thresholds persisted. In twelve states where marijuana remains illegal (Arizona, California, Florida, Massachusetts, Montana, North Carolina, Ohio, Rhode Island, South Carolina, Texas, Vermont and Wisconsin) search rates remained high.

The project states two caveats of its own: racial disparities can stem from differences in driving behavior and not only from bias, and neither test is conclusive. Researchers who reuse the data should carry those caveats into their own limitations sections. For the wider field, see what criminal justice research covers.

Which question needs which fields

Because the files are standardized, the fields you need decide which analyses a location can support. This table maps the project’s own common fields to the questions on its findings page. It is a reading aid, not a substitute for the location README.

Question Fields it needs If the field is mostly missing
Who is stopped, and when Stop date, stop time, stop location, driver race Stop-rate and veil-of-darkness comparisons cannot be run
Who is searched once stopped Driver race, search conducted Search-rate comparisons are unreliable
Do searches succeed (hit rate) Search conducted, contraband found Outcome and threshold tests cannot be run
What happens after the stop Citation issued, warning issued, frisk performed, arrest made Outcome comparisons are limited to the fields that are present

Common mistakes when reusing the data

Treating the headline record count as the analysis sample is the first mistake: the project says its subset of 21 state patrol agencies and 29 municipal departments, of nearly 100 million stops is the part detailed enough for rigorous analysis. A second is comparing locations without regard to period, since files span very different years. A third is reading a gap in hit rates as proof of bias, which the project’s own 10% threshold hypothetical shows can mislead. In that example everyone faces the same standard, but if the white drivers searched are, on average, much more suspicious than the Black drivers searched, a single standard still produces different hit rates. This is why the project built the threshold test, which models the standard itself using search and hit rates together.

A fourth mistake is ignoring what a record measures. A stop is an officer decision, so stop data describe policing activity, not the underlying population of drivers or offenders. The project states this directly when it cautions that stop rates are hard to interpret. A fifth is dropping the stop type: some files include pedestrian stops or a local jurisdiction, which the data page flags in footnotes.

What to report when you use it

A reader should be able to reproduce your sample. State the location files used, the period each covers, the date you downloaded them, the share of records with each field you analysed, and any exclusions such as the procedural and post-arrest searches the project excludes in its marijuana analysis. Cite the paper as requested below and, for the processing code, the project’s GitHub repository (stanford-policylab/opp).

Loading and checking the files

These snippets read one location file and test the 70% rule for a chosen field. File names follow the project’s per-location downloads; check the exact name in the README.

d = readRDS("location_file.rds")mean(!is.na(d$subject_race))   # share of records with race recordedtable(d$subject_race, useNA = "ifany")
import pandas as pdd = pd.read_csv("location_file.csv", low_memory=False)print(d["subject_race"].notna().mean())   # share of records with race recordedprint(d["subject_race"].value_counts(dropna=False))

The column name subject_race is an assumption of this example; confirm the exact column names in the location’s README before use. A share well below 0.70 means the location’s disparity estimates deserve extra scrutiny.

License and how to cite the project

The data are released under the Open Data Commons Attribution License, which requires attribution. The project asks users to cite the following paper: Pierson, E., Simoiu, C., Overgoor, J., Corbett-Davies, S., Jenson, D., Shoemaker, A., Ramachandran, V., Barghouty, P., Phillips, C., Shroff, R., and Goel, S. (2020). A large-scale analysis of racial disparities in police stops across the United States. Nature Human Behaviour, 4, 736-745. Also state which location files you used and the date you downloaded them, since coverage and file contents differ by location.

Sources

Data: Analyses the Stanford Open Policing Project applies to stop data, with inputs, reading and stated limits

Cross-walk of the analyses reported by the Stanford Open Policing Project and its Nature Human Behaviour paper: the data fields each analysis uses, what the analysis reads as a signal, and the limitation the project or paper states. Compiled by CASRAI from the project's Data and Findings pages and the paper abstract.

Period covered: 2006/2017. Coverage: United States.

Analyses the Stanford Open Policing Project applies to stop data, with inputs, reading and stated limits
AnalysisData fields usedWhat it reads as a signalStated limitation
Stop rate comparisonStop date, stop time, stop location, driver race, sex, ageBlack drivers stopped at higher rates than white drivers; Hispanic drivers at similar or lower ratesHard to interpret: driving behavior, time on the road and local population may not match who drives through an area
Veil of darknessStop date, stop time, stop location, driver raceBlack drivers less likely to be stopped after sunset, when darkness masks raceDescribed in the paper abstract; the project findings page does not discuss it
Search rate comparisonDriver race, search conductedStopped Black and Hispanic drivers searched more often than white drivers in nearly every jurisdictionHigher search rates alone do not prove discrimination
Outcome testDriver race, search conducted, contraband foundLower hit rate for a group read as discrimination against that groupCan fail to detect discrimination and can indicate it when absent
Threshold testDriver race, search conducted, contraband foundLower inferred search threshold for Black and Hispanic drivers than white driversLower thresholds may have non-discriminatory causes if officers suspect more serious activity

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Stanford Open Policing Project: Data, Methods and How to Cite It

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →