Data visualization project that determines how gerrymandered a congressional district is. MA-6 Congressional App Challenge Winner.
This is a project that estimates how likely a congressional district is gerrymandered based on its geographical compactness, voter wastage, and redistricting control. It was last updated for the 115th US Congressional districts (2016 election).
Check it out at ismydistrictgerrymandered.us.
This project determines whether a district is gerrymandered based on 3 factors:
Geographical Compactness: Basically, how compact is the district? It is more likely that a district is gerrymandered if it has an odd shape and a lot of small tendrils than if it is more regular. While this isn’t necessarily a perfect gauge of gerrymandering, it can be a decent proxy. Geographical compactness is calculated using the Polsby-Popper method: dividing the area of the district by the area of a circle with the same perimeter. I used QGIS to calculate compactness.
Voter Wastage: Gerrymandering can essentially be done in two ways: “Packing”, which crams all the voters of one party into a few districts to eliminate a majority, or “Cracking”, which spreads the voters of one party into a lot of districts so they don’t have a majority in any district. By calculating the number of wasted votes (the number of votes above the threshold to win, and all the votes of the losing party) for each party, we can determine if there is are more votes wasted for a specific party, a good indicator of partisan gerrymandering. Specifically, we measure voter wastage using the “efficiency gap”, which you can read more about here.
To specifically determine whether a district is gerrymandered, a “gerrymander_score” is calculated internally in data/generate_csv.js
. If this score is greater than 50, the district is gerrymandered. If a state has less than or equal to 6 districts, it is unlikely to be gerrymandered, and those districts’ gerrymander scores are set to 0. Otherwise, 75% of this score is from the geographical compactness of the district and 25% of the score is from the efficiency gap of the state the district is in. Though both equally important, the efficiency gap score is slightly de-emphasized because it is a state-level calculation, whereas compactness applies to individual districts. Additionally, redistricting control can only help the score, meaning that the gerrymander score is reduced if the state redistricts using a bipartisan independent commission. Having a biased redistricting process does not necessarily mean a gerrymandered district. However, having a bipartisan, independent redistricting process significantly reduces the chance of a gerrymandered district.
This project was created solely out of curiosity: I had heard a lot about partisan gerrymandering, and wanted to know if my district could be gerrymandered. It was not created out of political reasons: The project does not support any one party, but just displays the data collected. In the spirit of transparency, all of the source code used for this project is in this repository, and all of the datasets used are listed below.
Please submit an issue, or contact me at jshen@andover.edu if you believe you have found an error with this tool.
This project was written by Jeffrey Shen, a current student at Phillips Academy. I received some assistance from Varun Roy and Bill Qin.
These were all the articles, books, etc. that I read to better help me understand gerrymandering:
This project is licensed under the CC0 License — See the LICENSE file for more info.