In this report, I will be creating different tables and graphs using a combination of R and SQL. These representations will be based off of data relating to insurance claims, a variety of vehicle incident types, time frames, age, year, and more. I will be looking at how thise data relates as well as explaining anything that stands out or looks interesting within the data.

Incident Aggregation Table

incident_type median_auto_year median_claim_amount median_age Totals
Multi-vehicle Collision 2006 61650 39 419
Parked Car 2005 5490 37 84
Single Vehicle Collision 2005 62640 38 403
Vehicle Theft 2005 5495 38 94

Within this first table, we are exploring the data based upon the incident types that occurred. Some of the things that stood out to me are that most of the incidents occurred with multi-vehicle and single vehicle collisions. Both of these incidents also seemed to have the largest median claims amount. The median ages of these incidents seems to be within the high thirty’s age group as well.

Time Frame Aggregation Table

time_frame median_auto_year median_claim_amount median_age Totals
10a.m.-4:59p.m. 2005 61490 38 293
10p.m.-midnight 2006 62920 39 89
5p.m.-7:59p.m. 2005 60190 40 135
6a.m.-9:59a.m. 2005 40320 38 163
8p.m.-9:59p.m. 2005 60205 39 76
midnight-5:59a.m. 2005 52590 36 244

In this time we are now looking at the times at which the incidents occurred between. Something interesting to look at within this table, would be why there seems to be such a significantly less median claim amount between the time frame of 6a.m.-9:59a.m.. I think it’s also important to note that most of the incidents occurred between 10a.m.-4:59p.m. and from midnight-5:59a.m..

Time Frame and Incident Type Aggregation Table

time_frame incident_type median_auto_year median_claim_amount median_age Totals
10a.m.-4:59p.m. Multi-vehicle Collision 2007 60750 38 137
10a.m.-4:59p.m. Parked Car 2004 5900 40 7
10a.m.-4:59p.m. Single Vehicle Collision 2004 63700 39 138
10a.m.-4:59p.m. Vehicle Theft 2005 6820 40 11
10p.m.-midnight Multi-vehicle Collision 2008 64800 40 41
10p.m.-midnight Parked Car 2013 5700 41 3
10p.m.-midnight Single Vehicle Collision 2004 62640 37 45
5p.m.-7:59p.m. Multi-vehicle Collision 2005 61400 41 65
5p.m.-7:59p.m. Parked Car 2011 6490 37 5
5p.m.-7:59p.m. Single Vehicle Collision 2005 61110 41 62
5p.m.-7:59p.m. Vehicle Theft 2000 5100 28 3
6a.m.-9:59a.m. Multi-vehicle Collision 2004 64320 39 41
6a.m.-9:59a.m. Parked Car 2006 5830 39 34
6a.m.-9:59a.m. Single Vehicle Collision 2006 63685 38 46
6a.m.-9:59a.m. Vehicle Theft 2006 4975 38 42
8p.m.-9:59p.m. Multi-vehicle Collision 2005 61440 39 47
8p.m.-9:59p.m. Parked Car 2004 5005 32 2
8p.m.-9:59p.m. Single Vehicle Collision 2005 59355 38 22
8p.m.-9:59p.m. Vehicle Theft 2005 6500 35 5
midnight-5:59a.m. Multi-vehicle Collision 2006 61625 37 88
midnight-5:59a.m. Parked Car 2004 4900 34 33
midnight-5:59a.m. Single Vehicle Collision 2005 60185 36 90
midnight-5:59a.m. Vehicle Theft 2004 5220 39 33

In this table we are combining all the data together and aggregating it. Something that stands out in this table, is that most of the incidents seemed to be multi-vehicle and single vehicle collisions, all of which occurred between 10a.m.-4:59p.m.. Another thing that seems to stand out is that parked cars and vehicle theft seemed to be significantly higher in the middle night from midnight-5:59 a.m..

Based off this graph, it seems to safe to say that most of the insurance claims came from 10a.m-4:59p.m. and is shortly followed by midnight-5:59a.m.. Looking at the graph, most incidents seem to occur during morning to early afternoon time, and it seems to sort of die down after that. Vehicle collisions seem to occur quite frequently throughout the whole day, while parked cars and vehicle theft seem to occur more frequently in the morning.

In this graph, it is looking at the total number of insurance claims for each median age, as well as the incident types. In this graph there seems to be a good range of incidents around the 35-40 age range. Most of these incidents also look to be due to vehicle collisions as well.