The model data did not load. Check your connection and try again.
1. Paste the alert
TTC subway alerts
Line, station and cause are read from the whole alert; nothing is sent anywhere.
Showing the worked example, headed to Jane. Paste your own alert to replace it.
Examples use this fixed time inside the TTC schedule data, so they work on any date.
2. The call
Estimated chance
Not the chance your alert causes this delay, or your remaining wait.
Why two numbers: 65% of logged incidents record 0 minutes. The first number leaves them out, assuming your incident delays service; the second counts them. The verdict uses the first.
The model is calibrated on recorded delay length, not time since the alert.
What this number means
Why
Safety first: always follow TTC staff and announcements. This is a planning aid for riders on a platform, not for decisions about leaving a train or evacuating.
3. Plan B: timetable alternatives
These are scheduled alternatives, never a promise of the quickest way. Every time shown is a timetable estimate, not real time, except live predictions marked as such. Routes, directions and stops come from the TTC schedule (files dated Oct 20, 2026, covering Nov 1 to Dec 21, 2026), using each route's regular stop patterns; a stop counts as near a station within 300 metres in a straight line, about a 4 minute walk. The schedule cannot tell you about detours, crowding or shuttle buses, so check TTC service alerts. Five journeys were checked by hand against the schedule; no rider testing has been done (a 10 minute script for five riders is in docs/rider-check.md).
4. Verdict: wait or switch?
It also gives a cautious wait or switch call, and it rarely says switch: on 107 of 13,174 simulated trips (a past delay and a direction of travel), about 1 in 120. In the simulation those calls saved about 8 minutes each with an on time bus and lost about 15 each when the first bus was missed. No rider testing has been done.
Paste an alert to see the comparison.
The rule: switch only when switching still wins by the timetable with the bus 5 minutes late, that is, when the expected recorded delay (or what is left of it, if you say it is already underway) is at least 5 minutes more than the extra minutes by the best scheduled Plan B. When switching wins by less than 5 minutes, the card says so, names the narrow margin and says wait. There is no "too close to call" answer: a band like that was tested (see Evidence) but its width is 0 on the page, so every comparison ends in wait or switch. The timetable risk lines show the same trip with the bus on time, 5 minutes late, and missed. Switching only helps if you make that bus. Evidence
Check the details
Anything read from the alert is tagged. Change it if it is wrong.
How good is it?
Ranking: better than the cause alone (AUC 0.751 against 0.727) and level with the first model (0.751 against 0.753, not distinguishable).
Calibration: expected calibration error 1.8 points pooled, against 2.4 for the first model (distinguishable). Calibration in the large (average forecast against actual share of 10+ delays) by period: 18% against 18%, 17% against 14% and 14% against 12%, so forecasts ran high in 2026 as long delays kept getting rarer. A fresher recalibration was tested on earlier against later data and did not pass, so it is not shipped.
Decisions: the card says switch only when switching still wins with the bus 5 minutes late, so it rarely does. In a simulation on 7,455 test delays it said switch on 107 of 13,174 trips (a delay and a direction of travel, 0.8%; 20 of 551, 3.6%, on delays of 20 minutes or more). In the simulation, those calls saved about 7.9 minutes each (95% interval 5.5 to 10.4) with buses on schedule and 2.9 with the bus 5 minutes late, and lost 14.5 when the first bus was missed; 17% of the calls lost time even on schedule. Spread over all 13,174 trips, switch call or not, that is 0.06 minutes per trip (0.04 to 0.09), and 1.06 per trip on delays of 20 minutes or more (0.60 to 1.60). The tables below count minutes per delay instead, where each delay is first averaged over its directions of travel: 0.06 (0.04 to 0.08) and 0.95 (0.54 to 1.43). Same simulation, two units. These are simulated minutes, not measured rider savings. Exploratory.
Why the late bus check: against switching on the timetable alone, it gives up 0.10 minutes per delay when buses run on time (2.13 on delays of 20 minutes or more) and loses less when they do not. Averaged over eight equally weighted what if scenarios (late buses, a missed bus, slower walking, slower boarding), whose real frequencies are unknown, it came out 0.63 minutes per delay ahead in the simulation. That average compares two rules in a simulation; it is not a rider benefit. Reconsidered after review and kept unchanged, with no extra rule for long delays (see “The late bus check” in the evidence).
What the chance is conditional on: it assumes the incident causes a recorded delay of at least 1 minute. 65% of logged incidents (30,515 of 47,063 on Lines 1, 2 and 4) record 0 minutes and are left out. Counted in, far fewer incidents reach 10 minutes (5.0% instead of 14.6% on the test periods), and the Kipling example would be 15% instead of 23%. How much lower depends on the cause, so the card shows both numbers side by side (the all incidents view comes from a separate fit), and the frozen model and the verdict are unchanged. For fire or smoke, 1,478 of 1,572 logged incidents on Lines 1, 2 and 4 record 0 minutes; that is why the St George fire example is 66% beside 4%. When the verdict says switch, a line under the two chances states that the call uses the first number, which assumes the incident delays service, and Plan B times from the timetable. Table: “Zero minute records” in the evidence.
Reading alerts: on the 51 newest of 102 real TTC alerts (Oct 15 to Nov 15, 2026, Toronto time), held out while the parser was fixed, it named the right station in 98% (50 of 51; 95% interval 90% to 100%) and the right cause in 98% (45 of 46; 88% to 100%). Planned work: 7 of the 102 alerts, 4 of them in the held out half, of which it caught 3. Before any fixes it named the right station in 87% of all 102. After three more fixes all 102 are right, but that is on the alerts used to fix it. The parser is now frozen; alerts first seen after the freeze form a fresh test set (none yet).
Live times: where the TTC's older NextBus feed has a live prediction for a Plan B stop, it is shown beside the timetable; everything else is a timetable estimate. The verdict uses the timetable, but if a live prediction shows the bus it relies on leaving 5 or more minutes after its timetabled time, or before you could reach the stop, a warning appears under the verdict. Only the stop code is sent to the NextBus host (webservices.umoiq.com), never your alert or destination; like any web host, it also sees your IP address and the time of the request. Under every verdict a live check line names its state: off (simulated examples), loading, unavailable, no live prediction, out of date (with the age of the last read), no conflict found, or disagrees (the bus is predicted later, or earlier than you could reach the stop). A missing, failed or old prediction never reads as a confirmation.
Riders: no rider testing has been done. A 10 minute script for five riders is ready in docs/rider-check.md, with no results yet.
Next to existing transit apps: Transit, the TTC's app partner, shows real time arrivals, trip plans, alerts for the lines you follow and detected bus and streetcar detours. The TTC's own tools give Live Service Alerts, a trip planner, e-alerts by email, and next vehicle times at bustime.ttc.ca or by texting a stop number to 898882. They say what is happening and what runs next, and for live arrivals and trip planning they are the place to look. The public pages describing them (checked November 15, 2026) do not mention an estimate of how long a subway delay is likely to last. Wait or Walk adds that one thing: a chance from the City's delay records for the alert's cause, station and time, set beside the scheduled buses near the station. It is meant to sit next to those tools, not to replace them. (Transit for the TTC, TTC: stay informed)
Exploratory: all three evaluation periods were looked at while the rules were chosen, so every result here is exploratory until the frozen model is scored on newer TTC data.
Evidence: tables, checks and caveats
Each evaluation period on its own
Every setting (recalibration and the rule's margin) is picked on the earlier window and then scored, unchanged, on the later evaluation period. All three periods have been looked at during development, so they are marked exploratory.
Which data each test period's model saw
The shipped model itself is never scored; every number on this page comes from per period models built the same way. No test period is scored with a calibration fit on that period. Each period has its own base model, trained on everything before its recalibration window, and its own Platt scaling, fit on the 91 days before the period starts. The shipped model is a separate fit (base model to Jul 1, 2026, recalibrated on Jul 2 to Sep 30, 2026) and is not used for any score on this page; the calibration chart also uses the test period forecasts. An automated test checks that every recalibration window ends before its test period starts.
Jul to Sep 2026 is not a fully independent check. An earlier private prototype was tested on that period, and what it showed (forecasts running high) led to the age weighting and recalibration. So results from that period informed the approach. For that reason the pooled results are also shown without it, below.
No fresh frozen test yet. There is no untouched post September evaluation yet. On November 15, 2026 the newest TTC delay file on City of Toronto Open Data (updated October 26, 2026) still ends on September 30, 2026, the last day the shipped model saw, so there are no newer delays to score. When the City publishes newer delays, scripts/frozen_test.py scores the frozen shipped model once on them against the cause only rule and the first model. That period will be the untouched one.
What the number means. The TTC logs each subway incident with the minutes it delayed service. In full: among comparable TTC incidents with a recorded delay of 1 minute or more, the model estimates the chance the recorded delay lasts 10 minutes or more (23% in the Kipling example). This is not the chance your current alert causes that delay, or your remaining wait, which also depends on where you are and how service is restored. The chips beside it give the same for 5 and 20 minutes. With “Delay already reached 5 min” the headline becomes the chance of 10 minutes or more in total among comparable delays that reached 5 (the 10+ chance divided by the 5+ chance), and with “Delay already reached 10 min” the chance of 20 or more among those that reached 10. Records with 0 minutes of delay ( of them) are left out, so the chance is conditional on the incident having a recorded delay at all; see “Zero minute records” below for both views.
The data. City of Toronto Open Data publishes a TTC subway delay log starting January 1, 2025. The copy used here has 47,915 records up to September 30, 2026; 16,548 of them are on Lines 1, 2 and 4 with more than 0 minutes of delay. On November 15, 2026 both this log and the TTC schedule were still the newest versions published.
Zero minute records: a sensitivity check
The shipped models are fitted on incidents with a recorded delay of 1 minute or more. The same pipeline (same features, age weighting, recalibration and test periods) was run again with the 0 minute records kept as “not 10+ minutes” (scripts/zero_minute_check.py). Nothing in the app changed. Test periods, forecast against actual share:
How it was made. Three logistic regressions, one each for 5+, 10+ and 20+ minutes, using only what an alert tells you: the cause, the station, the line, the time and the day. Newer delays count more (180 day half life). Each base model is trained on everything up to , then its output is recalibrated (Platt scaling) on the next three months () and shipped as is, with no refit. The three are kept in order (5+ at least the 10+ chance, 20+ at most); before that step they crossed for under 1% of test delays.
How the settings were chosen. The 180 day half life, the 91 day recalibration window and the 15% and 35% cut offs were set in the first commit and never changed. They were not chosen blind to the test periods: an earlier private prototype was tested on July to September 2026, one of the three evaluation periods, and its forecasts ran high there, which is why age weighting and recalibration were added. No record shows other values being tried before the first commit. The table under “More checks” shows the alternatives on the same periods: a 61 day window would have scored slightly better (log loss 0.3619 against 0.3628). The shipped values were kept rather than tuned on the test periods. The 15% and 35% cut offs still set the risk labels; since version r6 the wait or switch suggestion comes from the expected cost rule described below.
How the alert is read. You paste the whole alert (there is a paste button), or pick one from the copy of the TTC's open GTFS Realtime subway alerts that a scheduled job saves into this site every 30 minutes when they change (the TTC's feeds cannot be read from other websites directly). Alerts that read as planned work or a slow zone get no forecast. It is read by hand written rules, not a trained model: regular expressions for line names (such as “Line 2” or “Bloor-Danforth”), keyword patterns for 14 causes checked in a fixed order with the most specific first (“person at track level” before “track”), and a search for the 71 station names plus a few older names, such as Dundas for TMU. If more than one station, or a two line station without a line, could be meant, you choose.
The baselines. Cause only rule: the recent share of long delays for the cause, recalibrated the same way. First model: the same features and regression, trained on all earlier data with equal weights and no recalibration.
Why this model ships. Pooled over the three later periods (7,455 delays; July to September informed the approach, so this pool is not fully independent; the same figures without that period are shown below), it ranks incidents as well as the first model (AUC 0.751 against 0.753, not distinguishable) with the same log loss (0.3628 against 0.3630) and a lower calibration error (1.8 against 2.4 points; 0.6 points lower, 95% interval 0.3 to 0.9). In the latest period its log loss, Brier score and calibration error are distinguishably better, because it follows the 2026 drop in long delays; in the first period (Jan to Mar 2026) it is distinguishably behind the first model on AUC, log loss and Brier score. The cause alone gets most of the way: the cause only rule reaches AUC 0.727, and station, line, time and day add 0.024 (95% interval 0.016 to 0.032).
Forecasts run high
Results with 95% bootstrap intervals, all three periods pooled (10+ minutes)
Without Jul to Sep 2026 (Jan to Jun only, 5,207 delays)
On the two periods that did not inform the approach, Wait or Walk still clearly beats the cause only rule (AUC 0.742 against 0.707), but the first model is slightly ahead on AUC (0.746, by 0.004), log loss (by 0.0025) and Brier score (by 0.0008). All three gaps are small but distinguishable, whether single delays or whole days are resampled; calibration error is not distinguishable (1.9 against 1.6 points). Its advantage over the first model comes from the latest period, where the 2026 drop in long delays matters most.
Intervals come from 2,000 bootstrap resamples of the delays within each period. “Not distinguishable” means the 95% interval of the difference includes zero. Calibration error is the average gap between forecast and actual across the forecast bands in the chart, weighted by the number of delays.
Decision value at the risk band cut offs
At 35% (high risk), Wait or Walk flags a quarter of the delays that ran 10 minutes or more, with about 5% of short delays flagged by mistake. The first model flags a few more of each (29% and 7%); the cause only rule flags fewer of each (14% and 2%). At 15% the three are close.
The wait or switch rule, picked on earlier data (simulated minutes)
The old rule said to check another route whenever the 10+ chance was 35% or more. Two rules were tried in its place, each with its setting picked on earlier data only (each test period's own recalibration window, which ends before the period) and then tested on that period, in the station simulation below. 20+ chance rule: switch when the 20+ minute chance reaches a threshold. Expected cost rule: switch when the expected logged delay (the three bands times the average logged minutes in each range, capped at 60) minus the station's scheduled switch cost reaches a margin. The expected cost rule was clearly better than the old rule and than always waiting, so it was adopted; the 20+ chance rule was not. Since version r10 it ships with the late bus check (the last two columns). Average minutes lost per delay:
Exploratory, not confirmed. The expected cost rule was chosen over the 20+ chance rule after both were compared on these same evaluation periods, so its advantage is exploratory: the intervals above do not account for that choice, and it has not been confirmed on an untouched period (none exists yet; see the forecast log). Within the rule, the margin picked on each earlier window varied: 0.5 minutes below, 1 minute above and 0.5 minutes above; the shipped margin is 0.
What a rider would see: how often it says switch, and what those calls gain in the simulation
The minutes per delay above are spread over every delay, most of which get a wait call. This counts the switch calls of the shipped rule itself: each trip is one test delay and one direction of travel along the line (13,174 trips; 7,483 had a scheduled alternative within 3 hours). The rider still decides from the schedule; the rows say what really happens after that. A recomputation of the same simulation, with no new rule.
Units: the switch rate counts trips (a past delay and a direction of travel), and so does this: over all 13,174 trips the switch calls come to 0.06 minutes per trip (0.04 to 0.09). Same simulation, two units: the other tables count minutes per delay, averaging each delay over its directions first (0.06, 0.04 to 0.08).
The late bus check: shipped (simulated minutes)
Switch only if switching still wins with the bus 5 minutes late. The 5 minutes was fixed in advance, not tuned. It was scored on each period's earlier window and on the later test period. The rule for shipping, set before the run: not worse than the timetable only rule averaged over all eight stress scenarios on the test periods. It passed, and the earlier windows agree. It was added after a stress test of the timetable only rule was known, so it is exploratory like the rest. The eight scenarios are equally weighted what ifs, not measured frequencies, so the average of the eight compares the two rules; it is not a rider benefit.
A margin picked for late buses: tested, not shipped (simulated minutes)
Could a bigger margin protect riders when the bus runs late? For each test period the margin was picked on that period's earlier window as the one with the fewest minutes if every bus ran 5 minutes late, then the full stress test was run with it. The rule had to be at least as good as the timetable only rule as scheduled and lose less under slippage. Margins picked: 3.5, 12.5 and 4 minutes.
Already underway: are the conditional chances sound?
Drift in the expected delay. The averages in each range come from the base training data, and long delays became rarer in 2026. They barely moved: for 20+ minutes, 33.9 minutes in the base data against 32.0, 35.2 and 34.0 in the windows just before each period. Using those recent averages instead (with the margin picked again on the same earlier window) changed the simulated minutes by 0.01 per delay, not distinguishable, so the shipped averages are kept. The expected delay does run high in the later periods (6.4 against 5.95 logged minutes on average in Jul to Sep, 7.1 against 6.4 in Apr to Jun) because the forecasts themselves run high, not because of the averages.
Read honestly: it wins by switching less on short delays (it is still 0.04 minutes behind always waiting under 10 minutes) and more on long ones. These are simulated minutes, and the intervals hold only under the simulation's assumptions: November 2026 schedule days applied to earlier delays, logged delay minutes as the cost of waiting, and alternatives that run as scheduled. On the page the switch cost uses your destination when it is on the same line; in the simulation it is the first station past the delay, averaged over both directions. That is why the Kipling example, headed to Jane 4 stops away (Islington, Royal York, Old Mill, Jane), is not limited by the simulation's cap of 3 stops: the cap only decides which station counts as past the delay in the simulation (for the 149 from Kipling, Islington, 1 stop along), while the page compares door to destination along the line. The expected delay is about logged service delays, not your own remaining wait.
A decision simulation with schedule based switch costs, not real savings
For each test delay and each direction along its line, switching costs the walk to the stop (80 metres a minute) plus 1 minute to board, the wait for the next scheduled departure after that, and the scheduled ride to a station past the delay (at most 3 stops along), minus the scheduled subway time between the same two stations (floored at 0). Waiting costs the logged delay minutes, capped at 60. This table uses the old rule (switch at 35% or more, when an alternative leaves within 3 hours). Tue Nov 17, Sat Nov 21 and Sun Nov 22, 2026 in the current schedule stand in for each day type, so the intervals hold only under that assumption. Average minutes lost per delay:
Read honestly, in the simulation: switching on a high forecast saves 1.68 minutes per delay of 20 minutes or more (95% interval 0.98 to 2.48) and 3.16 per delay of 30 minutes or more (1.80 to 4.79) against always waiting, but costs 0.41 per delay under 10 minutes, so across all delays it is 0.35 minutes behind always waiting (0.26 to 0.44). In the long tail it is level with the cause only rule (0.08 minutes ahead, 0.21 behind to 0.39 ahead); across all delays the cause only rule, which switches less often, loses less. Hindsight shows how much is left: 7.4 minutes per delay of 20+. Intervals resample whole days. The logged minutes are delays to service, not any one rider's wait.
Reading the alert: tested on 102 real TTC alerts
102 distinct subway alerts the TTC posted from August 8 to November 15, 2026, Toronto time (the last at 9:12 p.m. on November 15, which is November 16 in UTC; updates and "service resumed" posts left out), each labelled by hand from the text alone: the line, every station named, the cause group and whether it is planned work. The older 51 (to October 15) were used to find and fix errors; the newer 51 were held out, and their score after the fixes from the older half is the headline: 98% for stations (50 of 51) and 98% for causes (45 of 46). 7 of the 102 are planned work (3 older, 4 newer), too few to say much: the held out 75% is 3 of 4. One labeller, with no second check. Station counts as right when the one station named is read, or, for an alert naming two or more, when the choice lists exactly those stations.
Errors found in the older half: a station name inside a longer one (St Clair in St Clair West, Lawrence in Lawrence West, Finch in Finch West), "Vaughan" not read as Vaughan Metropolitan Centre, and "operational problem", "communication issue" and "TPS investigation" not read as a cause. Those were fixed; the same name rule also fixed Sheppard West and Dundas West in the newer half. Three more errors were left in the newer half and then fixed too ("power being shut off at track level" read as a person at track level, "Line 4 Sheppard" read as Sheppard-Yonge station, "limited nightly service for tunnel improvements" not read as planned work), so the final 100% is not an independent test and is not the headline. One alert with only "an investigation" gives no cause and you choose. Labels and script: data/alerts_labelled.json, scripts/parser_eval.mjs.
Frozen, with a fresh test set. The parser (with the model and the verdict rule) was frozen at the tag slay-hacks-submission; a check in the tests fails if those files change. Every alert the alerts job first sees after the freeze is a fresh test case that was never used to fix the parser, counted in data/parser_fresh.json and scored by scripts/parser_fresh.mjs once labelled by hand.
Why forecasts run high, and a fix that did not pass
Two measures, named: calibration in the large is the average forecast against the actual share; calibration error is the expected calibration error, the gap in seven forecast bands weighted by delays. The pooled calibration error of 1.8 points hides the direction: by period the 10+ forecasts averaged 18% against 18% actual (Jan to Mar), 17% against 14% (Apr to Jun) and 14% against 12% (Jul to Sep). In the 5 minute underway check, 34% against 31%. The share of 10+ delays kept falling through 2026 (19% in January, 15% in April, 11% in July), and the recalibration averages the 91 days before each period, so it lags a falling trend.
Tested: shift each period's forecasts so they match the actual share in only the last 30, 46 or 61 days of its earlier window, then score on the later period. Rule: ship only if the 10+ gap shrinks in all three periods and pooled log loss is no worse for any band. None passed: each helps Apr to Jun a little, but makes Jan to Mar worse and leaves Jul to Sep about where it was. This rule was written after a first look at the numbers. So the forecasts are shipped as they are, with this note.
Alert time forecast log
Each time the alerts job copies the TTC feed, it saves the forecast for every new subway alert as it would have been shown then (time of day, the alert as read, the 5+, 10+ and 20+ chances, the model), one line per alert in data/alert_forecasts.jsonl, never edited. Lines logged more than 40 minutes after the alert was first seen are marked backfilled. A sanity check in the tests and in the job checks every line (ids, chances in order, no forecast for planned work, the backfilled flag, time of day and day type); all pass. Once the City publishes delays for those dates they can be matched and scored. It has not been scored, so it makes no accuracy claim yet.
Accessibility
Automated checks on every change: axe-core finds no WCAG 2.1 A or AA violations at phone and desktop widths with every fold open; a keyboard only run tabs to an example, opens it with Enter, presses the underway buttons with Space and picks a station choice with Enter, with focus visible and moved to the result; every control has a name; the call is announced by one short status line; headings do not skip levels. No manual screen reader test has been done.
More checks: day blocks, 5+ and 20+, station by cause pooling (tested and rejected), settings, fixed switch costs
Resampling whole days instead of single delays
Delays on the same day can share causes such as weather, so single delay resampling may give intervals that are too narrow. As a sensitivity check, the same comparison resamples whole service days within each period:
Chance of 5+ and 20+ minutes
For 5+ minutes Wait or Walk ranks far better than the cause alone (AUC 0.702 against 0.643). Against the first model it is level on AUC, slightly better on Brier score (0.2192 against 0.2203) and log loss (the log loss gap holds when single delays are resampled, not when whole days are), and distinguishably better calibrated (2.4 against 4.5 points). For 20+ minutes it beats the cause alone (AUC 0.773 against 0.752) and is level with the first model on every measure. Only 4% of test delays ran 20 minutes or more, so its intervals are wide.
Station by cause pooling: tested and rejected
Rare combinations, such as one cause at one station, could carry their own risk. This check adds an empirical Bayes adjustment for every station and cause pair on top of the base model (observed against expected long delays, shrunk with a gamma prior whose strength is picked by marginal likelihood), then recalibrates. The marginal likelihood picks the strongest pooling tried, in effect no adjustment: the pairs add nothing the station and cause already carry. Without pooling the pairs make it worse (log loss 0.3702 against 0.3628). It is not shipped.
Other half lives and recalibration windows
Fixed switch costs
The earlier version of the simulation with a fixed 8, 12 or 15 minute switch cost. It shows no clear saving either way.
Results for each evaluation period
Jan to Mar, Apr to Jun and Jul to Sep 2026, each an out of time evaluation period not used for fitting: the base model stops three months before the period, the recalibration uses those three months.
Share of delays lasting 10 minutes or more, by month
Limits: the cause list follows TTC delay codes grouped into the words alerts use, so an alert with an unusual cause reads as “other”. Causes or stations with fewer than 100 logged delays are flagged as rough. The “already underway” setting reads “Delay already reached 5 min” as the recorded delay having reached 5 minutes, because the log gives total minutes but not when an alert went out. No rider testing has been done; a 10 minute script for five riders is ready in docs/rider-check.md, with no results yet. This is an estimate to help you decide, not a promise. Always follow TTC staff and announcements; it is not for decisions about leaving a train or evacuating.