-
Notifications
You must be signed in to change notification settings - Fork 34
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
Baseline - Predicting Replaced (2nd choice) mode with logistic regression #1087
Comments
FYI, I think that the uprm-civic also has replaced mode ( |
Hi everyone! "public transport routing ... requires timetable data to work properly, and OSM doesn't have that." EDIT: I found that OSM does this
Realtime GTFSSome places provide realtime data such as boston MBTA https://www.mbta.com/developers/gtfs-realtime https://github.com/MobilityData/awesome-transit?tab=readme-ov-file |
@jpfleischer I meant we need routing in the sense of: I went from my house to the drugstore by car. I want to be able to run a query (ideally via API) that will give me the time and cost of the alternatives (e.g. the equivalent of this but with cost included OSM has transit data, and we use transit data from it using overpass for mode detection (look at `emission/net/ext_services ) but it doesn't do routing. OSM-based routing services such as OSRM or GraphHopper typically do not support transit. So we cannot use them to find transit alternatives. There is an open-source routing engine that takes transit into account (Open Trip Planner) We are friends with the OTP folks and have tried using their software before. But for us to use this in a production system, somebody still needs to run the software, load the data, keep it updated, etc. Ideally, there would be an overpass-like system that we could use for routing and that we could pay for if needed. But I am not sure that google maps alternative exists.
transit.land is intended to do that, at least for the US. But somebody needs to load that data |
One final comment on this: wrt the framing of this problem, we have discussed how there are people's preferences (which are related to the person) and the alternatives (which are related to the environment) So the same person may make different choices in a different environment (e.g. @jpfleischer taking transit in Boston but not in FL) even though their internalized preferences have not changed. Just wanted to highlight the flip side of that, which is that different people can have different preferences. While @jpfleischer would not ever take the bus in FL, there are clearly people who do (otherwise, the bus system would have shut down). For the replaced mode project, we want to understand individual or group preferences, specifically as a set of factors that influence their (assumed rational) choices. We can then apply those preferences to a different set of alternatives (new transit line, no e-bike available, parking restrictions...) and get a sense of how they will behave, and by extension, what the impact of the modification to the alternatives is. |
@jpfleischer Here is a PR related to the NTD data processing and integration for energy and emissions, maybe similar methods would allow us to extract transit cost? e-mission-common PR I think the notebooks in |
@Abby-Wheelis |
There are two main components to predicting mode choice with a choice model:
With these factors we can predict that Abby would choose e-bike (-25) and without the e-bike would choose car(-95) but wouldn't choose walk (-130), approximately.
As a baseline, we want to build a logistic regression model, since that is what is most commonly used in research and planning to model mode choice (ie what would the ridership returns on this transit investment be like?).
We have ground truth data about 2nd choice modes, through the replaced mode collected by programs that have a mode of interest, often
e-bike
. This is used to show the impact of the mode of interest, through things like emissions savings/reductions which we map on the public dashboard.To build up the alternatives, we'll need a few different pieces of data, which could be complex to figure out:
@shankari @jpfleischer for visibility
The text was updated successfully, but these errors were encountered: