-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
logp of Bound
distributions is wrong
#1843
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
Comments
The second alternative seems more natural to the users and provides much more modelling power out of the box. |
I agree the second seems like the "right" answer, but it might be better for everyone to update the documentation and refuse the |
We might also want to somehow keep the functionality of the current |
If there is a place to gradually add cdfs, I can contribute a few of them too during the week. |
Maybe this could be called |
Implement numerically stable convenience functions for the Normal distribution. This will make the work in pymc-devs#1833 pymc-devs#1843 easier.
Uh oh!
There was an error while loading. Please reload this page.
This came up in #1833.
The logp function of
Bounded
returns the raw values of the underlying distribution, but it should correct those with the new normalization constant of the bounded distribution using the cdf and ccdf of the underlying distribution. In many cases this is just a constant, so the results of the samplers do not change, but ifBound
is used as an observed var (to model truncated data for example), this can lead to wrong results. This should either me mentioned in the doc ofBound
, and in this case it should probably refuse theobserved
keyword, or we would need to implement cdf and ccdfs for each distribution in pymc3.The text was updated successfully, but these errors were encountered: