-
Notifications
You must be signed in to change notification settings - Fork 421
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
pdf(MvNormal([1 0.4; 0.4 1]), [-Inf, -Inf])
is NaN
while should be 0
#1937
Comments
I think we might need to add a branch for this case. While the quadratic form will always go to infinity as one of more elements diverge when the matrix is positive definite, this will not be possible to track from the individual vector elements of the intermediate values julia> A = [1 0.4; 0.4 1]
2×2 Matrix{Float64}:
1.0 0.4
0.4 1.0
julia> A\[Inf, Inf]
2-element Vector{Float64}:
NaN
NaN The fix should probably be in the |
@andreasnoack Thanks for pointing down the place where the issue might lie. Any chance you'll explain to me what exactly needs to happen for this to get fixed ? I could propose a PR |
In the method I linked to, I think we'd have to check if the vector argument in the quadratic form for any non-finite elements. I think we can assume that the matrix doesn't have any non-finite values if the Cholesky factorization is successful. So if the vector has any |
Everything is in the title. I do not really know what to do about it, is that expected ? easily fixable ?
The text was updated successfully, but these errors were encountered: