Skip to content

The aim of this study is to visualize the gun violence data collected for the year 2018 and highlight what I think are the most important Factors contributing to gun violence.

Notifications You must be signed in to change notification settings

Rl16193/GunViolence_US

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GunViolence_US

Goal

The aim of this study is to visualize the gun violence data collected for the year 2018 and highlight what I think are the most important Factors contributing to gun violence.

Data

The Data was collected through web-parsing wikipedia tables and other suitable table found on reputable webistes. The data collected is mostly from the year 2020 and 2019. The data is classified as high gun violence and low gun violence based the % gun death rate.

Analysis

The data collected from websites are cleaned and feed into PostgreSQL database. Different tables are then merged. The merged table is used for analysis, which is unsupervised machine learning model to create clusters of high-rate violence and low rated violence. Data for US territories were collected in the year 2015 or before and was considered unsatisfactory for our study.

Observations

Gun Related Death - % calculated per 100,000 population

Comparison Between States with Highest and Lowest Gun Violence Deaths:

  1. The state with the lowest death is Rhode Island with 3.28% death and Gun Law Strictness grade of 90.
  2. It is observed that Rhode Island has a lower Poverty Rate, population diversity, lower number of Families, higher population density and higher median family income compared to Mississippi, the state with the higher % of gun related deaths (22.81%).
  3. These observations are also reflected when comparing data between states classified as high gun Violence and Low Gun-Violence

Gun1

image

Gun3

Gun4

State of Alaska

  1. Alaska has high median income, and high government expenditure on social welfare, all factors which point towards low gun related violence. However that is not the case as it is one of the highest with 20.74%.

Conclusion

image

  1. The trend observed is that states with higher density have higher income and lower poverty rates, with lower gun related deaths.
  2. Religious factors and happiness index can also be considered into the study to improve the clusters.
  3. The elbow curve for K-means cluster gives us a value of 4.
  4. On creating 4 clusters we observe that the algorithm grouped Alaska and Hawaii into one cluster, preferably for being outliers to the data collected and analyzed. Area, denisty, population and income statistics do not follow the trend observed in the rest of the states.

About

The aim of this study is to visualize the gun violence data collected for the year 2018 and highlight what I think are the most important Factors contributing to gun violence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published