-
Notifications
You must be signed in to change notification settings - Fork 419
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
0 <= cdf(truncated(Normal(2.5, 0.2), lower=0.0),x)
not always true.
#1854
Comments
I'd consider a julia> cdf(D, 3.741058503233821e-17)
-3.00686029885372e-50
julia> cdf(D, 1.4354474178676617e-18)
-3.00686029885372e-50
julia> cdf(D, 8.834854780587132e-18)
-3.00686029885372e-50 I'm leaning towards clamping the result in Alternatively, one could define julia> exp(logcdf(D, 3.741058503233821e-17))
0.0
julia> exp(logcdf(D, 1.4354474178676617e-18))
0.0
julia> exp(logcdf(D, 8.834854780587132e-18))
0.0 But I'm not sure if it's a good default since in many cases this will be less efficient - even though the current result from |
I think clamping on the line that I quoted is better than |
Just came across this issue myself with the following values:
Julia version 1.10.3, |
Followup to #1853
Consider the following:
I think I am simply hitting catastrophic cancellation in this line.
I understand that such numerical incauracies are always possible at borders, but would that be considered a bug ?
The text was updated successfully, but these errors were encountered: