Data Visualizing NYC Traffic Collisions

Posted on May 6, 2018
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


For this project I chose to build an R Shiny App (app hereΒ - github here) to data visualize traffic collisions that occurred from 2012-2017 in the five boroughs of New York.Β  There were over one millions accidents over this time period, with over one thousand causing fatalities.Β  Insights gained from this app have the potential to contribute to one of Mayor Bill De Blasio's important initiatives concerning transportation within New York City, Vision Zero, whose goal is to reduce traffic fatalities to zero.

Data Set

The dataset I used comes from one of Enigma's many free (account registration required) datasets and includes data concerning date, time, location, and fatality count by collision (here).Β  I chose to visualize the data both graphically and geographically.


Users are able to visually browse the data set by day of week, hour, and borough to gain insight into traffic patterns.Β  The differences between when accidents occur on weekends and weekdays are large.

Day of Week

Data Visualizing NYC Traffic Collisions


The different boroughs also have substantially different accident profiles by time.Β  Notably, the accidents in Manhattan, true to its name as the city that never sleeps, have a different distribution from the other boroughs, with more of its collisions occurring around midnight.Β  With this increase in collisions near midnight comes a corresponding decrease in accidents during the morning and evening commutes.



Users can also visualize the fatal accidents that occurred in this five year range.Β  This subset of the data is especially important as it can lead policy makers to both understand what similarities there may be in these accidents as well as the locations where the most lives can be saved.


There are numerous directions to head in for further exploration of this data set; the full data set also includes information about pedestrians, cyclists, and types of vehicles involved in and primary causes for each accident.Β  Exploring where accidents occur and for what reason may yield valuable information for reducing accidents and loss of life as well as set up the possibility for informative experimenting and testing with local targets.




About Author

Jake Ralston

Jake has a Ph. D. in Mathematics from The University of Maryland, College Park. Originally an algebraic topologist, Jake worked as a trader at Bridgewater Associates for two years after completing his degree. He is now a data...
View all posts by Jake Ralston >

Related Articles

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