Data Study on the Crimes in Boston

Posted on Apr 27, 2019
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

The social security and personal safety have always been the primary concern of our life. The aim of this project is to design an interactive shiny web app that display and inspect Crimes in Boston fromย the June 15, 2015 to October 3, 2018. Based on the crime historical data, we can understand what happened over the past years, and whatโ€™s the safest place to live. So, I decided to create this shiny app to help people in Boston to better understand about their neighborhood.

The main purpose of this app is not only focused on present insights from dataset, but also to create an app that users can play around with and get information they want.

Here is my Shiny App, if you are interested in my code, feel free to view my GitHub repo.

 

The Data

The Dataset is from Kaggle.com, and it is originally provided byย Boston Police Department. Thanks to Boston Police Department for making this dataset available to everyone, and it gives me a chance to inspect the crime patterns in Boston area. The dataset containing records from the new crime incident report system, which includes a reduced set of fields focused on capturing the type of incident as well as when and where it occurred. The dataset itself contains 2,60,760 rows and 17 columns. I mainly focused are in three categories: Time, Location, and Crime Type.

 

The project

I did the basic cleaning for the dataset first and start to build up my app from scratch. The main tabs are Map, Time series, and Word Cloud.

Map Tab:

The top are the highest/lowest crime ratio and average numbers of crime in year chosen below. When mouse move over, the district code and crime info will appeal. The Shooting checkbox in select input section is for display the shooting case crime.

Data Study on the Crimes in Boston

When shooting checkbox is checked, click the point to inspect the what time and crime type with shooting happened.

Data Study on the Crimes in Boston

The second checkbox allow users to inspect the selected district they want to see. ย 

Data Study on the Crimes in Boston

Time Series Tab:

The graph displays the trend of numbers of crimes happened each calendar day.

When Select by Date checked, user can see the trend by year/month/week/hour. Make sure change the date to the whole year in the date range.

In addition, the user can also view each district crime ratio by year by selecting the last button on the scroll down menu.

Word cloud Tab:

Finally, view what exactly happened in each district!

About Author

Zhuoyi Liu

Zhuoyi is an aspiring data scientist who like the challenge of drawing on creative solutions to problems. Alongside completing Master's Degree at New York University (Expected Dec. 2019), He is also a fellow at the NYC data science...
View all posts by Zhuoyi Liu >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI