Skip to main content

Use Markov chain Monte Carlo to analyze districting plans and gerrymanders

Project description

Build Status Code Coverage Documentation Status

GerryChain is a Python library for building ensembles of districting plans using Markov chain Monte Carlo. It is developed and maintained by the Metric Geometry and Gerrymandering Group and our network of volunteers.

The basic workflow is to start with the geometry of an initial plan and generate a large collection of sample plans for comparison. Usually, we will constrain these sampled plans in such a way that they perform at least as well as the initial plan according to traditional districting principles, such as population balance or compactness. Comparing the initial plan to the ensemble provides quantitative tools for measuring whether or not it is an outlier among the sampled plans.

Getting started

See our Getting started guide for the basics of using GerryChain.

Installation

To install GerryChain from PyPI, just run pip install gerrychain.

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

gerrychain-0.2.6.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gerrychain-0.2.6-py2.py3-none-any.whl (62.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gerrychain-0.2.6.tar.gz.

File metadata

  • Download URL: gerrychain-0.2.6.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for gerrychain-0.2.6.tar.gz
Algorithm Hash digest
SHA256 109eb87d30d1d0b1e01e896d4eceeaf11d5138870b16644e24b6a692725f1995
MD5 358784c532a22bc79d750f8de8e6e640
BLAKE2b-256 e3824ff8da6eab2266cf0b3c4d25c56b2d7378e8fec923b9de4a7b2e53a6c94e

See more details on using hashes here.

File details

Details for the file gerrychain-0.2.6-py2.py3-none-any.whl.

File metadata

  • Download URL: gerrychain-0.2.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 62.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for gerrychain-0.2.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e02c5a55dd45571ea8e035659dc0236fe4c4f98dc90dc75061466b2329915218
MD5 4d6a5437d4bfb2b9d29e317e781abd4a
BLAKE2b-256 bb7cbbb5f915f631d80a0f9b483ec9046ed5f233ca54eab23945730492ae12ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page