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.

Filename, size & hash SHA256 hash help File type Python version Upload date
gerrymetrics-0.1.1-py3-none-any.whl (9.2 kB) Copy SHA256 hash SHA256 Wheel py3
gerrymetrics-0.1.1.tar.gz (9.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page