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 hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page