Round 05 · Data · Python · USC DSCI 510
Bluebikes Winter Bottleneck
Time and place drive the bottleneck; weather only amplifies it.
- 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
- 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
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 
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 
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 
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.

Scoreboard
data sources in one index
stations in the system list
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