Oak Park Crime Data Docs

Data quality

What is actually wrong with this dataset, rather than which checks were written. Generated from the same run that built the docs.

Incidents
23,081
one row per incident in fct_incidents
Tests passing
52
definitions sit on every column in the docs
Tests warning
2
deliberate flags, not regressions
Rows flagged
11%
2,478 distinct rows carry a defect, almost all the report-date artifact

The report date is not the occurrence date

Share of incidents whose PDF report date lands a day later than the dashboard's exact timestamp, by the hour the incident actually happened. The later it gets, the more often the report rolls into the next day.

evening and overnight0%20%40%60% 00:00 · 39.4% offset · 109 of 27701:00 · 15.6% offset · 20 of 12802:00 · 9.7% offset · 11 of 11303:00 · 12.7% offset · 10 of 7904:00 · 14.0% offset · 13 of 9305:00 · 13.5% offset · 12 of 8906:00 · 21.2% offset · 22 of 10407:00 · 16.2% offset · 31 of 19108:00 · 20.4% offset · 56 of 27409:00 · 19.3% offset · 48 of 24910:00 · 18.2% offset · 54 of 29711:00 · 16.6% offset · 48 of 28912:00 · 32.6% offset · 144 of 44213:00 · 18.6% offset · 67 of 36014:00 · 25.0% offset · 92 of 36815:00 · 33.0% offset · 138 of 41816:00 · 35.3% offset · 141 of 39917:00 · 45.9% offset · 189 of 41218:00 · 49.2% offset · 214 of 43519:00 · 53.7% offset · 195 of 36320:00 · 56.9% offset · 198 of 34821:00 · 63.6% offset · 192 of 30222:00 · 64.4% offset · 190 of 29523:00 · 65.5% offset · 127 of 19465% at 23:0013% at 03:000003060912151821 hour the incident actually occurred

Known defect classes

Actual defects only, measured on every run. Two are deliberate flags rather than regressions. Correct-but-surprising characteristics are kept out of this table on purpose; see dataset characteristics and geocoding below.

pdf_dashboard_date_mismatchPDF and dashboard disagree on the incident date by a day or more · 2,360 rows (10.22%)2,360complaint_collisionsOne complaint number on materially different incidents · 85 rows (0.37%)85republished_pdf_rowsSame incident ingested twice under a revised PDF filename · 76 rows (0.33%)76ungeocodedNo coordinates resolved · 19 rows (0.08%)19date_sentinelDate failed to parse and fell back to 1900-01-01 · 5 rows (0.02%)5date_futureIncident date is in the future · 2 rows (0.01%)2
IssueWhat it meansRowsShareOwner
pdf_dashboard_date_mismatchPDF and dashboard disagree on the incident date by a day or more2,36010.22%flagged in merge_notes, not repaired
complaint_collisionsOne complaint number on materially different incidents850.37%source data, flag only
republished_pdf_rowsSame incident ingested twice under a revised PDF filename760.33%ingest bug, fix in drop_exact_source_duplicates
ungeocodedNo coordinates resolved190.08%run a Python cache-fill
date_sentinelDate failed to parse and fell back to 1900-01-0150.02%source data, flag only
date_futureIncident date is in the future20.01%source data, poisons naive freshness checks

Dataset characteristics

Correct but worth knowing. None of these is a defect, which is why they are not in the table above.

MeasureWhat it isRowsShare
geocodedIncidents with coordinates resolved23,06299.92%
in_villageGeocoded inside one of the 8 policing zone polygons20,28287.87%
pdf_onlyPresent in the PDF activity reports only, so no NIBRS coding or exact timestamp9,02839.11%
dashboard_onlyPresent in the Power BI export only, so no narrative text7,53432.64%
both_sourcesMatched across both ingest streams and merged6,51928.24%
zone_snappedAttached to a zone by the 55m nearest-zone fallback rather than strict containment1,6567.17%
outside_villageGeocoded outside the village. Correct: OPPD reports incidents in neighbouring towns1,1244.87%

