Skip to content

2024 US presidential election model and simulation (daily data updates until election)

License

Notifications You must be signed in to change notification settings

acbass49/Election2024

Repository files navigation

Election Model Using Bayesian Heirarchal Regression

I created an election model using hierarchal beta regression of the latest polls for 2024 US Presidential Election. You can follow daily updates on my 2024 US Presidential Election Dashboard and I wrote up a few notes about this on my blog here.

Daily updated predictions, election simulations, and tracking data will be stored in the data folder for use by others if desired.

My data pipeline is visualized above and decribed below. This runs daily via github actions.

  1. Load the polling data freely available on fivethirtyeight from a URL.
  2. Process the data in Python
  3. Estimate the model in Python (pymc)
  4. Save the daily outputs in this repository
  5. Later in the day, my dashboard loads these outputs (also via github actions) and generates three interactive figures displayed on my quarto website. This step is done in my quarto website repository; not in this one.

If you are looking for technical description of the model methodology, that is here.

Feel free to clone my work or use in any way.

About

2024 US presidential election model and simulation (daily data updates until election)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages