Giter Site home page Giter Site logo

agomez0 / us_mass_shootings Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.74 MB

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

Jupyter Notebook 99.99% Python 0.01%
data-analysis distance-matrix-api pandas-python matplotlib gmaps nearby-api

us_mass_shootings's Introduction

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

us_mass_shootings's People

Contributors

agomez0 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.