Geocoding

99.92% of incidents have coordinates (23,062 of 23,081). Only 19 do not. The pipeline is cache-first, so a run resolves almost everything without calling the geocoding API.

The chart below is not a cache-miss rate. dbt can only join the cache on lower(trim(location)), while the pipeline keys on normalize_location(), which also strips punctuation and standardises street suffixes. So this measures the dbt-side key, not the pipeline: 15,844 of the unmatched rows are geocoded perfectly well. It is here to quantify what publishing a real location_key upstream would buy, nothing more.
unmatched · 15,860 (68.7%)69%matched · 7,218 (31.3%)31%cached_unresolvable · 3 (0.0%)unmatched · 15,860matched · 7,218cached_unresolvable · 3

Zone assignment

Snapped rows fell within 55m of a polygon and were attached by the nearest-zone fallback. Outside-village rows are correct, not errors.

in_village · 20,282 (87.9%)88%snapped · 1,656 (7.2%)outside_village · 1,124 (4.9%)ungeocoded · 19 (0.1%)in_village · 20,282snapped · 1,656outside_village · 1,124ungeocoded · 19

Test outcomes

The docs site renders test definitions but not results. These are the results.

CheckApplies toStatusFailures
singularassert_no_complaint_collisionswarn42
singularassert_no_republished_pdf_duplicateswarn76
singularassert_zone_assignment_paritypass
not_nullcrime_details.record_idpass
relationshipscrime_details.record_idpass
uniquecrime_details.record_idpass
accepted_valuescrimes.primary_crime_againstpass
accepted_valuescrimes.sourcepass
not_nullcrimes.datepass
not_nullcrimes.record_idpass
unique_combination_of_columnscrimespass
not_nulldata_profile_summary.measurepass
uniquedata_profile_summary.measurepass
not_nulldata_quality_summary.issuepass
not_nulldata_quality_summary.row_countpass
uniquedata_quality_summary.issuepass
not_nulldim_date.date_daypass
uniquedim_date.date_daypass
not_nulldim_offense.offense_textpass
uniquedim_offense.offense_textpass
accepted_valuesdim_zone.zone_idpass
not_nulldim_zone.zone_idpass
uniquedim_zone.zone_idpass
accepted_valuesfct_incidents.primary_crime_againstpass
accepted_valuesfct_incidents.sourcepass
accepted_valuesfct_incidents.zone_statuspass
not_nullfct_incidents.record_idpass
not_nullfct_incidents.zone_statuspass
uniquefct_incidents.record_idpass
unique_combination_of_columnsfct_incidentspass
accepted_valuesgeocode_coverage.naive_key_statuspass
not_nullgeocode_coverage.record_idpass
relationshipsgeocode_coverage.record_idpass
uniquegeocode_coverage.record_idpass
accepted_valuesint_complaint_quality.quality_classpass
not_nullint_complaint_quality.complaint_numpass
not_nullint_complaint_quality.row_countpass
uniqueint_complaint_quality.complaint_numpass
not_nullint_crimes_deduplicated.record_idpass
uniqueint_crimes_deduplicated.record_idpass
accepted_valuesint_crimes_zoned.zone_idpass
accepted_valuesint_crimes_zoned.zone_statuspass
not_nullint_crimes_zoned.record_idpass
not_nullint_crimes_zoned.zone_statuspass
uniqueint_crimes_zoned.record_idpass
not_nullstg_crime_details.record_idpass
uniquestg_crime_details.record_idpass
not_nullstg_crimes.record_idpass
uniquestg_crimes.record_idpass
not_nullstg_geocode_cache.location_keypass
uniquestg_geocode_cache.location_keypass
not_nullstg_policing_zones.zone_idpass
not_nullstg_policing_zones.zone_namepass
uniquestg_policing_zones.zone_idpass