Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.68 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.68 KB

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.