Introduction

This is an analysis done on the Road Traffic Accidents(Pillow) from the year 2015 to 2018.

Summary of the dataset

##        X            Date              Month                Year     
##  Min.   :   7   Length:1202        Length:1202        Min.   :2015  
##  1st Qu.:2092   Class :character   Class :character   1st Qu.:2015  
##  Median :4492   Mode  :character   Mode  :character   Median :2016  
##  Mean   :4551                                         Mean   :2016  
##  3rd Qu.:7028                                         3rd Qu.:2017  
##  Max.   :9215                                         Max.   :2018  
##      Day                Time               Base              County         
##  Length:1202        Length:1202        Length:1202        Length:1202       
##  Class :character   Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character   Mode  :character  
##                                                                             
##                                                                             
##                                                                             
##     COUNTY               Code         Vehicle             Victim         
##  Length:1202        Min.   : 1.00   Length:1202        Length:1202       
##  Class :character   1st Qu.:22.00   Class :character   Class :character  
##  Mode  :character   Median :36.00   Mode  :character   Mode  :character  
##                     Mean   :33.15                                        
##                     3rd Qu.:47.00                                        
##                     Max.   :47.00                                        
##     NumLost           Age           Gender              Road          
##  Min.   :1.000   Min.   : 1.00   Length:1202        Length:1202       
##  1st Qu.:1.000   1st Qu.:30.00   Class :character   Class :character  
##  Median :1.000   Median :33.00   Mode  :character   Mode  :character  
##  Mean   :1.012   Mean   :34.28                                        
##  3rd Qu.:1.000   3rd Qu.:35.00                                        
##  Max.   :3.000   Max.   :92.00                                        
##     Place               Cause        Details         
##  Length:1202        Min.   : 4.0   Length:1202       
##  Class :character   1st Qu.:61.0   Class :character  
##  Mode  :character   Median :98.0   Mode  :character  
##                     Mean   :77.3                     
##                     3rd Qu.:98.0                     
##                     Max.   :98.0

Visualizations

Pedestrians are the most affected when it comes to road accidents.Notably, due to the lack of proper infrastructure like foot paths and foot bridges for them to cross busy roads safely. Additionally, a good number of pedestrians are ignorant in utilizing the available foot paths and foot bridges.

Men are mostly affected, mainly because of rampant drunkenness accounting for the highest cause of accidents in the country. Some men also tend to drive carelessly by over speeding and overtaking

We can deduce that the month of May has the highest number of fatalities within a given year. This is closely followed by April and December. This is mainly due to the Easter and Labour day holidays. For December, because of the Christmas holidays.

Nairobi County accounts for the highest number of lives lost from road accidents.This is due to the many major highways and the high population in this county.