Abstract
Designing school boundaries is a complex spatial optimization task that requires balancing school capacities, geographic contiguity, and student travel times. This paper adapts Markov Chain Monte Carlo (MCMC) sampling techniques—originally used in political redistricting—to the school boundary problem. By employing "flip-based" proposals, we generate ensembles of valid redistricting plans to serve as both optimization baselines and diagnostic tools. Our findings reveal that MCMC can effectively map the constrained state space of school districts, providing critical insights into geographic dependencies and informing future exact optimization methods.
Introduction
The design of school boundaries is a high-stakes spatial problem. Unlike political redistricting, which focuses on fairness and competitiveness, school redistricting must account for physical school buildings ("fixed centers") and strict capacity limits. A significant hurdle in this field is the absence of a "gold standard" for evaluating proposed plans. Without a representative sample of the possible "universe" of valid plans, it is difficult to determine if an algorithm has found a near-optimal solution or if the search space is simply too constrained.
Methodology: Flip-Based MCMC
To address these challenges, we utilize Markov Chain Monte Carlo (MCMC) methods to explore the space of valid redistricting plans. The core of our approach is the Flip Proposal mechanism.
The Flip Proposal
A "flip" involves reassigning a single geographic unit on the border of two districts from one to the other. Because school districts are subject to strict operational constraints, we use a rejection-based sampling approach. A proposed flip is only accepted if the resulting plan satisfies several criteria:
- Contiguity: Districts must remain geographically connected.
- No Vanishing Districts: Every district must contain at least one unit.
- Single Center: Each district must contain exactly one school building.
- Compactness: Measured by the Polsby-Popper metric to minimize student travel.
- Balance: Student populations must align with school capacities.
Model Variants
We implemented three specific models to test different aspects of the state space:
- BAA (Balanced, Always Accept): Focuses on population balance and accepts any valid plan to maximize exploration.
- BCAA (Balanced and Compact, Accept): Incorporates compactness constraints into the exploration.
- AIO (Accept Improving Objective): A greedy variant that only accepts flips that improve the overall objective function (a weighted sum of balance and compactness).
Sampling as a Diagnostic Tool
Beyond optimization, MCMC serves as a powerful diagnostic tool. By generating millions of flips, we can construct a transition matrix that represents the probability of moving between different valid districting plans (e.g., plans R and S).
This diagnostic approach allows us to identify the natural bounds of the redistricting problem. For instance, by tracking how often specific geographic units are assigned to the same district, we found that the "binary co-occurrence matrix" is remarkably sparse (60-92% empty). This suggests that most units have very few realistic school assignments, a finding that can be used to prune the search space for more computationally intensive exact optimization methods like Integer Linear Programming (ILP).
Results and Discussion
We tested our methods on real-world GIS data from two mid-Atlantic school districts (District X and District Y). Our results showed that while greedy MCMC variants (AIO) perform comparably to Stochastic Hill Climbing, specialized metaheuristics like Tabu Search still achieve better absolute scores for balance and compactness.
However, the true value of the MCMC approach lies in its ability to scale. We successfully ran 10 million iterations on large districts, providing a robust statistical sample of the state space. This "ensemble" of plans provides the necessary context to evaluate any single proposed boundary change, showing what a typical, non-gerrymandered distribution looks like under the given geographic constraints.
Conclusion
Flip-based MCMC provides a robust framework for navigating the highly constrained state space of school redistricting. While other algorithms may be faster at finding local optima, MCMC's ability to map the "universe" of possible plans offers unique diagnostic value. Future work will focus on integrating these MCMC-derived insights into exact optimization models to solve previously intractable redistricting problems.
Summary updated