-
Notifications
You must be signed in to change notification settings - Fork 10
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
Canned median quantile #435
Conversation
It's not entirely obvious to me that:
Can you explain a bit why this should result in the intended behaviour? It seems to me that there are at least two things going on:
|
FYI: there's a missing |
Co-authored-by: Dmitry Shemetov <[email protected]>
You're right that it's the quantiles that are wrong. The problem is the interpolated quantiles get wrecked when one of the two quantiles gets adjusted by thresholding, making the median of the quantiles no longer equal to the point prediction. This is a fix for the median of the quantiles not being equal to the point prediction. It doesn't fix the fact that there are negative extrapolated quantiles, I'll add your suggestion for that in a minute. compare the case with only 2 extreme quantiles
the case with a median quantile
|
Checklist
Please:
dajmcdon.
DESCRIPTION
andNEWS.md
.Always increment the patch version number (the third number), unless you are
making a release PR from dev to main, in which case increment the minor
version number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
0.7.2, then write your changes under the 0.8 heading).
epiprocess
version in theDESCRIPTION
file ifepiprocess
soonepipredict
andepiprocess
Change explanations for reviewer
This is a minor patch to add the median as a fit quantile as a default, which deals with some problems caught in #431. The median can change radically after thresholding if there are too few quantiles, so this fixes the median by making sure the median is also fit and included in the distribution. It doesn't solve extrapolation, which is left open as an issue.
Edit:
this is a patch more or less, with a more principled fix discussed in #434