Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data] More Bus Statistics #54

Closed
dcjohnson24 opened this issue May 5, 2023 · 4 comments
Closed

[Data] More Bus Statistics #54

dcjohnson24 opened this issue May 5, 2023 · 4 comments

Comments

@dcjohnson24
Copy link
Collaborator

dcjohnson24 commented May 5, 2023

Calculate some additional bus statistics such as

  • Average speed
  • Bunching
  • Average headway
  • Excess wait time (Actual headway - Scheduled headway)

These numbers could also be calculated for different sections of each route.

See here for more information.

@kollerbud
Copy link

are these issues still active and need to to be worked on? I can start on them.

@dcjohnson24
Copy link
Collaborator Author

Yes these are still active. Thanks for your help.

@kristenhahn
Copy link
Contributor

kristenhahn commented Aug 6, 2023

I may be able to help with some of this. I've been working on headways using the chi-hack-night ghost buses data for awhile now here. You're welcome to use anything you find helpful there, and I'm happy to help wherever I can. A jupyter notebook gives an overview of what the code in headways.py can do. It calculates bus arrival times for a given bus stop, route, and direction of travel. It calculates scheduled headways and actual headways and summarizes both. Mean, median, 25th and 75th percentile headways are provided for the day at each bus stop on a given day and route. This is an independent learning exercise for me, I'm not a professional coder. So I think the logic is good, but I have no idea whether the code is clear and useful to others. If not, comments or suggestions are always welcome. I plan to add to the readme later this weekend, to explain a few nuances in the approach.

@dcjohnson24
Copy link
Collaborator Author

This looks great, thanks! I'll try to take a closer look at this later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants