Skip to content

Sungchunn/Gerrymandering-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gerrymandering Final Project

Overview

  • This project analyzes and visualizes gerrymandering using data-driven techniques to assess political boundaries’ fairness and representation. The primary focus is to understand how electoral districts are drawn and the implications for democracy. The project involves data analysis, visualization, and exploration of potential solutions to mitigate gerrymandering effects.

Features

•	Data Processing: Prepares and cleans data for meaningful analysis.
•	Visualization: Creates detailed maps and charts to illustrate electoral boundaries and their impacts.
•	Statistical Analysis: Evaluates metrics such as compactness and partisan bias.
•	Algorithm Development: Proposes methods to improve district drawing processes.

Requirements

Tools and Libraries • Python 3.x • Jupyter Notebook • Libraries: • pandas (Data manipulation) • numpy (Numerical computation) • matplotlib (Data visualization) • geopandas (Geospatial data analysis) • shapely (Geometric objects) • seaborn (Advanced visualization) • scipy (Statistical calculations) • Additional dependencies as specified in the project.

Data Sources

Usage

1. Clone the repository:

git clone [repository URL]

cd [repository folder]

2. Install required dependencies:

pip install -r requirements.txt

3. Open the Jupyter Notebook:

jupyter notebook Gerrymandering_Final_Project.ipynb

4. Run the notebook cells sequentially to process data and generate visualizations.

Outputs

  • Interactive maps visualizing district boundaries.
  • Charts showing partisan bias and demographic distributions.
  • Statistical reports evaluating gerrymandering metrics.

Future Work

  • Implement machine learning models to optimize district drawing.
  • Extend analysis to additional states or countries.
  • Develop a user-friendly interface for broader accessibility.

Contributing

  • Contributions are welcome! Please fork the repository, create a new branch for your feature or fix, and submit a pull request.

License

  • This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors