Skip to content

agomez0/US_mass_shootings

Repository files navigation

Mass Shootings in the United States from 1966-2016

Contributors: Angelica, Mengjia, Eddie

shootings

Goal:

We are analyzing data on mass shootings in the U.S. using Python Pandas, the Matplotlib library, gmaps library, and Google APIs. Our goal is to prove or disprove our hypothesis that the number of mass shooting victims is related to the location of the shooting, as well as the type of gun used. We believe that there are less victims when the shooting occurs in close proximity to the nearest police department. Furthermore, we believe that there are more victims when multiple weapons or more powerful weapons are used than when a handgun is used. Our second hypothesis is that the amount of mass shootings in the U.S. is determined by location type and geographic location. We specifically believe that most mass shootings occur in crowded places, such as schools, as apposed to homes.

What Classifies as a "Mass Shooting"?

According to the Stanford MSA Project, a mass shooting is " 3 or more shooting victims (not necessarily fatalities), not including the shooter. The shooting must not be identifiably gang, drug, or organized crime related."*

*https://library.stanford.edu/projects/mass-shootings-america

Files:

Stanford MSA Data

Calculations Added:

  • Death Percent: Percent of deaths from the number of total victims (including law enforcement)
  • Nearest Police Department: Utilized the Google nearby search API to find the nearest police department to the shooting site
  • Nearest Police Department Proximity: Utilized the Google distance matrix API to find the distance from the shooting site to the nearest police department

Map

pctshootings

avgvictimsanddeaths

fatalitiespct

stateshootings

locationtype

victimsvspdproximity

victimsvsnumofguns

  • ANOVA Tests

anova1

anova2

How to Run the Script:

Our Conclusions: conclusions.txt

About

Analyzed 1966-2016 U.S. mass shooting data using Pandas, Matplotlib, and the Google nearby search and distance matrix APIs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published