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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gerrymetrics-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ba2f5fd290ae1f94f725bfcdf7baacb58035df20c8482e40fc4bd28f16f8d464
MD5 29b24e691e52203bce0c979021295ec5
BLAKE2b-256 ab81bd74d9e286e6d61ebff0528f7d75f0f35e42a3d4237c50ebe98df929d29e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gerrymetrics-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 82fb35dd72b6eb4fecc5456189158b8771752cd8365d273a9049ca5f70986505
MD5 c6e9bd300d25103d5957d7a5b455293f
BLAKE2b-256 c8f4482ea6f2b3dc0edea0db959fa124726952b6eb2dc81cba836c3adebc87f2

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