NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Student Works > Data Study on Vision Zero and Road Safety

Data Study on Vision Zero and Road Safety

Nanda Rajarathinam
Posted on Jun 29, 2016
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

All of us are aware that motor vehicle accidents are becoming an inevitable part of our daily lives and this is especially true for those living in big cities. In some cases, data shows the injuries are minimal and there are others where people sustain life threatening injuries and even ultimately lose their lives. New York city, home to almost 8.4 million people is no exception to this trend and the city officials wanted to introduce measures that would help curb the rising casualties. The solution was called Vision Zero.

Vision Zero

Data Study on Vision Zero and Road Safety

Vision Zero is a multi-national road traffic safety project that originated in Sweden in late 90's and was later adopted by major cities across the world. The program aims to achieve a highway system with no fatalities or serious injuries in road traffic. The Vision Zero Action Plan is intended to help end traffic deaths and injuries on New York City streets.  Vision Zero programs are designed to discourage dangerous behavior on roads and streets by combining better enforcement and roadway engineering with improved emergency response and public campaigns on safe driving.

The objective of this analysis is to analyze the variables pertaining to the New York city motor vehicle collision data and visually represent the data to understand the overall trend and big picture regarding the fatalities and injuries over the last 4 years. The data was analyzed from multiple perspectives including the time of accident, the location within the borough, the factors that could have contributed towards the collision and across years to understand the overall effectiveness of the Vision Zero program in reducing the casualties.

Objective

As a part of this analysis, I also wanted to understand how the fatalities and injuries vary across the boroughs and years. The following are some of the questions that I am trying to answer based on the visualization:

  1. Is there a overall trend applicable to all the boroughs or are there exceptions observed within certain areas ? Does this trend hold good for the three categories of people involved in the collisions namely pedestrians, cyclists and motorists ?
  2. What are the top 5 contributing factors that account for majority of the fatalities / injuries ? Is there a trend observed in those factors over years ?
  3. Does the time of the day have any impact on the number of casualties ? Is there a spike in the number of fatalities during certain parts of the day ?
  4. Do the casualties vary significantly based on neighborhood / geographical location within the boroughs ?

Data Import, Cleaning and Pre-processing

The data pertaining to motor vehicle collisions within NY city is being collected by the city's Police Department and shared with the public as a part of the NYC OpenData program for visualization and performing analytics. The URL for the data is :  https://data.cityofnewyork.us/Public-Safety/NYPD-Motor-Vehicle-Collisions/h9gi-nx95

The data is relatively well structured and clean given that it contained more than 840,000 observations as of June 30, 2016. There are 29 variables that describe different aspects of every accident such as date, time, location, vehicle type, contributing factors toward accidents, etc. For the purpose of this visualization, I was primarily focusing on key variables such as date, time and year of accident, zip code , borough, number of fatalities and injuries.

As a first step, I imported the data and cleaned up some of the key fields required for this analysis by performing data type conversions, renaming certain cryptic variables and derived new variables such as Year and Time from the Accident Date variable.

All the code for this analysis can be found in : https://github.com/nycdatasci/bootcamp006_project/tree/master/Project1-ExploreVis/NandaRajarathinam

1. Total Fatalities by Year

As a part of answering my first research question, I looked at the overall trend in fatalities by boroughs over the last four years by creating the bar plot.

Data Study on Vision Zero and Road Safety

Based on the bar plot, the overall number of fatalities seem to be going down over the past 3.5 years starting January 2013 until June 2016. I wanted to further drill down and observe the trend within each of the three groups of people involved in the collision namely cyclists, motorists and pedestrians.

Total number of Cyclist, Motorist and Pedestrian Fatalities by Boroughs and Years

As a part of the next step, I further investigated the fatalities among the three groups - motorists, pedestrians and cyclists to understand if the big picture of declining trend holds good within each of the five boroughs or if there were any exceptions observed within the boroughs.

Data Study on Vision Zero and Road Safety

Total number of Pedestrian Fatalities by Year

Data Study on Vision Zero and Road Safety

