his report delves into the historical data from the U.S. National Oceanic and Atmospheric Administration’s (NOAA) storm database to uncover the most impactful weather events on human health and economic stability. Through meticulous data processing and exploratory analysis, we identify which types of severe weather events have led to the highest number of fatalities, injuries, and property damage across the United States. The analysis spans from 1950 to November 2011, providing insights that can inform policy and preparedness measures for future weather-related incidents.
Here, we delve into the heart of our investigation, examining the health and economic impacts of weather events. We compute the total fatalities and injuries to gauge health implications, and aggregate property and crop damage estimates to understand economic losses. This analysis aims to pinpoint the event types that pose the greatest risk to public health and economic security.
library(readr)
library(dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
library(ggplot2)
storm_data <- readr::read_csv("C:/Users/hhaff/Downloads/Storm/repdata_data_StormData.csv.bz2",show_col_types = FALSE)
head(storm_data)
## # A tibble: 6 × 37
## STATE__ BGN_DATE BGN_TIME TIME_ZONE COUNTY COUNTYNAME STATE EVTYPE BGN_RANGE
## <dbl> <chr> <chr> <chr> <dbl> <chr> <chr> <chr> <dbl>
## 1 1 4/18/1950… 0130 CST 97 MOBILE AL TORNA… 0
## 2 1 4/18/1950… 0145 CST 3 BALDWIN AL TORNA… 0
## 3 1 2/20/1951… 1600 CST 57 FAYETTE AL TORNA… 0
## 4 1 6/8/1951 … 0900 CST 89 MADISON AL TORNA… 0
## 5 1 11/15/195… 1500 CST 43 CULLMAN AL TORNA… 0
## 6 1 11/15/195… 2000 CST 77 LAUDERDALE AL TORNA… 0
## # ℹ 28 more variables: BGN_AZI <chr>, BGN_LOCATI <chr>, END_DATE <chr>,
## # END_TIME <chr>, COUNTY_END <dbl>, COUNTYENDN <lgl>, END_RANGE <dbl>,
## # END_AZI <chr>, END_LOCATI <chr>, LENGTH <dbl>, WIDTH <dbl>, F <dbl>,
## # MAG <dbl>, FATALITIES <dbl>, INJURIES <dbl>, PROPDMG <dbl>,
## # PROPDMGEXP <chr>, CROPDMG <dbl>, CROPDMGEXP <chr>, WFO <chr>,
## # STATEOFFIC <chr>, ZONENAMES <chr>, LATITUDE <dbl>, LONGITUDE <dbl>,
## # LATITUDE_E <dbl>, LONGITUDE_ <dbl>, REMARKS <chr>, REFNUM <dbl>
str(storm_data)
## spc_tbl_ [902,297 × 37] (S3: spec_tbl_df/tbl_df/tbl/data.frame)
## $ STATE__ : num [1:902297] 1 1 1 1 1 1 1 1 1 1 ...
## $ BGN_DATE : chr [1:902297] "4/18/1950 0:00:00" "4/18/1950 0:00:00" "2/20/1951 0:00:00" "6/8/1951 0:00:00" ...
## $ BGN_TIME : chr [1:902297] "0130" "0145" "1600" "0900" ...
## $ TIME_ZONE : chr [1:902297] "CST" "CST" "CST" "CST" ...
## $ COUNTY : num [1:902297] 97 3 57 89 43 77 9 123 125 57 ...
## $ COUNTYNAME: chr [1:902297] "MOBILE" "BALDWIN" "FAYETTE" "MADISON" ...
## $ STATE : chr [1:902297] "AL" "AL" "AL" "AL" ...
## $ EVTYPE : chr [1:902297] "TORNADO" "TORNADO" "TORNADO" "TORNADO" ...
## $ BGN_RANGE : num [1:902297] 0 0 0 0 0 0 0 0 0 0 ...
## $ BGN_AZI : chr [1:902297] NA NA NA NA ...
## $ BGN_LOCATI: chr [1:902297] NA NA NA NA ...
## $ END_DATE : chr [1:902297] NA NA NA NA ...
## $ END_TIME : chr [1:902297] NA NA NA NA ...
## $ COUNTY_END: num [1:902297] 0 0 0 0 0 0 0 0 0 0 ...
## $ COUNTYENDN: logi [1:902297] NA NA NA NA NA NA ...
## $ END_RANGE : num [1:902297] 0 0 0 0 0 0 0 0 0 0 ...
## $ END_AZI : chr [1:902297] NA NA NA NA ...
## $ END_LOCATI: chr [1:902297] NA NA NA NA ...
## $ LENGTH : num [1:902297] 14 2 0.1 0 0 1.5 1.5 0 3.3 2.3 ...
## $ WIDTH : num [1:902297] 100 150 123 100 150 177 33 33 100 100 ...
## $ F : num [1:902297] 3 2 2 2 2 2 2 1 3 3 ...
## $ MAG : num [1:902297] 0 0 0 0 0 0 0 0 0 0 ...
## $ FATALITIES: num [1:902297] 0 0 0 0 0 0 0 0 1 0 ...
## $ INJURIES : num [1:902297] 15 0 2 2 2 6 1 0 14 0 ...
## $ PROPDMG : num [1:902297] 25 2.5 25 2.5 2.5 2.5 2.5 2.5 25 25 ...
## $ PROPDMGEXP: chr [1:902297] "K" "K" "K" "K" ...
## $ CROPDMG : num [1:902297] 0 0 0 0 0 0 0 0 0 0 ...
## $ CROPDMGEXP: chr [1:902297] NA NA NA NA ...
## $ WFO : chr [1:902297] NA NA NA NA ...
## $ STATEOFFIC: chr [1:902297] NA NA NA NA ...
## $ ZONENAMES : chr [1:902297] NA NA NA NA ...
## $ LATITUDE : num [1:902297] 3040 3042 3340 3458 3412 ...
## $ LONGITUDE : num [1:902297] 8812 8755 8742 8626 8642 ...
## $ LATITUDE_E: num [1:902297] 3051 0 0 0 0 ...
## $ LONGITUDE_: num [1:902297] 8806 0 0 0 0 ...
## $ REMARKS : chr [1:902297] NA NA NA NA ...
## $ REFNUM : num [1:902297] 1 2 3 4 5 6 7 8 9 10 ...
## - attr(*, "spec")=
## .. cols(
## .. STATE__ = col_double(),
## .. BGN_DATE = col_character(),
## .. BGN_TIME = col_character(),
## .. TIME_ZONE = col_character(),
## .. COUNTY = col_double(),
## .. COUNTYNAME = col_character(),
## .. STATE = col_character(),
## .. EVTYPE = col_character(),
## .. BGN_RANGE = col_double(),
## .. BGN_AZI = col_character(),
## .. BGN_LOCATI = col_character(),
## .. END_DATE = col_character(),
## .. END_TIME = col_character(),
## .. COUNTY_END = col_double(),
## .. COUNTYENDN = col_logical(),
## .. END_RANGE = col_double(),
## .. END_AZI = col_character(),
## .. END_LOCATI = col_character(),
## .. LENGTH = col_double(),
## .. WIDTH = col_double(),
## .. F = col_double(),
## .. MAG = col_double(),
## .. FATALITIES = col_double(),
## .. INJURIES = col_double(),
## .. PROPDMG = col_double(),
## .. PROPDMGEXP = col_character(),
## .. CROPDMG = col_double(),
## .. CROPDMGEXP = col_character(),
## .. WFO = col_character(),
## .. STATEOFFIC = col_character(),
## .. ZONENAMES = col_character(),
## .. LATITUDE = col_double(),
## .. LONGITUDE = col_double(),
## .. LATITUDE_E = col_double(),
## .. LONGITUDE_ = col_double(),
## .. REMARKS = col_character(),
## .. REFNUM = col_double()
## .. )
## - attr(*, "problems")=<externalptr>
In this section, we load the storm event data and perform initial cleaning steps. This includes handling missing values, ensuring correct data types, and establishing a consistent format for analysis. This foundational step is crucial for the accuracy and reliability of our subsequent findings.
storm_data <- storm_data %>%
filter(!is.na(FATALITIES), !is.na(INJURIES)) %>%
mutate(TOTAL_IMPACT = FATALITIES + INJURIES)
health_impact <- storm_data %>%
group_by(EVTYPE) %>%
summarise(Total_Fatalities = sum(FATALITIES, na.rm = TRUE),
Total_Injuries = sum(INJURIES, na.rm = TRUE)) %>%
arrange(desc(Total_Fatalities), desc(Total_Injuries))
economic_impact <- storm_data %>%
group_by(EVTYPE) %>%
summarise(Property_Damage = sum(PROPDMG, na.rm = TRUE),
Crop_Damage = sum(CROPDMG, na.rm = TRUE)) %>%
arrange(desc(Property_Damage), desc(Crop_Damage))
In interpreting our results, we discuss the significance of the identified trends and their potential implications. This section transforms numerical data into narrative form, providing a clear understanding of which weather events are most detrimental and therefore may require targeted intervention.
# Adding a small constant to fatalities to avoid log(0)
health_impact$Total_Fatalities <- health_impact$Total_Fatalities + 1
# Now let's create the plot limiting to the top N event types to avoid clutter
top_n <- 20 # for example, the top 20 event types
health_impact_top_n <- health_impact %>%
top_n(top_n, wt = Total_Fatalities)
ggplot(health_impact_top_n, aes(x = reorder(EVTYPE, Total_Fatalities), y = Total_Fatalities)) +
geom_bar(stat = "identity", fill = "steelblue") +
scale_y_log10(labels = scales::comma) +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1, size = 7),
plot.title = element_text(hjust = 0.5)) +
labs(title = "Top 20 Health Impact of Weather Events - Fatalities",
x = "Event Type",
y = "Total Fatalities (log scale)")
# Plot for Health Impact (Injuries)
# Add a small constant to the injuries count to handle zeroes
health_impact$Total_Injuries <- health_impact$Total_Injuries + 1
# Limit to top event types for clarity
health_impact_top_n <- health_impact %>%
top_n(top_n, wt = Total_Injuries)
# Create the plot for Injuries
ggplot(health_impact_top_n, aes(x = reorder(EVTYPE, Total_Injuries), y = Total_Injuries)) +
geom_bar(stat = "identity", fill = "darkgreen") +
scale_y_log10(labels = scales::comma) +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1, size = 7),
plot.title = element_text(hjust = 0.5)) +
labs(title = "Top 20 Health Impact of Weather Events - Injuries",
x = "Event Type",
y = "Total Injuries (log scale)")
# Plot for Economic Impact (Property Damage)
# Add a small constant to the damage amounts to handle zeroes
economic_impact$Property_Damage <- economic_impact$Property_Damage + 1
# Limit to top event types for clarity
top_n <- 20
economic_impact_top_n <- economic_impact %>%
top_n(top_n, wt = Property_Damage)
# Create the plot for Property Damage
ggplot(economic_impact_top_n, aes(x = reorder(EVTYPE, Property_Damage), y = Property_Damage)) +
geom_bar(stat = "identity", fill = "darkred") +
scale_y_log10(labels = scales::comma) +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1, size = 7),
plot.title = element_text(hjust = 0.5)) +
labs(title = "Top 20 Economic Impact of Weather Events - Property Damage",
x = "Event Type",
y = "Property Damage (log scale)")
Our investigation reveals a diverse range of weather events with varying degrees of impact on public health and economic stability. The most harmful events to population health are not necessarily the most costly in economic terms, and vice versa. This analysis underscores the need for a multifaceted approach to weather preparedness and response, taking into account the unique challenges posed by different types of severe weather events.
To reiterate, the analysis of the NOAA Storm Database has brought to light the specific weather events that historically have had the most significant impact on human health and economic conditions. By leveraging this data, stakeholders can better allocate resources, enhance preparedness protocols, and implement more effective response strategies to mitigate the adverse effects of severe weather phenomena.