cal-itp / data-analyses

Place for sharing quick reports, and works in progress
https://analysis.calitp.org
27 stars 5 forks source link

Research Request - Nearest neighbor comparison #1162

Closed tiffanychu90 closed 2 months ago

tiffanychu90 commented 3 months ago

Complete the below when receiving a research request, and continue to add to this issue as you receive additional details and produce deliverables. Be sure to also add the appropriate project-level label to this issue (eg gtfs-rt, DLA).

Research Question

Single sentence description: Compare the 2 or 3 nearest neighbor vehicle positions selected for speedmaps under Eric's rt_analysis and my gtfs_segments.nearest_snap.

Detailed description: Reworked nearest neighbor methodology looks roughly like:

Questions / Decision Points

stop arrival dwell leave speed_comparison
stop1 8:00 5 min 8:05
stop2 8:10 2 min 8:12 8:12 compared to 8:00 when we want to compare 8:10 to 8:05

Deliverables

Notebooks

edasmalchi commented 3 months ago

Thanks for this @tiffanychu90!

About to head off on vacation, but looking forward to digging into this in the second half of July.

I wonder if it would be helpful to define a small suite of "known trips" from rt_delay calculations (perhaps even including manual verification), that could then be a test set for accuracy. Could even start with the BBB trips you've already looked at, then add a few more covering different route typologies.

tiffanychu90 commented 3 months ago

@edasmalchi: Aiming to check in a notebook for BBB early next week, post aligning to before/after a stop, and incorporating dwell time too (which gets me closer to "after the bus leaves the stop" compared to "before the bus arrives at the next stop") + existing interpolation method, so that will align the methodology in those steps first.

tiffanychu90 commented 2 months ago