- Melanie Nolker (mnolker)
- Lisa Stroh (Lisb020)
- Kathy Nguyen (kcknguyen)
- April Lagnevall (alagnevall)
- Haifa Najdawi (HaifaNajdawi)
- Does weather have an impact on a crime? Find if there is a correlation in non-traffic crime in the city of Denver compared to various weather conditions.
- Hypothesis: Weather has an impact on non-traffic crime in Denver.
- Null Hypothesis: Weather does not effect non-traffic crime in Denver.
- Is there a correlation between crime & weather?
- What type of offenses will be used to analyze crime rates?
- What weather conditions will be used to compare to offenses?
- Denver city crime from 1-1-2016 to 9-9-20.csv
- filter for "Is Crime" = 1
- excluded traffic related offenses
- Grouped .csv data by:
- Occurrence_date
- OFFENSE_TYPE_ID
- OFFENSE_CATEGORY_ID
- Weather API = https://www.worldweatheronline.com/developer/api/docs/historical-weather-api.aspx#qparameter
- API and pulls weather data for every day from 1/1/2016 to 8/31/2020
- pull muliple weather conditions
- avg temperature (F)
- avg precipitation (inches)
- avg cloud cover (%)
- avg wind speed (mph)
Scatter plot of Number of criminal offenses & Weather measures (y-axes) over 5 years (x-axis):
To further explore the seasonality of crime data in Denver: Grouped 5 years data by months to view in boxplots the distribution of the data’s yearly seasonality
Bar chart of Offense type Split by Temp Mean: (see Jypyter notebook for split of other weather conditions)
Reject Null Hypothesis:
- Avg Temp (F) = 9.06 e-42
- Cloud Cover (%) = 2.23 e-06
- Precipitation (in) = 1.02 e-13
- Wind Speed (mph) = 0.89
The results of the correlating (r-value) # offenses to each weather condition indicate a weak relationship between crime and weather conditions:
- Avg Temp (F) = 0.32
- Cloud Cover (%) = -0.18
- Precipitation (in) = -0.11
- Wind Speed (mph) = -0.0
- Project coordinator / merger - Melanie
- Crime dataset anaysis:
- Kathy
- April
- Weather dataset analysis:
- Haifa
- Lisa