Analysis for Correlation Between the Number of Gun Laws by State and Gun Related Mortality Rate

in #statistics7 years ago (edited)


Source

Pre Evaluation Disclaimer

I have not yet done any analysis on this subject and would like to now state that my findings are not used to push any political agenda. I am purely looking for a correlation between the subjects at hand and since many may find the subject controversial I figured I would write this statement beforehand. I will gladly accept that the data I used for this evaluation was not the best that could be but due to the limited amount of data made easily accessible on the subject it is the best I can do. If any organization does do a complete study on this I would hope it is held to much higher standards and to a higher rigor. If you are skeptical of the outcome then please double check it and state your findings (with the math shown or at least linked to a google sheet). I hope you enjoy.

As a precursor to this, I would like to state my bias towards this subject. I personally have friends and family that go hunting and personally support one to have the right to do so. At the same time I also don't believe that the extremely simple accessibility to assault weapons found in certain states is too unrestrictive. I do not want this to seem like some form of biased mathematics towards gun control but was an honest experiment, for myself, to see what the math stated. I figured I would share my findings for anyone to see, criticize (with honest feedback), and possibly help improve the work. Another thing is that this project could be something that could be easily done by high school (secondary) students for a statistics project if they needed. The work of this was derived directly from my high school (secondary) statistics project for IB which was done to look for a correlation between GDP per capita and mean life expectancy of a country. Due to the heavy amount of data being used in this I have decided to restrict some to a semi public (anyone with link) google spreadsheet as there are a total of 392 (2*11*9+2*11*2+3*50) cells being used at minimum.

Limitations


Now there are limitations in this analysis as it does not look at the type of laws but only the number of laws. I did the analysis twice in 2 different formats to see if it was just by chance due to the limited number of data points.

The Hypotheses

  • Null Hypothesis: Gun related mortality rates are not correlated with the number of gun laws.
  • Alternative Hypothesis: Gun related mortality rates are correlated with the number of gun laws.

TL;DR


I rejected the null hypothesis accepting the alternative hypothesis with approximately a 0.10%-1.0% chance of there not being a correlation.

The Data


StateMortality Rate Per 100,000Number of Laws
Alabama19.610
Arkansas16.910
Alaska23.44
Arizona13.811
California7.7106
Colorado12.630
Connecticut5.389
Delaware12.140
Florida12.021
Georgia14.16
Hawaii3.678
Idaho14.74
Illinois9.564
Indiana12.712
Iowa7.824
Kansas11.47
Kentucky15.27
Louisiana 20.412
Maine9.812
Mairyland11.964
Massachusets3.0100
Michigan11.721
Minnesota7.441
Mississippi19.65
Missouri18.16
Montana19.24
Nebraska8.922
Nevada14.921
New Hampshire8.99
New Jersey5.474
New Mexico18.610
New York4.275
North Carolina12.530
North Dakota12.813
Ohio11.916
Oklahoma189
Oregon11.435
Pennsylvania11.436
Rhode Island4.743
South Carolina17.312
South Dakota11.15
Tennessee16.022
Texas11.718
Utah12.813
Vermont9.66
Virginia10.913
Washington9.843
West Virginia14.021
Wisconsin10.423
Wyoming19.69

Now for breaking down the data I had decided to do so by breaking it down into specific intervals. Number of gun laws was broken down into intervals of 11 in the first test and intervals of 55 in the second; mortality rate was broken into intervals of 2 in each except the first interval was 4. To save space going through the tables of calculating the expected values for each cells (11x9 and 11x2) and to save space I will show you one of the observed and expected output tables (the smaller one) and link to my spreadsheet containing both of the tables.


(Image is link)

Degree of freedomChi Squared Value99% Critical Value5% Critical Value0.1% Critical Value
1026.494859312.55818.30729.588
80118.425356553.540101.879124.839

Now for those that have not kept up to date with their statistics I will explain what these categories actually mean. The 99% critical value states that there is a 99% chance that the value, if correlated, will be above that value, same with the 5% and 0.1%. Now in statistics, for biology at least, we tend to look specifically at the 5% critical value and if it passes there we deem a correlation. As you can see, our chi squared value is greater than the 5% in both cases but not the 0.1%. Upon looking at the critical values further we can deduce that the p-value (critical value) would be somewhere between 1% and 0.1% for both tests meaning that there is, at most, a 1% chance that these two items are not correlated. For this reason I reject my null hypothesis and accept my alternative hypothesis.

Resources


Picture: www.picserver.org/g/gun-control.html
Critical Values: www.uam.es/personal_pdi/ciencias/anabz/Prest/Trabajos/Critical_Values_of_the_Chi-Squared_Distribution.pdf
Gun Related Mortality Rates: www.cdc.gov/nchs/pressroom/sosmap/firearm_mortality/firearm.htm
Gun Laws by State: www.inverse.com/article/37141-state-gun-law-maps
Continued for Verifacation: www.gunlawsbystate.com/
Google Spreadsheet: docs.google.com/spreadsheets/d/1FMZIzhpNjP1CK4phCIFyB89sMWua9UeO45tVM-1S0qE/edit?usp=sharing
Google Doc: docs.google.com/document/d/1ptZCiNzX6beD0Xxm2-wXRejTZ1ZGmmLqwtm_GYFH_Dc/edit?usp=sharing

For further reading on chi-squared test, look at the following sources:

  • en.wikipedia.org/wiki/Chi-squared_test
  • www.statisticshowto.com/probability-and-statistics/chi-square/
  • stattrek.com/online-calculator/chi-square.aspx
  • math.hws.edu/javamath/ryan/ChiSquare.html
  • www.statisticshowto.com/expected-frequency/
  • www.statisticshowto.com/how-to-find-a-critical-chi-square-value/
  • www.khanacademy.org

Thank you for taking the time to read. Please reply with any comments you have, or any criticism about how I did things. I haven't stepped foot in a statistics class, on this subject, in over 2 years so this project was definitely different from what I am used to.


Kryzsec's Steemit Board


Sort:  

Nice one brother it is good..
Keep it up

Thanks. I am glad you liked it