in ,

the-trace-and-buzzfeed-news / federal-crime-data-analysis, Hacker News

the-trace-and-buzzfeed-news / federal-crime-data-analysis, Hacker News


                    

        

Click here for a detailed description of the data sources , methodology, and findings

This repository includes methodologies, data, and code supporting the following articles, published by The Trace and BuzzFeed News:

  • “Shoot Someone In A Major US City, And Odds Are You’ll Get Away With It “(January 24, 2019) –The Trace/BuzzFeed News
  • “5 Things To Know About Cities’ Failure To Arrest Shooters” (January 24, 2019) –The Trace/BuzzFeed News

Click here for additional data and code from The Trace and BuzzFeed News’s collaboration.

The analysis is based, primarily, on three major datasets collected and published by the Federal Bureau of Investigation (FBI): Return A data, Supplementary Homicide Report data, and the National Incident-Based Reporting System. Each serves different purposes (for the FBI, and for our analyzes), and each has different benefits and drawbacks. A detailed explanation of each can be found in the methodology linked above.

The FBI’s raw data files require many gigabytes of storage in total, and so are not directly included in this repository. The Trace and BuzzFeed News haveuploaded the raw files to the Internet Archive, where you can download them.

The raw Return A, NIBRS, and SHR data are formatted entirely differently from one another, use different terminology, different variables, and different data structures. To facilitate the combination and comparison of these three datasets, The Trace and BuzzFeed News created “standardized” versions of them all. You can find the standardized data in the(data / standardized)directory, and data dictionary of the standardized datasets in thedocumentation /folder.

The code to standardize the raw data can be found in the three Jupyter notebooks, written in the Python programming language, in thenotebooks / standardizedirectory. Each notebook processes one of the three main federal datasets, and saves a standardized version to thedata / standardizeddirectory.

The code to analyze the standardized data can be found in the four Jupyter notebooks, written in the Python programming language, in thenotebooks / analyzedirectory. Each of the first three notebooks analyzes one of the three federal datasets; the fourth compares findings from the three datasets to one another. The findings are also summarized in the methodology linked in the first section of this document.

The data in this repository is a standardization of raw FBI data, from the three data collection programs described above. We have carefully checked the accuracy of our analysis, and shared our findings numerous experts in the law enforcement field prior to publication. We are sharing our data, methodology, and code in order to support further research and reporting on gun violence. However, users of this data may wish to independently verify the accuracy of their findings prior to making them public, as The Trace and Buzzfeed make no representations or warranties as to any third party use of this data.

Executing the notebooks above, in order, will reproduce the findings. You will need Python 3 installed, as well as the Python libraries specified in this repository’sPipfile.

Before running the standardization code, you will need to download the raw data files from the Internet Archive, and place them in the (data / raw) directory, so that that folder’s structure becomes:

data /     raw /         nibrs /         reta /         shr /

You do not need to run the standardization code (which can take several hours to finish) in order to run the analysis code. But if you choose not to run the standardization code, you will first need to unzip thedata / standardized / nibrs-victims.csv.zipanddata / standardized / nibrs-victims.csv.zipfiles in order for the analysis to work.

All code in this repository is available under theMIT License. The standardized data files are available under theCreative Commons Attribution 4.0 International(CC BY 4.0) license.

For questions or feedback, please contact Jeremy Singer-Vine ([email protected]) and Sarah Ryley ([email protected]).

  

Brave Browser
Read More
Payeer

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Sony 'Always Looking' to Buy More Studios to Make PlayStation 5 Exclusives, Crypto Coins News

Sony 'Always Looking' to Buy More Studios to Make PlayStation 5 Exclusives, Crypto Coins News

Ayodhya Verdict LIVE Updates: Muslim litigants optimistic about favorable Supreme Court judgment, say 'no reason to doubt outcome' – Firstpost, Firstpost.com

Ayodhya Verdict LIVE Updates: Muslim litigants optimistic about favorable Supreme Court judgment, say 'no reason to doubt outcome' – Firstpost, Firstpost.com