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