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 - Equal vote weight - Lopsided margins (two-sample t-test on win margins) - Bootstrap (Monte Carlo) simulation1 - 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.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

gerrymetrics-0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gerrymetrics-0.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.tar.gz
Algorithm Hash digest
SHA256 48109a9dad3f62bf9c0e5e3571922a61c743de45de08a95bb7358383f92ec4cc
MD5 d5e3e823d94544334b9b465a3462bd7b
BLAKE2b-256 c81cf486f379fc7b87fd9b1ba1654d0144141193457761fd3c70ef63b3280135

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gerrymetrics-0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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-py3-none-any.whl
Algorithm Hash digest
SHA256 8b6d15f5bb43569a74943493485bac9f01dc5637f53fc604ce84807921068d01
MD5 511def7d35b9ac538efeb64ba73a2e38
BLAKE2b-256 f548368ac724bef5da516bfc67cbc83b6aff1c180a3f139b60aa0f85fdcc5a2f

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