Utilizing R, I performed a study on the overall crime levels to gain an understanding if there were any correlations between the total number of violent crimes, burglaries, thefts and vehicle thefts and to compare them over time to see if they have remained the same.
The data being used was from the San Diego Automated Regional Justice Information System (ARJIS) and contains the following columns: Murder, Rape, Armed Robbery, Strong Arm Robbery, Aggravated Assault, Total Violent Crime, Residential Burglary, Non-Residential Burglary, Total Burglary, Theft >= $400, Theft < $400, Total Thefts, Motor Vehicle Theft, Total Property Crime and Crime Index.
This data is presented as counts of occurrences by month from January 2008 to present day.
I chose to eliminate each of the crime subcategories and instead focus on the total number of violent crimes, burglaries, thefts and vehicle thefts along with the month they occurred, for a total of five columns.
Total Violent Crime equals the sum of murders, rapes, robberies, and aggravated assaults. Total Burglary equals the sum of residential and non-residential burglaries. Total Thefts equals the sum of thefts >= $400 and thefts < $400.
There are 132 total observations, one per month for 11 years.
The original data can be found here: http://crimestats.arjis.org/default.aspx
Here the five number summary is showing the occurrences per month by category. We can see that on average, theft occurs three to four times more often than the any of the other categories of crime and that the other three categories happen at close to the same frequency as each other.
To study the change over time, I first calculated the change per category from one month to the next and then ran a summary on that data. From the summary you can see that the minimum and maximum, which is the measurement of the decrease or increase in total occurences from one month to the next, were close to the same for violent crime, and theft, but the largest decrease for burglary was 79 greater than the maximum increase, 303 compared to 224 and it was the opposite for vehicle theft, 423 as the highest increase versus 382 as the lowest decrease.
Total occurances by category from 2008 to 2018. There are little upticks here and there, but overall all of the categories had a decrease from 2008 to 2018. Lets look a little closer at the exact percent of change.
When observing the difference in total events in each category from 2008 to 2018, we can see that vehicle theft fell the greatest at 52%, followed by burglary at 51.4%, theft at 18.64 and violent crime at 11.52%
Studying the changes by year shows that the mean value of each category is on the decline as we previously saw. Vehicle theft and burglary had the most significant average reduction 1025 and 864 yearly instances respectively.
Since the raw numbers can be difficult to compare, lets look at the data as percentages. Again we see that Vehicle theft and burglary had the greatest average decline at 6.31% and 6.65%. Vehicle theft had the widest spread at just over 40%, dropping over 30% one year, but also climbing 11% on a different year. Violent crime had the least movement with its min/max falling 16% apart and its mean change at -1.08%
Looking at the correlation between each of these categories with a correlation matrix, we can see that each of them is positively correlated. Violent crime has the lowest overall correlation with all of the other categories, while motor vehicle theft had the highest. The two with the highest correlation was vehicle theft and burglary at 0.77.
Plotting the correlation between motor vehicle thefts and total burglaries we can see that the two attributes share a positive correlation as previously shown in the matrix.
From the analysis I performed, there are positive correlations between each of the categories of crime. Since the correlations are positive, it indicates that as one crime level rises, so too do the others. The largest correlation was between motor vehicle theft and total burglary at 0.77 and the least was violent crime and theft at 0.45. Violent crime had the overall lowest correlation with any of the other categories ranging from 0.45 to 0.54.
All of the categories displayed a negative trend in total occurrences from 2008 to 2018. Vehicle theft fell 52%, burglary 51.4%, theft by 18.64% and violent crime by 11.52%. When observing these changes by year, we can see that violent crime decreased by a mean value of 10.07% and a median of 0.23%, burglary by a mean of 15.14% and median of 5.02%, thefts by a mean of 10.65% and median of 2.57% and vehicle theft by a mean of 14.83% and median of 9.55% year over year.