Skip to main content

Lots of metrics for quantifying gerrymandering

Project description

Code for running 16 different metrics for measuring partisan gerrymandering, including:

  • Mean-median difference and variant:
    • Mean-median difference

    • Equal vote weight

  • Lopsided margins (two-sample _t_-test on win margins)

  • Bootstrap (Monte Carlo) simulation

  • Declination variants
    • Declination

    • Declination (buffered)

    • Declination variant

    • Declination variant (buffered)

  • Efficiency gap variants
    • Efficiency gap

    • Difference gap

    • Loss gap

    • Surplus gap

    • Vote-centric gap

    • Vote-centric gap 2

    • Tau gap

  • Partisan bias

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gerrymetrics-0.1.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

gerrymetrics-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file gerrymetrics-0.1.1.tar.gz.

File metadata

  • Download URL: gerrymetrics-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for gerrymetrics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b119b8f7b4fbc92e8f6dcea36ba5de6415bab92ba87c6d7138c5a299324c1543
MD5 639fb9cca7e6f402e857ffa2f329986e
BLAKE2b-256 ef45d84ebc2ca0f03f2e78e113ffe931dbc5a43e9dd842f4db6f39f8d729175b

See more details on using hashes here.

File details

Details for the file gerrymetrics-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gerrymetrics-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for gerrymetrics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ab04384d841188dcdc6391cf4f3dde079515744d49f42f614e27ced7418103
MD5 405ad8055497c7c99048fb18d24df1cb
BLAKE2b-256 387e31a5391f6c5ba1f810c0f2664665a01190738687b39bfc88013c2e6a3243

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page