Transit demand, from forecast to capacity
On one city's transit counts, last week's count beat gradient boosting in the 2020 shock, and a plan above the forecast saved 13% in 2017 to 2019 at an assumed 3:1 cost
In the shock that plan cost about 13% more than planning at the forecast average, a difference that could be zero. Against the headline, exponential smoothing missed less than last week's count from August, and a 67th percentile plan did as well as the 75th.
Main limitation One city's transit counts and one shock, and the two costs behind the capacity plan are assumptions, not transit-agency figures: a missed boarding is set to cost three times an empty place, and the answer moves with that ratio.
The question
A planner who schedules capacity ahead of demand (buses here; drivers or agents elsewhere) needs a forecast and a rule for how much capacity to put behind it, and both are tested hardest when demand changes overnight. These two studies replay both steps on the Chicago Transit Authority's public daily boarding counts, which collapsed in March 2020. They stand in for a marketplace's or service team's demand, so no customer data is shared.
- Forecast
- A day's boardings, estimated one day ahead (part 1) or a month ahead (part 2).
- Last week's count
- The simplest forecast: the same weekday's count a week earlier.
- Gradient boosting
- A machine-learning model made of many small decision trees.
- Exponential smoothing
- A running level plus a weekly pattern, updated daily.
- Interval
- A range around a number. A forecast's 90% range should hold the real count nine days in ten; a difference whose 95% interval crosses zero could be zero.
- Percentile
- A 75th percentile plan covers demand on three days in four, the share a 3:1 cost of shortage to surplus sets.
- Re-plan
- Redo the plan early once demand stops matching the forecast.
What the two studies found
Left of zero, the more elaborate choice did better; right of zero, it did worse. Each dot is an average over its period.
Forecast: how many more boardings a day gradient boosting missed than the simple forecast
Simple forecast: last week's count one day ahead; the last week repeated a month ahead.
Average gap with its 95% range
Capacity: cost of planning above the forecast against planning at its average, at an assumed 3:1 cost
75th percentile plan, with its 95% interval67th percentile plan
Show the data
| Period | Horizon | Gap, boardings a day | 95% range | Reading |
|---|---|---|---|---|
| 2017 to 2019 | a month ahead, part 2 | −57,000 | −86,000 to −31,000 | clear |
| January to February 2020 | one day ahead, part 1 | −34,000 | −80,000 to +2,000 | could be zero |
| March to December 2020 | one day ahead, part 1 | +45,000 | +20,000 to +82,000 | clear |
| March to December 2020 | a month ahead, part 2 | +19,000 | +2,000 to +37,000 | clear |
| 2021 to 2022 | a month ahead, part 2 | +7,000 | −6,000 to +20,000 | could be zero |
| 2023 to 2025 | a month ahead, part 2 | −11,000 | −24,000 to +1,000 | could be zero |
| Period | 75th percentile plan | 95% interval | Reading | 67th percentile plan | 95% interval |
|---|---|---|---|---|---|
| 2017 to 2019 | 13% lower | 6% lower to 22% lower | clear | 13% lower | 7% lower to 21% lower |
| March to December 2020 | 13% higher | 52% higher to 5% lower | could be zero | about the same | 13% higher to 10% lower |
| 2021 to 2022 | 13% lower | 1% higher to 25% lower | could be zero | 14% lower | 5% lower to 22% lower |
| 2023 to 2025 | 4% lower | 7% higher to 13% lower | could be zero | 6% lower | 1% lower to 11% lower |
A gap or cost is clear when its range leaves out zero. Part 1 tested its gaps with a test that allows for errors running in streaks, corrected for six comparisons; part 2 resampled whole months.
- Forecast through a shock from last week's count. After the collapse it missed about 49,000 boardings a day, against 95,000 for gradient boosting, a clear gap of about 45,000 (95% range 20,000 to 82,000). A month ahead, gradient boosting also missed more in the collapse and less in normal years.How sure: sure against gradient boosting, on one city and one shock. Not against exponential smoothing, whose gap could be chance.
- Plan above the forecast when a shortage costs more, but not at one exact percentile. At an assumed 3:1 cost the 75th percentile plan cost 13% less than the average plan in 2017 to 2019 (6% to 22% less). A 67th percentile plan did as well: the 75th is the cost's arithmetic, not a measured best.How sure: sure for 2017 to 2019 at that cost. The 4% saving in 2023 to 2025 could be zero.
- A shock is where the buffer loses, so watch for one. In the collapse the 75th percentile plan cost about 13% more (52% more to 5% less). Both studies' alarms fired on 16 March 2020, but part 2's re-plan check also fired in 17 of 72 normal months.How sure: unsure. One shock, and neither study simulated the re-plan itself.
What it means for a company
Run the simplest forecast beside every model and plan on whichever beat it over the last four weeks; after a break, plan on the simple one until a model earns its place back. Agree the two costs with finance, then plan somewhat above the average, not at one exact percentile. Tune a re-plan check on your own history so it stays quiet in normal months.
How we got here
Part 1. Daily demand forecasting
Asked which one-day-ahead forecast holds up when demand collapses, across four methods and every day of 2020. Last week's count beat gradient boosting in every month after the collapse; exponential smoothing missed less from August.
After the collapse: 49,000 boardings a day missed, against 95,000 for gradient boosting.
Part 2. Capacity from a forecast
Asked how far above a month-ahead forecast to plan, replaying every month from 2017 to 2025. Planning above the average paid in 2017 to 2019; later and in the collapse the difference could be zero. The costs are assumed.
Cheaper than the average plan in 21 of 36 months of 2017 to 2019, at an assumed 3:1 cost.
Where they pull apart. Part 1's 90% ranges held on 89.6% of days for last week's count; part 2's month-ahead ranges missed 14% of days in 2017 to 2019, against 10% if right. And part 2's plan ran on a forecast about 49,000 boardings a day too low then, so part of its saving may come from that.
What is next: the capacity plan fed the best normal-year forecast, with an alarm switching it to the simple one after a break.
How it was checked
Each limit sits beside the number it qualifies. Last week's count has a clear win over gradient boosting alone, not over all three models. The 75th percentile is one plan among those tried, not the answer. The re-plan check also fired in normal months, so it is not a clean success.
Use this at your company
Paste this into your own AI assistant with your demand history.
This method comes from Diogo Travassos's study "Transit demand, from forecast to capacity" (https://diogotravassos.dev/chicago-transit-demand-to-capacity/). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Help me forecast our daily demand so it holds up through a sudden break, and turn the forecast into the capacity to schedule. Data: several years of a daily count we plan on, our holidays, and two costs agreed with finance, per unit of idle capacity and of unserved demand. 1. First, write down the methods, periods and bars for success. 2. Replay history using only what was known at each forecast date. Run last week's count for the same weekday beside every model, and give each forecast a range from its recent misses. 3. Compare average misses before and after any break, period by period, with intervals. 4. Plan each day at the percentile the costs set (shortage cost divided by both costs added), try a lower one too, and compare realized cost with a plan at the forecast average. 5. Add a check that calls for a re-plan when demand falls outside the range on most days of a week, and count its false alarms in normal months. Report misses and cost by period with their uncertainty, true and false alarms, and the limits. In your report, say which study you followed and link it: https://diogotravassos.dev/chicago-transit-demand-to-capacity/
Data notice
DATA ATTRIBUTION AND USE Data provided by Chicago Transit Authority, through the City of Chicago Data Portal. Dataset: CTA daily boarding totals (6iiy-9s97). This educational study supports discussion of forecasting and uncertainty in public-transit planning. It is independent portfolio work and is not endorsed by CTA or the City. It provides no live travel advice and is not an operational service forecast. CTA Developer License Agreement and Terms of Use: https://www.transitchicago.com/developers/terms/ Chicago Data Terms of Use: https://www.chicago.gov/city/en/narr/foia/data_disclaimer.html These are purpose-limited, revocable data-use terms, not an unrestricted open-data licence. The data may be used for assisting mass-transportation riders and promoting public transportation. Do not sell the data as a standalone product, imply an affiliation or use official logos. Keep this notice with the data and consult the publisher's current conditions before reuse. The dataset remains the property of its publisher; no additional data rights are granted here. The included historical slice is a current downloaded vintage. The manifest records retrieval date and hashes. The public release timing and original historical data vintages are not reproduced. No employer data, private rider information or individual trip records are included. CITY-REQUIRED DISCLAIMER This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one’s own risk.