Skip to content

ByteFource/MTA-Inequality-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTA Inequality Analysis

Table of Contents

Click to expand
  1. About the Project
  2. Getting Started
  3. Findings
  4. License
  5. Our Group

About the Project

This project dives into the link between MTA delays, local income levels, and racial demographics across NYC. Using the Python MTA Utilities API to analyze travel times and geo-location data, we uncovered a pretty clear trend: stations with the most delays tend to be in lower-income neighborhoods. It’s a big deal because it brings up questions about fairness and whether public transit is actually serving everyone equally.

The Problem at Hand

The goal here is to figure out where MTA delays hit the hardest and who’s affected the most. We’re mapping out the connections between station locations, local demographics, and train delays to highlight the areas where transit could do better.

Key Features

  • Interactive Web Interface: We originally built this with Flask and Streamlit for easy exploration of the data, but now we’re stepping it up with a React.js front end and Go backend.
  • Decentralized Hosting: We’re moving to IPFS for better scalability and accessibility.
  • Race and Income Map: A visual tool that overlays train delays with demographic and neighborhood data.
  • Race Demographics Pie Chart: A clean way to show the racial breakdown of areas impacted by delays.
  • Local Area Delay Analysis: A deeper look into how delays vary by neighborhood and what that means for residents.

Built Using

  • Python (for the initial build)
  • Flask
  • Pandas
  • GeoPandas
  • React.js (current rebuild)
  • Go (current backend)
  • IPFS (for hosting)

Getting Started

What You Need

  • Python 3.9.10+
  • Git

Clone the Repository

Grab the project files with:

git clone https://github.com/ByteFource/Is-The-MTA-Racist.git
cd Is-The-MTA-Racist

Setup

  1. Go to the project folder:

    cd your-repo
  2. Set up a virtual environment:

    • On Windows:

      py -m venv env
    • On macOS/Linux:

      python3 -m venv env
  3. Activate the virtual environment:

    • On Windows:

      env\Scripts\activate
    • On macOS/Linux:

      source env/bin/activate

Install Dependencies

With the virtual environment running, install what you need:

pip install -r requirements.txt

Run the Flask App

Fire up the app:

flask run

or for debug mode:

flask run --debug

Check it out at http://127.0.0.1:5000/.

Pro Tip: If you add new dependencies, don’t forget to update the requirements:

pip freeze > requirements.txt

Findings

Our analysis showed a strong link between lower-income zip codes and higher train delay rates. It’s a wake-up call for how public transit needs to better serve these areas and close the equity gap.

License

Details coming soon.

Our Group

Contact

About Us

We’re a team passionate about tech and data, using this project to shine a light on social equity issues. The new version of this project will be faster, scalable, and more accessible for everyone.