A Python implementation of common apportionment methods
-
Updated
Feb 17, 2022 - Python
A Python implementation of common apportionment methods
Diversity / (dis)proportionality measures, election quotas, and apportionment methods in pure Python.
Calculate seat apportionment for legislative bodies using different established methods, including biproportional apportionment.
Allocate seats in the U.S. House of Representatives according to various algorithms
Math Library
Formal verification of apportionment theory in Lean 4.
Python package to model apportionment in house of representatives
Largest remainder method
Allocate seats to parties or constituencies in Julia
Implementation of biproportional algorithm, d'Hondt and Webster divisor methods and some desproportionality indices in python.
Flexible command line implementation of the Huntington-Hill apportionment method
Doppeltproportionale Sitzverteilung nach Pukelsheim für Parlamente
Calculate state tax allocation for remote workers, snowbirds, and travelers. Automatically split income across multiple states.
🗳️ Simplify electoral math with ApportionmentCalc, a browser-based tool for comparing Sainte Laguë and Hare Quota seat allocation methods.
Single-function R package for implementing the Huntington-Hill method of legislative seat allocation
A bill splitter for anyone, with the fairness proven. The obvious way to split money got the sum wrong on 44.7% of 20,000 random trials; the largest-remainder method used here got zero wrong.
The wahlwerk package: an engine for electoral and parliamentary systems as rules-as-code. It replays real election results under any version of a law, seat for seat, with exact arithmetic.
Short program for calculating apportionment, like for the US House of Representatives.
What if the U.S. House had kept growing past 435 seats? Replay every presidential election since 1912 under the cube root rule, Wyoming rule, or any House size.
Wahlverfahren nachgerechnet: drei Sieger aus einem Stapel, Condorcet-Zyklus, Alabama-Paradox
To associate your repository with the apportionment topic, visit your repo's landing page and select "manage topics."