segregation implements the segregation literature’s indices with the statistical machinery to compare them: inference by simulation, decomposition of differences, and spatial versions of the classic measures. Described in the Journal of Open Source Software (2026).