Skip to content

Comparison of different methods for electoral seats allocation. (D'Hondt, Hare-Niemeyer, Sainte-Laguë, modified Sainte-Laguë.)

License

Notifications You must be signed in to change notification settings

abcs-ab/Elections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comparison of different methods for electoral seats allocation.

(Calculations are based on the result of Polish Sejm elections, that took place in 2019.)

The following methods are compared to each other:


You can take a look at the elections.html or run the elections.ipynb notebook yourself.

If you choose the latter and would like to reproduce the exact results, then I'd recommend using Anaconda3-4.0.0 environment.
Alternatively, you can download any of Anaconda distributions and create a virtual env with Python 3.5.4.

$ conda create -n your_env python=3.5.4

$ conda activate your_env

Then, you can install modules with versions listed in requirements.txt.
To do that, the following pip command should be sufficient:

$ pip install -r requirements.txt

Now, you should be good to go with:

$ jupyter notebook

Results of Polish "Sejm" elections held in 2015 and 2019:

2015

2019

Contact

If you find a bug, typo or have any questions, Please feel free to contact me.

License

MIT

About

Comparison of different methods for electoral seats allocation. (D'Hondt, Hare-Niemeyer, Sainte-Laguë, modified Sainte-Laguë.)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published