Skip to content

Compare VP- and TU-based stop arrivals data - #2174

Merged
mrtopsyt merged 5 commits into
mainfrom
2165-compare-vp-and-stop-times-data
Aug 18, 2026
Merged

Compare VP- and TU-based stop arrivals data#2174
mrtopsyt merged 5 commits into
mainfrom
2165-compare-vp-and-stop-times-data

Conversation

@mrtopsyt

Copy link
Copy Markdown
Contributor

Changes

  • Added notebook and sql queries to compare stop arrivals generated from Vehicle Positions (VP) in the speeds pipeline and from Trip Updates (TU) in the fct_stop_times_metrics table on dates where both are available.

Summary of Findings

  • TU-based data is generally available for a greater number of trips than VP-based data
  • For different agencies checked (SamTrans, SFMTA, SBMTD, SacRT), 83-90% of stop arrivals available for both agencies matched within 60 sec. Lower levels of alignment were anecdotally associated with MTC Regional Feeds.
  • For SamTrans specifically, TU stop arrivals snapped to within an integer multiple of 60 seconds from a schedule, which was not observed for VP.
  • For all agencies checked, TU data was associated with a 5-10x greater incidence of non-monotonic arrivals, however the magnitude of these non-monotonic cases was smaller. Note that the VP data is subject to data cleaning steps designed to decrease non-monotonicity, whereas the TU-based data is not

@mrtopsyt mrtopsyt linked an issue Aug 18, 2026 that may be closed by this pull request
@mrtopsyt

Copy link
Copy Markdown
Contributor Author

@hhmckay @edasmalchi, this is the notebook I presented to you! Merging because it's all new files, but wanted to ping you in case you want to take a look

@mrtopsyt
mrtopsyt merged commit ce01469 into main Aug 18, 2026
3 checks passed
@mrtopsyt
mrtopsyt deleted the 2165-compare-vp-and-stop-times-data branch August 18, 2026 21:18
@github-actions

Copy link
Copy Markdown

nbviewer URLs for impacted notebooks:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Research Task - Compare VP and Stop Times Data

1 participant