Round 05 · Data · Python · USC DSCI 510

Bluebikes Winter Bottleneck

Time and place drive the bottleneck; weather only amplifies it.

60-second summaryR05
Role
Analyst
Credit
Individual project
Scale
344,842 trips, 3 data sources
Result
One Pressure Index for every station-hour

The challenge

A Bluebikes station fails in two ways: full, with no dock to return a bike, or empty, with no bike to ride. Winter adds weather on top of normal demand. For USC DSCI 510, I built a Python analysis to find what actually drives the imbalance: time, location, or weather.

Core idea

Rebalance by the clock and the map, not the forecast.

Peak hours and busy stations explain most of the pressure. Weather adds a small lift.

Here's the play

  1. Individual

    Combine three sources into one index.

    I merged 344,842 trips from November 2025, the station list with dock counts for 597 stations, and hourly weather from the Open-Meteo API. The Pressure Index is arrivals minus departures, divided by dock capacity. I used its absolute value, because a full station and an empty one are both a service failure.

    The Pressure Index, per station per hour

    Pressure Index=Arrivals − DeparturesDock capacity

    • 344,842trips, Nov 2025
    • 597stations with dock counts
    • ~744hourly weather records
  2. Find when stations run short.

    Severe imbalance spikes in two commute windows, 7–9 AM and 4–6 PM. It runs highest Tuesday through Thursday.

    My chart, recolored · Severe imbalance by hour of day
    Line chart of the share of station-hours with severe imbalance by hour of day: peaks near 20% at 8 AM and about 14% at 5 PM, against a 6.4% average
  3. Find where.

    Imbalance isn't spread evenly. Stations with above-average severe imbalance cluster in central Boston.

    My chart, recolored · Stations above average severe imbalance
    Scatter map of Bluebikes stations by longitude and latitude, with above-average severe imbalance stations highlighted in a dense central cluster
  4. Test the weather.

    On its own, weather barely correlates with pressure. During peak conditions, colder hours and precipitation shift imbalance more, so weather amplifies stress instead of causing it. A logistic regression caught 82% of extreme cases, with location and day of week as the strongest predictors.

    My chart, recolored · Top model coefficients
    Horizontal bar chart of the top logistic regression coefficients: high-pressure station is by far the largest, followed by Wednesday and temperature; precipitation is the most negative

Limits of the data

  • Weather comes from one central reading, not each station's location, because the API serves a single point or grid.
  • The absolute index ignores direction, and Bluebikes' manual rebalancing isn't in the data.
  • Precision was 11.6%: the model finds extreme cases but raises many false alarms.
Opening slide of the project report: context, problem and objective, with the Net Flow Pressure Index defined as arrivals minus departures over dock capacity
From my project report · The Winter Bottleneck

Scoreboard

Round 05Course project · USC DSCI 510
344,842trips analyzed
3

data sources in one index

597

stations in the system list

82%

of extreme cases caught by the model

CreditIndividual project

What I'd run next

Add a random forest to capture how weather, time, and location interact, and match weather to each station's grid cell. Then run it on a full winter, not one month.

Round complete · Next round

Round 01TikTok Shop15.6x
Next round: Round 01Contact & resume