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
Use median instead of minimum price #12
Comments
I'm sorry for not answering this in 4 months 🙈 |
Why not show a graph per day, with a very low opacity, behind the lowest price? |
Which information should this graph display? |
A distribution of the prices of all tickets available for that day. Also the development of the minimum price in the past days would be interesting. |
A distribution of the prices of all tickets available for that day.
Sparklines?
Simpler variant (kind of histogram with only 3 bars): Q1 (25 %
quantile), Q2 (= Median), Q3 (75 % quantile) would serve that
purpose, cf. [1].
Also the development of the minimum price in the past days would be
interesting.
+ X% (superscript to Q1 through Q3) would denote the markup in the last
7 days (or choose a sensible period).
Will this be the main decision criterion for the user?
If yes, then there is nothing more important than this.
Price surge happens within days to departure — for weeks before the
price remains stable.Why not vary time granularity of price display accordingly?
Just an idea: "Book no later than … days before travel to escape price
inrease of x%."
[1]: https://en.wikipedia.org/wiki/Interquartile_range
|
I fiddled for me something together which looks like this: thigg@9f2a776#commitcomment-30855700 I would submit a pull request, if you are interested. |
First trial balloon on bahn.jetzt. @juliuste Is it okay to trigger concurrent requests on bahn.guru as implemented now?? Requesting permission ;-). |
@thigg Thank you very much for your work, I'm sorry that I didn't see your answer before. @derhuerst is this what you had in mind? |
@benjaminweb Looking great 😮 Feel free to PR |
Oh, sorry. Missed to link to the repo https://bitbucket.org/hyllos/bahn_preis_vtl. |
@benjaminweb can you explain what the first graphic is depicting? We have quite different approaches now, maybe we should think about, how they can be added to the overall UI. |
@thigg It shows how the share of fares falling into a price bracket, that for the specific date of your train commuting. I've just prototyped. It turned out to be a different animal than expected. |
Current Statehttps://bahn.jetzt/$variant/$startStationId/$stopStationId/$daysAhead and Examples (100 days in advance Hamburg -> Munich)Preis: http://bahn.jetzt/preis/Hamburg/München/14 Dauer: http://bahn.jetzt/dauer/Hamburg/München/14 EUR/min: http://bahn.jetzt/gewichtet/Hamburg/München/14 code lives at https://bitbucket.org/hyllos/bahn_preis_vtl Possible Integration=> bahn.guru calls bahn.jetzt with stationIds or stationNames and embeds svg TODO/IDEASo subclass group to view hours in description of hover Recent Changeso FIX: now display actual count of relations. Discussion: False positives mixed with positivesProblem statement: scenario 1: 10 hour connection, price: EUR 100 weighted approach: produces same number for both: 10 EUR/hr False positives: Positives: I. determine (A) low & (B) normal hours corridors simplify: => toss high hours. |
@juliuste => How can we take this forward? |
Great work 👍 It would be really cool to have this in the We also need to check how this looks on mobile. I already have one request, though 😄 Could we move the diagram key from the left to the bottom of the chart (or the top) and maybe reduce the height of the y-axis a little so that we have something with an aspect ratio closer to 3:1 rather than 3:2 (would make it easier to add the diagram above/below the current calendar). |
Thanks for your feedback. Let's rethink architecture before creating a chaos ;-): o get_prices: factor out into dedicated prices API That prices API would enable others to create things we do not even dream of. btw: would it be a prices API or a Sparpreis API only? |
Update ø get_prices: factor out into dedicated prices API
=> what's next? Conceptualise entry page with search boxes, similar to bahn.guru's root page. What's the coverage of the connections? All or only sparpreise? |
Update: Version 0.1.8.1 of sparpreis-api
TODO:
|
@juliuste ”since people are often looking for the lowest possible price, displaying the median price probably wouldn't help them. But it might make sense to have some other form of sorting, e.g. considering not only the price but the price per travel time (price maybe squared). I will think about this again.“ What about showing the cheapest price with its (shortest) travel time and the shortest travel time with its (cheapest) price? |
Minimum price might mislead.
See a month where most days show 19 EUR.
Some days carry most fares at 19 EUR.
Other days carry most fares a multiple of 19 EUR (yet there is a single weird connection of 19 EUR).
Just my bits…
The text was updated successfully, but these errors were encountered: