Skip to main content

Use Markov chain Monte Carlo to analyze districting plans and gerrymanders

Project description

Build Status Code Coverage Documentation Status PyPI Package

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. It is distributed under the 3-Clause BSD License.

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.8.tar.gz (49.0 kB view details)

Uploaded Source

Built Distributions

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

gerrychain-0.2.8-py3.7.egg (102.7 kB view details)

Uploaded Egg

gerrychain-0.2.8-py2.py3-none-any.whl (44.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gerrychain-0.2.8.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for gerrychain-0.2.8.tar.gz
Algorithm Hash digest
SHA256 2d3dc1ff35c6f6c1670918f30e8be4c00faed1178b19501e38bfef09c2f023b5
MD5 76ba082c70f4185e8ad49888a59f105a
BLAKE2b-256 100965e84d56e2d79dda1c2988f23a45ac230d3d65000ebca4839cd2115b8821

See more details on using hashes here.

File details

Details for the file gerrychain-0.2.8-py3.7.egg.

File metadata

  • Download URL: gerrychain-0.2.8-py3.7.egg
  • Upload date:
  • Size: 102.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for gerrychain-0.2.8-py3.7.egg
Algorithm Hash digest
SHA256 073b18bf620a2ecbe58da4c2c77d312334345d436808bd8677dd70a8817964fe
MD5 cd3dd922cfd38c92cb15fb2b9f428fdc
BLAKE2b-256 1f383f8ac6a9a37a9de29212ee8b1a6688c965fb606593ec740536492906817d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gerrychain-0.2.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for gerrychain-0.2.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bb6126929bdbbc37b654243f8b2a35dd83096f7b533047914059ede9b942062a
MD5 5863a9cad2d35368ae1b87286cab702c
BLAKE2b-256 ac8de0c84401df8f0db302854438be551e0a66fd5001bec2b06f7f9da1b655d0

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