Forecasting French elections with Bayesian Statistics
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 . 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