Skip to content

MrvKrt/Turkish_Election_Forecasting_2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2023 Turkish Election Forecast (Türkiye 2023 Seçimleri Tahmini)

GNU General Public License v3.0 Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.

We simulate 50000 draws from a Dirichlet distribution for each poll.

The probability distribution function of a Dirichlet distribution is:

${x_1, \dots, x_K} \sim\frac{1}{B(\boldsymbol{\alpha})}\prod_{i=1}^Kx_i^{\alpha_i - 1}$ with $K\le 2$, $x_i \in (0,1)$, and $\sum_{i=1}^Kx_i = 1$.

Our $x_i$ are the poll percentages for each party $i$.

The probability of victory for each party is the number of draws out of the total in which the simulated election is won by the respective party.


Updated: 10.11.2022


Sources: https://tr.wikipedia.org/wiki/Ülke_çapında_2023_Türkiye_genel_seçimleri_için_yapılan_anketler https://tr.wikipedia.org/wiki/2018_Türkiye_genel_seçimleri_için_yapılan_anketler

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published