


Straw polls -> real polls






Image credit: Pew Research Center
*Polls can also go wrong if they have bad question wording, a fourth type of survey error called "measurement error"






Uncertainty is propogated throughout the models, incorporated via MCMC sampling in step 3.



vote ~ incumbent_running:economic growth:polarization + approval
Model trained on 1948-2016 using elastic net regression with leave-one-out cross-validation

RMSE = 2.6 percentage points on two-party Democratic vote share
Can do with any series of packages for R, other statistical languages
Can do with any series of packages for R, other statistical languages

mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T + mu_b_prior; for (i in 1:(T-1)) mu_b[:, T - i] = cholesky_ss_cov_mu_b_walk * raw_mu_b[:, T - i] + mu_b[:, T + 1 - i];national_mu_b_average = transpose(mu_b) * state_weights;mu_c = raw_mu_c * sigma_c;mu_m = raw_mu_m * sigma_m;mu_pop = raw_mu_pop * sigma_pop;e_bias[1] = raw_e_bias[1] * sigma_e_bias;sigma_rho = sqrt(1-square(rho_e_bias)) * sigma_e_bias;for (t in 2:T) e_bias[t] = mu_e_bias + rho_e_bias * (e_bias[t - 1] - mu_e_bias) + raw_e_bias[t] * sigma_rho;//*** fill pi_democratfor (i in 1:N_state_polls){ logit_pi_democrat_state[i] = mu_b[state[i], day_state[i]] + mu_c[poll_state[i]] + mu_m[poll_mode_state[i]] + mu_pop[poll_pop_state[i]] + unadjusted_state[i] * e_bias[day_state[i]] + raw_measure_noise_state[i] * sigma_measure_noise_state + polling_bias[state[i]];}
Notable improvements* from controlling for partisan nonresponse and other weighting issues

*In 2016, but not 2020





Ultimately, we're still figuring out the answer....




Book comes out July 12 2022
Website: gelliottmorris.com
Twitter: @gelliottmorris
These slides were made using the xaringan package for R. They are available online at https://www.gelliottmorris.com/slides/

Keyboard shortcuts
| ↑, ←, Pg Up, k | Go to previous slide |
| ↓, →, Pg Dn, Space, j | Go to next slide |
| Home | Go to first slide |
| End | Go to last slide |
| Number + Return | Go to specific slide |
| b / m / f | Toggle blackout / mirrored / fullscreen mode |
| c | Clone slideshow |
| p | Toggle presenter mode |
| t | Restart the presentation timer |
| ?, h | Toggle this help |
| Esc | Back to slideshow |