Although the overall trend shows a decline in the number of motorist deaths in Brooklyn, Manhattan and Queens the trend seems to be rising in Bronx and Staten Island. Regarding pedestrian casualties, Brooklyn seems to have an increasing trend in the number of pedestrian fatalities that is quite different from other boroughs. Queens did not have any cyclist fatality for the first half of 2016 and Staten Island did not report any casualties from 2012 until 2014. Brooklyn and Queens have a higher number of cyclist related fatalities compared to other boroughs. This probably shows that NYPD and city officials might need to focus more on specific measures within certain boroughs aimed at improving safety of the target population.

2. Total number of Fatalities and Injuries by Contributing factors

Although there are more than 40 factors that might have likely caused the vehicle collision, I was interested in finding out the top 5 factors that would account for a significant percentage of the casualties. I created a bar plot of the number of fatalities and injuries by contributing factors.

Total Fatalities by Contributing Factors1

The bar plot clearly showed that the top factors that contributed towards the casualties were

  • Disregard for Traffic Control
  • Driver Inattention/Distraction
  • Failure to Yield Right-of-Way
  • Passenger Distraction
  • Following Too Closely
  • Driver Inexperience
  • Fatigued/Drowsy
  • Physical Disability
  • Alcohol Involvement
  • Aggressive Driving/Road Rage

The above 10 factors contributed to at least 50% of the fatalities whereas the remaining 35 factors accounted for the  rest of the casualties showing that the above factors play a more significant role in determining the number of  fatalities.

Trend in Fatalities and Injuries across years based on contributing factors

I also analyzed the trend in fatalities and injuries across years based on contributing factors.

Rplot03

Most of the factors in the top 10 category show an overall declining trend except โ€˜Traffic control disregardedโ€™ and โ€˜Following too closelyโ€™ which display a slightly erratic pattern over the years.

3. Casualties by Location / Neighborhood

Since the beginning of this project, I was curious to find out the impact on the total number of casualties based on the ZIP code of the location within each borough. Though I was expecting certain areas to have higher fatalities based on the density of population, I was interested to find out the pattern that would emerge by plotting the related variables.

Total Fatalities by ZIP codes

As one can see from the plot, the number of fatalities were much higher in south eastern Brooklyn, Southern Queens and midtown Manhattan. This also corresponds to the denser population within those boroughs.

4. Casualties by Time of the day

Last but not the least, I wanted to determine if the time of the day really had any significance with regards to the number of casualties. In order to answer that question, I had to first categorize the day into 4 groups - Morning, Afternoon, Evening and Overnight so that we would be able to make better sense of the result instead of using the time as is. The objective was to create a line plot of the number of casualties by part of the day in all boroughs to observe the pattern.

 Rplot04

The plot showed that there was a consistent observation in all boroughs where evening time(between 5 PM and mid-night) had the most number of casualties compared to rest of the day. This could be explained due to the rush hour traffic during peak evening hours and people trying to get home after work as soon as possible.

Conclusion

The analysis shows that there is a gradual declining trend in the number of casualties since the initiation of Vision Zero program couple of years ago. This initiative has helped curb the rising trend that was seen during the past decade in NY city.

Although the overall number of pedestrian and motorist fatalities have come down over the past couple of years the cyclist related casualties are slowly rising. One possible reason for the spike in the number of cyclist related fatalities is the increasing use of Citibike, a popular bike sharing program in New York city. Given that the Citibike program is slated to expand significantly by 2017, ensuring the safety of the cyclists in all five boroughs of the city is of paramount importance.

There are also more fatalities during the evening time and in specific neighborhoods of the boroughs. As a result, we can see that more work needs to be done to address specific issues that would reduce fatalities during evening time and enhance overall roadway and motorist safety in targeted neighborhoods of NY city.

About Author

Nanda Rajarathinam

Nanda has been applying his analytical, problem-solving and team management skills, at a leading consulting firm, focusing on data engineering, solution architecture and analytics. He has a strong background in Build, implementation and performance optimization of Extract, Transform...
View all posts by Nanda Rajarathinam >

Related Articles

Machine Learning
Accurately Predicting House Prices and Improving Client Experience with Machine Learning
Data Visualization
NYC Open Restaurants and the Rise of 311 Complaints
Big Data
Data-driven Predictions of Citi Bike Trip Demand
Data Visualization
Detailed Data Analysis: The Rise of NYC 311 Noise Complaints
Student Works
Little Rascals - A View of Pre-K Schools in NYC

Leave a Comment

Cancel reply

You must be logged in to post a comment.

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

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 ChatGPT 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 football 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 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

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application