Skip to main content

Dallas Crime & Housing

I analyzed Dallas arrest records and housing listings in R to examine their relationship. Revisiting the analysis with a broader model showed crime had limited explanatory power alongside market factors.

Watercolor illustration of houses on a map beside a magnifying glass over a bar chart
Concept illustration
View repository (opens in a new tab)

The question and my contribution

I worked on the original group analysis in Fall 2024 and returned as the sole analyst in March 2026 to revisit its central hypothesis: whether crime patterns meaningfully explain Dallas housing prices.

The original analysis

We joined Dallas Police Department arrest records (roughly 50k incidents) and Zillow housing listings at the zip-code level. In R, dplyr handled cleaning and aggregation; ggplot2 handled visualization.

The result was a table of arrest counts and average and median property prices, plus a scatter plot and a map of recorded arrest counts.

Map from the original 2024 Dallas analysis showing recorded arrest counts by ZIP code, not population-adjusted crime rates

Revisiting the assumption

In 2026, I reran the analysis with a broader regression model. It reported an R² of 0.854; crime ranked 98th of 141 features in the importance analysis, behind socioeconomic and market variables.

Within that analysis, crime offered limited independent explanatory power. The original two-variable relationship was not enough to support the initial explanation, and these model results do not establish causation.

What I learned

A plausible story needs more than a correlation. The initial approach omitted variables that could affect both crime and housing prices. Revisiting the work changed the conclusion and made the limitations clearer.

The repository preserves the 2024 work alongside the 2026 remediation so the progression remains visible.