Show code
# A tibble: 1 × 3
crash_total victim_total fatal_total
<int> <dbl> <dbl>
1 161852 224642 3560
# A tibble: 1 × 3
crash_total victim_total fatal_total
<int> <dbl> <dbl>
1 161852 224642 3560
# A tibble: 12 × 3
MONTH count pct
<dbl> <int> <dbl>
1 1 12766 7.89
2 2 11793 7.29
3 3 13120 8.11
4 4 12987 8.02
5 5 13418 8.29
6 6 13256 8.19
7 7 13634 8.42
8 8 14715 9.09
9 9 14153 8.74
10 10 14974 9.25
11 11 13636 8.42
12 12 13400 8.28
# A tibble: 24 × 3
HOUR count pct
<dbl> <int> <dbl>
1 0 3552 2.19
2 1 3193 1.97
3 2 3031 1.87
4 3 2124 1.31
5 4 2215 1.37
6 5 3279 2.03
7 6 4468 2.76
8 7 7211 4.46
9 8 8420 5.20
10 9 6472 4.00
# ℹ 14 more rows
# A tibble: 10 × 2
PCF_VIOL_CATEGORY count
<chr> <int>
1 unsafe speed 48018
2 improper turning 26804
3 automobile right of way 23465
4 traffic signs 15197
5 DUI 14635
6 unsafe lane change 6622
7 unknown 5114
8 wrong side of road 3932
9 pedestrian right of way 3910
10 pedestrian violation 3788
# A tibble: 8 × 2
STWD_VEHTYPE_AT_FAULT count
<chr> <int>
1 Passenger Car/Station Wagon 107023
2 Not Stated 18653
3 Pickup or Panel Truck 15787
4 Motorcycle/Scooter 6470
5 Bicycle 4288
6 Pedestrian 3865
7 Truck or Truck Tractor 1684
8 Truck or Truck Tractor with Trailer 1298
# A tibble: 1 × 3
n_ped_accidents n_ped_injured n_ped_killed
<int> <dbl> <dbl>
1 11490 11022 974
# A tibble: 1 × 3
n_bike_accidents n_bike_injured n_bike_killed
<int> <dbl> <dbl>
1 8744 8683 134
Which group was responsible for a higher proportion of crashes they were involved in, pedestrians or bicyclists?
# A tibble: 1 × 1
prop_ped_at_fault
<dbl>
1 0.336
# A tibble: 1 × 1
prop_bike_at_fault
<dbl>
1 0.490
We see that pedestrians are at fault for 33.6% of the accidents that they are involved in, while bicyclists are at fault for 49.0% of the accidents that they are involved in. Therefore, bicyclists are more likely than pedestrians to be at fault for an accident that they are involved in.