Use Markov chain Monte Carlo to analyze districting plans and gerrymanders
Project description
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.
Useful links
Installation
To install GerryChain from PyPI, just run pip install gerrychain.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gerrychain-0.2.3.tar.gz.
File metadata
- Download URL: gerrychain-0.2.3.tar.gz
- Upload date:
- Size: 48.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22fbf66d53dc9723e89a727e113d9f326623d6b91732749b5aa6a8713b3bc51e
|
|
| MD5 |
3225657abf63a48d3db1091054bf7372
|
|
| BLAKE2b-256 |
101ff2d90b187dcbf1cf50c0a77212ffd41e2d417abf5dcdbeba558a1be405e4
|
File details
Details for the file gerrychain-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: gerrychain-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 57.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae89f5c641b7d4ba8291086338d12337f8a34571982491cb617d8dfc8ad66f36
|
|
| MD5 |
cc8c92991df7b220ae078cee6bcfbd7e
|
|
| BLAKE2b-256 |
d23c5ae5c944e45bb1d335db17262abd7fb861feebb5cdf8ca49abdf63f2fec1
|