Git Product home page Git Product logo

nashville-crime's Introduction

Nashville Target Location for High End Security Systems

In this scenario we will review crime data in Nashville to determine which areas are best to market our expensive security system to.

I will describe the following:

  1. Garnering the Data
  2. Creating the Report
  3. Data Insights

You can review the dashboard here.

Garnering the Data

  • I wanted to gather all the data in code so it's reusable for anyone who wants to collaborate.

  • In this script, you can see I did an extract, load and transformation (ELT) of the Nashville Crime Data.

  • This data was then loaded into BigQuery as a temporary table. I then used BigQuery SQL to make a few data structure modifications.

  • I then used this data and joined it to the US Census tract data to determine the geographical polygon.

Creating the Report

  • For the report, I joined the fact table I created to census data to look at both crime statistics and income levels per geometric tract in Nashville.

  • To gain optimal insights, I created a metric that shows the delta of weighted media income by crime. This will be the key metric to determine the largest impact to communities that crime has.

  • I created a dashboard in Google Data Studio for a user to use to determine the best location for their marketing campaign. It consists of a heatmap of Nashville to show the highest concentration of weighted median income delta.

Data Insights

Scenario

If this high-end security company knows their typical customer makes over $85k a year -- we will use the dashboard to assess which region makes the most sense to spend our marketing dollars.

  1. If we use the dashboard and filter down to tracts that make over $85k, we can then rank them based on occurence of crime in the area.

  2. We are looking for areas that have a higher rate of crime, assuming there may be an appetite for a security system -- but also that they are able to afford it.

  3. After reviewing the data, it seems Census Tract 134 would be a great candidate to target as it fits our criteria. Another interesting candidate would be Census Tract 180, while it is ranked 4th -- the population is considerably large and its income is significantly higher.

Notes

  • It's important to note, I only used data from 2020 and only records that provide geo-spatial information.

nashville-crime's People

Contributors

connelldan avatar

Watchers

James Cloos avatar  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.