-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Uncertainty intervals of forecast are wrong when it goes negative. #21734
Comments
Hi it will be very help for us to resolve this issue if you provide detailed information, |
I'm not sure if this is still an issue in current versions of Superset (3.x). If it is, we can re-open this, or feel free to open a new issue with updated context and a reproducible case using example data. We're no longer supporting Superset 2.x or prior, and it's been a while since this thread saw any activity, so I'm closing this as stale. |
The problem is still here in 3.1. You need any data with negative values. For example, creating a line chart based on this query, and adding a forecast works as expected:
Changing the sign of the value yields instead: And in fact, plotting MIN(SP_POP_AG14_MA_IN) - 170 works fine: But plotting MIN(SP_POP_AG14_MA_IN) - 172 is odd again, even though there aren't any negative values. |
Ahh, thanks for the context! Re-opening! |
This issue has gone stale, but I'm hesitant to close it. Not sure if @villebro took a look at it and/or has any clues to go on. |
The problem remains on v4.0.2. I can't find where the plot is actually being done, so I haven' been able to track down the problem further. But I have checked the raw data, and prophet is modelling it correctly, is just the display. The issue doesn't have much activity, but the bug persists, so I think closing it is wrong. |
I'm struggling with this issue as well. Any attention would be greatly appreciated. |
Uncertainty intervals of forecast never goes negative.
How to reproduce the bug
1 Take any data that includes negative values.
2 Run a forecast, including uncertainty interval
Expected results
I'd expect the uncertainty to be around the forecast.
Actual results
The uncertainty interval is clipped from below at 0, and behaves oddly.
Screenshots
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Here is some data one can use. I used Date as the X axis and min(temperature) for Y (days, weeks, or months, work fine).
Note that using max(temperature) instead yields nice-looking results, since almost all of it is positive.
The text was updated successfully, but these errors were encountered: