Introduction

The American police departments are not only responsible for catching criminals. They form an integral part of the American Community. They handle every thing from routine tasks such as directing traffic to being first responders the the country’s worst disasters.

In this project , we look at the home of the largest local police department in the USA, New York. The NYPD was founded in 1845 and it is one of the most recognizable law enforcement agencies in the world. It currently consists of around 40,000 sworn officers. In this project, using the data provided by Five Thirty Eight we try to uncover trends.

## Warning: package 'dplyr' was built under R version 3.3.2
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## Warning: package 'ggplot2' was built under R version 3.3.2
## Warning: package 'lubridate' was built under R version 3.3.2
## 
## Attaching package: 'lubridate'
## The following object is masked from 'package:base':
## 
##     date
## Warning: package 'data.table' was built under R version 3.3.2
## -------------------------------------------------------------------------
## data.table + dplyr code now lives in dtplyr.
## Please library(dtplyr)!
## -------------------------------------------------------------------------
## 
## Attaching package: 'data.table'
## The following objects are masked from 'package:lubridate':
## 
##     hour, isoweek, mday, minute, month, quarter, second, wday,
##     week, yday, year
## The following objects are masked from 'package:dplyr':
## 
##     between, first, last
## Warning: package 'tidyr' was built under R version 3.3.2
## Warning: package 'formattable' was built under R version 3.3.2
## Warning: package 'viridisLite' was built under R version 3.3.2
## Warning: package 'ggthemes' was built under R version 3.3.2

Number of Police Deaths in New York State by Year

We see that the number of officers killed in New York State exceeds the nation average from the early 1900’s onwards. As the population of a region increases , the crime rate is also bound to increase. The early 1900’s saw a large influx of immigrants. The great depression also occurred during this time which led to people taking extreme measures to provide for their families. Unemployment benefits did not exist back then. The depression lasted for around ten years during which unemployment hit a all time high(25%). After this period, the second World War employed a lot of labour for the manufacturing industries. The USA was supplying about 11% of the of the Allies’ needs.We also see police deaths reducing during this time

Top Departments

The department in New York State which has the highest death count is the NYPD. We will look into this further

We see that the NYPD death counts exceeds the average death counts of the state almost all the time.

Top Causes

## Selecting by n
cause_short n
Gunfire 278
9/11 related illness 99
Automobile accident 51
Heart attack 41
Struck by vehicle 37
Motorcycle accident 36
Gunfire (Accidental) 24
Terrorist attack 24
Vehicular assault 19
Assault 14
Fire 14

From the above table, we see that the highest number of deaths are caused by gunfire, followed by 9/11 related illness. This is then followed by automobile accidents and heart attack.

Causes of Death by Year

Upon plotting the top three causes of Death across time, we see the gunfire occurs with a larger frequency across the years.

Titles of the officers

Most of the officers who were killed in the NYPD were patrolmen, followed by police officers. We will analyse these two titles over the years.

Patrolman and Police

We see that police officers started getting killed from the early 1970’s onwards. This is probably because of changes in the way the public started addressing patrolling officers

Sources

https://www.lycoming.edu/schemata/pdfs/Marshall_ECON236.pdf https://en.wikipedia.org/wiki/History_of_New_York#Civil_War_to_1900