Bring in Presidential Data

This is from 2012, 2016, and 2020.

pres_data <- read.csv("~/Documents/associated press/expected_vote/county_pres_turnout_data.csv") %>% filter(abbrv == "MI")

Correlation Analysis

There is basically no correlation between the previous election year’s closeness and turnout the next presidential election.

pres_data %>%
  ggplot() +
  geom_point(aes(x = abs_diff_from_0.5,y = turnout))

#checking for correlation between closeness of 2016 and turnout in 2020
cor(pres_data$abs_diff_from_0.5[pres_data$elyr == 2016],pres_data$turnout[pres_data$elyr == 2020])
## [1] -0.1342088
#doing the same thing but for 2012 -> 2016
cor(pres_data$abs_diff_from_0.5[pres_data$elyr == 2012],pres_data$turnout[pres_data$elyr == 2016])
## [1] 0.08922919

Try with a different swing state (Arizona)

We get a weak correlation for 2012 -> 2016 but I would not consider this very useful

pres_data <- read.csv("~/Documents/associated press/expected_vote/county_pres_turnout_data.csv") %>% 
  filter(abbrv == "AZ")

pres_data %>%
  ggplot() +
  geom_point(aes(x = abs_diff_from_0.5,y = turnout))

#checking for correlation between closeness of 2016 and turnout in 2020
cor(pres_data$abs_diff_from_0.5[pres_data$elyr == 2016],pres_data$turnout[pres_data$elyr == 2020])
## [1] -0.04728423
#doing the same thing but for 2012 -> 2016
cor(pres_data$abs_diff_from_0.5[pres_data$elyr == 2012],pres_data$turnout[pres_data$elyr == 2016])
## [1] -0.2674588

Statewide Analysis

A statewide analysis really means to me that the statewide numbers are being used as units of analysis for national which is too big for this one factor to really get to. Even with that being said we only get weak negative correlation.

pres_data <- read.csv("~/Documents/associated press/expected_vote/county_pres_turnout_data.csv") %>% 
  distinct(elyr,stanum,.keep_all = T) %>%
  select(-ctynum,-full_cty_nam,-vote,-dem_two_party_pct,-abs_diff_from_0.5,-turnout) %>% 
  filter(repunit != "North Dakota")

pres_data %>%
  ggplot() +
  geom_point(aes(x = statewide_abs_diff_from_0.5,y = statewide_turnout))

#checking for correlation between closeness of 2016 and turnout in 2020
cor(pres_data$statewide_abs_diff_from_0.5[pres_data$elyr == 2016],pres_data$statewide_turnout[pres_data$elyr == 2020])
## [1] -0.397483
#doing the same thing but for 2012 -> 2016
cor(pres_data$statewide_abs_diff_from_0.5[pres_data$elyr == 2012],pres_data$statewide_turnout[pres_data$elyr == 2016])
## [1] -0.3925933

Conclusion

I had the theory that this might be useful but based on the data that is clearly false.