About Correl
What it does
Correl is a free map of neighborhood data for 16 U.S. cities. Pick a city and shade its ZIP codes by any of dozens of measures, from median income and rent to obesity, crime and bus stops.
The correlation calculator takes any two measures, computes Pearson r across the city's ZIP codes and plots them on a scatter plot. You can name a result and save it in your browser for later.
Why I built it
Neighborhood data on income, health, transit and crime sits in dozens of separate government and open-data portals, each with its own format. Pulling it together takes time and some coding.
Correl puts it on one map so anyone can look at the patterns in their own city.
Many of these patterns are about inequality. If the low-income ZIP codes in a city have fewer parks, fewer transit stops, higher obesity rates and more fast food, the map shows all of it in one place.
Correlation is not causation
Two measures that move together do not show that one causes the other.
Say higher median income and more Starbucks locations show up in the same ZIP codes. A third factor such as population density or commercial zoning may drive both, or the overlap may be chance.
Treat a strong correlation here as a question to look into.
Simpson's paradox
A trend across a whole city can reverse or disappear inside smaller groups of neighborhoods. This is Simpson's paradox, and it can mislead you when reading Correl's results.
Across all of NYC's ZIP codes, college education and crime rate can correlate positively. Dense cores like Manhattan have high education rates and high property crime from foot traffic. Within each type of neighborhood, more education goes with less crime, so the citywide trend comes from mixing different kinds of neighborhoods.
The bivariate map and scatter plot show where a relationship holds and where it breaks down. If a correlation only exists because of how subgroups are spread across the city, the map shows it.
When a result surprises you, check whether it holds within each part of the city or only for the city as a whole.
keep exploring
