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.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

gerrymetrics-0.1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gerrymetrics-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for gerrymetrics-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dc65e92c942110c21c1d26fdfadbb3d9a0d22239773813a7fa1964d8b33e40e7
MD5 423a4c378b5d217eb8e97c9aeccccc50
BLAKE2b-256 f26979e45fd7da9dda5f1aca202eb7cc98a53f9e657f86e91786e6747aef2613

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gerrymetrics-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for gerrymetrics-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4114a70b2be19968d450d4c6ec4f934bc486a5d726ab22856edcfb3f988b564
MD5 9d4a85499ac679ca4b78d47807dfebc2
BLAKE2b-256 9e58e178b4ec1c8ee580dc39c72f55a01980ad82eeff000f181195742e428d43

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