GithubHelp home page GithubHelp logo

nischaybikramthapa / reduce-traffic-mortality Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 354 KB

Are there any patterns of traffic fatalities among states? Can we group common states and derive a policy plan?

Jupyter Notebook 100.00%

reduce-traffic-mortality's Introduction

Reduce Traffic Mortality in U.S.

While the rate of fatal road accidents has been decreasing steadily since the 80s, the past ten years have seen a stagnation in this reduction. Coupled with the increase in number of miles driven in the nation, the total number of traffic related-fatalities has now reached a ten year high and is rapidly increasing.

Per request of the US Department of Transportation, we are currently investigating how to derive a strategy to reduce the incidence of road accidents across the nation. By looking at the demographics of traffic accident victims for each US state, we find that there is a lot of variation between states. Now we want to understand if there are patterns in this variation in order to derive suggestions for a policy action plan. In particular, instead of implementing a costly nation-wide plan we want to focus on groups of states with similar profiles.

How can we find such groups in a statistically sound way and communicate the result effectively?

This data was originally collected by the National Highway Traffic Safety Administration and the National Association of Insurance Commissioners. This particular dataset was compiled and released as a CSV-file by FiveThirtyEight under the CC-BY4.0 license.

Attribute Information

  • State: Name of the state
  • drvr_fatl_col_bmiles: fatalities of drivers in billion miles
  • perc_fatl_speed: percent of fatalities caused due to speed
  • perc_fatl_alcohol: percent of fatalities caused due to drinking alcohol
  • perc_fatl_1s_time: percent of fatalities recorded first time

Exploration

pairplot

We can see some potentially interesting relationships between the target variable (the number of fatal accidents) and the feature variables (percentage of fatalities).

corrleation

We see that the amount of fatal accidents is most strongly correlated with alcohol consumption. But in addition, we also see that some of the features are correlated with each other, for instance, speeding and alcohol consumption are positively correlated. We, therefore, want to compute the association of the target with each feature while adjusting for the effect of the remaining features. This is done using multivariate linear regression. We learnt that alcohol consumption is weakly associated with the number of fatal accidents across states. This lead us to conclude that alcohol consumption should be a focus for further investigations and maybe strategies should divide states into high versus low alcohol consumption in accidents. But there are also associations between alcohol consumptions and the other two features, so it might be worth trying to split the states in a way that accounts for all three features.

PCA and KMeans Clustering

The first two principal components enable visualization of the data in two dimensions while capturing a high proportion of the variation (79%) from all three features: speeding, alcohol influence, and first-time accidents. This enables us to use our eyes to try to discern patterns in the data with the goal to find groups of similar states. However, it was not entirely clear how many groups in which the states cluster. To assist with identifying a reasonable number of clusters, we used KMeans clustering resulting in three clusters.

pca

It is clear that different groups of states may require different interventions. Since resources and time are limited, it is useful to start off with an intervention in one of the three groups first. Which group would this be? To determine this, we included data on how many miles are driven in each state, because this will help us to compute the total number of fatal accidents in each state. When we combined we found 22 states in cluster 1 with higher number of drivers involved in road accidents.

state

Recommendation

Based on the information, it is recommended to apply policy intevention to states under cluster 1 followed by other two clusters. This way we coould speculate what percentage of fatalities could be controlled. In addition, more data related to states and fatalities can be added to identify simlaritites between states and prioritise them.

reduce-traffic-mortality's People

Contributors

nischaybikramthapa avatar

Watchers

 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.