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.

Files for gerrymetrics, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size gerrymetrics-0.1.3-py3-none-any.whl (10.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gerrymetrics-0.1.3.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page