pollsposition / models

Forecasting πŸ‡«πŸ‡· elections with Bayesian statistics πŸ₯³

Home Page:https://alexandorra.github.io/pollsposition_blog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forecasting French elections with Bayesian Statistics

Electoral forecasting models for the PollsPosition project

Beyond electoral forecasting, this repository represents a sandbox that I use to learn and experiment with new statistical methods on real data. All models are open-sourced and built with PyMC3 and ArviZ. Notice a bug or have a suggestion? It goes without saying that issue tickets and pull requests are always welcome 🀩

I am currently migrating the old website to a new infrastructure. This is still in the making, but going forward the idea is that each model we develop will have its own interactive dashboard (ideally all hosted at the same place, but that's not guaranteed) and its own tutorial notebooks (which are all gathered in a readable format here)

  • The most recent model we worked on is a Gaussian Process regression to predict how French president's popularity evolves with time.

  • In 2020, I experimented with a hierarchical multinomial model to forecast Paris city-council elections. You can vizualize the plots and results in an interactive VoilΓ  web app by clicking this button Binder. Lots of amazing things -- coded by awesome people -- are happening under the hood when you click this button, so there may sometimes be some latency. But I think it will be worth your 10-second wait πŸ₯³

  • You like videos? Well, who doesn't? I'm happy to say it's your lucky day: I just gave a talk at PyMCon 2020, going through and explaining this exact model. So, sit down in your long chair, get the 🍿, and enjoy the ride 🎬

You are free to use the models and data uploaded here -- just make sure you properly cite and link to this repository. Feel free to reach out for any question, comment or contribution.

Best Bayesian wishes πŸ––

About

Forecasting πŸ‡«πŸ‡· elections with Bayesian statistics πŸ₯³

https://alexandorra.github.io/pollsposition_blog/

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%