Abstract
Political districts may be drawn to favor one group or political party over another, or gerrymandered. A number of measurements have been suggested as ways to detect and prevent such behavior. These measures give concrete axes along which districts and districting plans can be compared. However, measurement values are affected by both noise and the compounding effects of seemingly innocuous implementation decisions. Such issues will arise for any measure. As a case study demonstrating the effect, we show that commonly-used measures of geometric compactness for district boundaries are affected by several factors irrelevant to fairness or compliance with civil rights law. We further show that an adversary could manipulate measurements to affect the assessment of a given plan. This instability complicates using these measurements as legislative or judicial standards to counteract unfair redistricting practices. This paper accompanies the release of packages in C++, Python, and R that correctly, efficiently, and reproducibly calculate a variety of compactness scores.
Introduction: The Compactness Standard
In the ongoing effort to curb gerrymandering, "compactness" has emerged as a primary geometric standard. The underlying intuition is that fair districts should resemble simple shapes like circles or squares, whereas gerrymandered districts often exhibit "bizarre" or elongated boundaries. Consequently, many U.S. states have integrated compactness requirements into their legislative or judicial redistricting standards.
However, a significant gap exists between the theoretical definition of a compactness metric and its practical computational implementation. This research explores the "garden of forking paths"—the series of technical decisions made during implementation that can radically alter a district's score. Without standardization, these choices allow for "adversarial implementation," where partisan actors can manipulate technical parameters to make unfair maps appear legally compliant.
Methodology and Data
The study evaluates nine technical factors affecting three widely used compactness metrics:
- Polsby-Popper: The ratio of a district's area to the area of a circle with the same perimeter.
- Reock: The ratio of a district's area to its minimum bounding circle.
- Convex Hull: The ratio of a district's area to the area of its convex hull.
The analysis utilized 2015 US Census Bureau TIGER/Line data for the 114th Congress at multiple resolutions (1:500,000 to 1:20,000,000) and USGS National Elevation Dataset (30m resolution) to test the impact of topography.
The "Garden of Forking Paths" in Implementation
One of the most critical "forking paths" involves the handling of discontiguous districts, often referred to as the "island" problem. Districts may contain enclaves, exclaves, or islands that are geographically separated from the main body.
Deciding whether to calculate a single score for the entire collection of polygons or to calculate scores for each component and aggregate them (e.g., via area-weighted sums) is a choice that significantly impacts the final metric. Other factors include map projections (e.g., Albers vs. Mercator), which can distort area and perimeter calculations, and the inclusion of "holes" or internal enclaves.
Measuring the Impact of Technical Choices
The research demonstrates that these implementation choices are not merely academic; they have substantial numerical consequences. For instance, the Polsby-Popper score is highly sensitive to data resolution due to the fractal nature of coastlines—higher resolution leads to longer perimeters and lower scores. The authors demonstrate this using the Koch Snowflake: as resolution increases, the score drops by 77% at each step, even though the "shape" looks the same to the human eye.
As shown in the comparison of Reock and Convex Hull scores, shifting from a "Total" (PT) approach to a "Sum of Parts" (PS) approach can change a district's Convex Hull score by as much as 0.14 (from 0.44 to 0.58). In a legal context where a threshold might be set at 0.5, this single technical choice determines whether a district is deemed "compact" or "gerrymandered."
The authors performed a grid search over these parameters for ten notoriously gerrymandered districts. They found that for several "outlier" districts, specific combinations of implementation choices could move them into the "middle-of-the-pack" in terms of statistical compactness, effectively "math-washing" the gerrymander.
Conclusion and Policy Recommendations
While some factors, such as topography and floating-point precision, have negligible impacts, the combined flexibility of resolution, projection, and discontiguity handling creates a significant vulnerability. To address this, the authors have released compactnesslib (C++), python-mander, and mandeR (R) to provide a standardized framework for these calculations.
The primary policy recommendation is that courts and legislatures should not accept compactness arguments unless the entire "computational stack"—including the specific data source, code, and implementation parameters—is made public and subject to expert scrutiny. Without such transparency, compactness metrics remain a tool that can be easily gamed by sophisticated adversaries.
Summary updated