Git Product home page Git Product logo

us-crime-and-demographics-eda's Introduction

Predicting Crime Using Demographics: An Exploratory Data Analysis (EDA)

In this analysis, we are going to try and predict eventually crime rates for a given ZCTA (which closely aligns with USPS zip codes as of 2020) within the United States. We are going to do this using demographics, economic information, and more information from the US census at the ZCTA level. For now, we're going to focus on doing an exploratory data analysis.

By building a highly interpretable linear model, we can get undeaneath the problem of crime and try and assess what might be driving it, and in what proportion. Is it poverty? Inequality? Crime? Demographic information? These questions hopefully will be answered over the course of this analysis. But first, we must prepare the data for this analysis which comes later.

The data was sourced from the following sources:

  • https://crimegrade.org/ - This was what we used to obtain the zip-code level crime data. Note that an algorithmic approach is taken to assess crime in Zip codes that don't report crime, so essentially we may be "predicting a prediction" - but nonetheless it is the best dataset available given these constraints. It also doesn't specify what time period this data is from.
  • https://console.cloud.google.com/marketplace/product/united-states-census-bureau/us-census-data?project=datarobot-vertex-pipelines - This is a compilation created by Google of publically available census data, which previously was spread out and very hard to aggregate manually. Luckily Google has done much of the hard work for us and created a very wide dataset (nearly 245 columns) for analysis at the ZCTA level. This is "5-year" data and labeled as 2020 level, so we assum that these are five year statistics ending in 2020.

We ultimately join this data together on ZCTA and perform our EDA.

See the notebook for an intuitive walkthrough! Feel free to reach out with any questions. .

us-crime-and-demographics-eda's People

Contributors

the0versoul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.