Skip to content

Implementation of biproportional algorithm, d'Hondt and Webster divisor methods and some desproportionality indices in python.

License

Notifications You must be signed in to change notification settings

serfersan/Proportional-representation

Repository files navigation

Proportional-representation

Python script created as part of a Master's Thesis.

Includes:

  • Webster and Jefferson methods implemented
  • Class for seat calculation and electoral weight manipulation
  • Biproportional algorithm implemented via auxiliary functions also included
    • The algorithm uses d'Hondt divisor method for calculating the column restrictions of the seat matrix (seats obtained by each party)
    • It uses Sainte-Laguë divisor method for allocation of seats in columns and seat transfer
  • Some index of disproportionality implemented (Gallagher, Loosemore-Hanby, Jefferson (any %), Sainte-Laguë, Rae)
  • Some superfluous auxiliary functions for data visualization
  • documentation about the functions
  • Examples of usage with uploaded databases

Databases loaded:

References:

[1] Pukelsheim, F., 2017. Proportional representation. Springer International Publishing AG.

[2] Gallagher, M., 1991. Proportionality, disproportionality and electoral systems. Electoral studies, 10(1), pp.33-51.

[3] Karpov, A., 2008. Measurement of disproportionality in proportional representation systems. Mathematical and Computer Modelling, 48(9-10), pp.1421-1438.

About

Implementation of biproportional algorithm, d'Hondt and Webster divisor methods and some desproportionality indices in python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages