Blog Post 7: The Ground Game

Alex Heuss

2024/10/21

This week, I started by re-running my national popular vote prediction model from past weeks with updated poll numbers from this week.

##            s1
## [1,] 49.06439
## [2,] 47.90759

The model’s predictions have not changed much from last week, Kamala Harris’ popular vote share shrank by about 0.02 percentage points and Donald Trump’s grew by 0.001 percentage points. It seems like if I continue to hold my LASSO model constant, the two candidates will probably remain about the same in the popular vote share prediction unless there are significant polling shifts.

Electoral College Predictions

In my electoral prediction model this week, I updated the polling data with polls from this week and changed the value I use to represent partisan identification. Last week, I made a mistake in my model and instead of using swing in party identification from one election to the next, I used the partisan identification of the state during the last election. I corrected it in this week’s model. I also added a variable for open primaries (states that, in 2024, have a lot more registered independent voters than democrats and republicans combined), and controlled for it in an attempt to minimize the issues with the party identification variable for 2024.

WinnerStates WonElectors
Democrat21263
Republican29272

Taking a look at the full election results, once again Kamala Harris loses the electoral college. DC is also not included in my model this week, but will almost certainly go to Harris, which would bring teh vote totals to 266 for Harris and 272 for Trump.

The next table visualizes the swing state breakdown.

StateWinnerMargin
MichiganDemocrat3.9852186
PennsylvaniaDemocrat1.5026237
WisconsinDemocrat2.6973706
ArizonaRepublican-2.6033523
GeorgiaRepublican-1.3832750
NevadaRepublican-0.9808848
North CarolinaRepublican-4.8247507

My model predicts Harris to win Michigan, Pennsylvania and Wisconsin while Trump wins Arizona, Georgia, Nevada and North Carolina.

Finally, here’s a look at the full map.

An Attempt at Lasso Regression for Electoral College Predictions

This week, I also wanted to try using a more sophisticated method for model selection and tried to run a LASSO prediction on my state-level data. After struggling with imputation and matrices for awhile, my model promptly predicted that Kamala Harris would win at least -35,000 percent of the vote share and Donald Trump at least -81,000. Due to the highly inaccurate nature of these predictions, I instead took the features LASSO suggested and fed them back into a linear model.

This model spit out some possible, but not necessarily realistic estimates for the states that currently have polling data (mostly toss up states or states that lean one way or another).

statesimp_pred_demsimp_pred_repwinner
Arizona44.7895755.21043Republican
California59.6472840.35272Democrat
Florida42.9621657.03784Republican
Georgia45.0768154.92319Republican
Maryland61.6080638.39194Democrat
Michigan46.5400253.45998Republican
Minnesota48.6444751.35553Republican
Missouri38.6750361.32497Republican
Montana36.6910063.30900Republican
Nebraska35.2258264.77418Republican
Nevada46.4918253.50818Republican
New Hampshire49.1223550.87765Republican
New Mexico50.7168649.28314Democrat
New York54.8492945.15071Democrat
North Carolina44.8243955.17561Republican
Ohio41.5436058.45640Republican
Pennsylvania46.0421353.95787Republican
Texas42.1528957.84711Republican
Virginia49.6564450.34356Republican
Wisconsin45.6509554.34905Republican

These results would suggest a pretty rough outcome for the Democrats in November. I unfortunately was unable to secure a possible prediction for vote share using the LASSO linear regression coefficients for states without polling data (the Democrats managed negative vote share and the Republicans more than 100). I hope to correct the error in my LASSO model for next week, but this week will have to stick with last week’s model detailed in the previous section.