You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just checking out the new version and noticed I was getting an inconsistent answer. Here is an MWE
using MeasureTheory
import Distributions as Dists
using LinearAlgebra
μ =zeros(2)
Σ = [1.00.0; 0.02.0]
Ω = [1.00.0; 0.00.5]
σC =cholesky(Σ)
ωC =cholesky(Ω)
dd = Dists.MvNormal(μ, Σ)
d1 =MvNormal{(:μ, :σ)}((μ=μ, σ=σC.L))
d2 =MvNormal{(:μ, :ω)}((μ=μ, ω=ωC.L))
d3 =Affine(AffineTransform((;μ, σ=σC.L)), Normal()^2)
# I expect this to give -0.5 log((2π)^2 * 2) ≈ -2.1845logdensityof(dd, zeros(2)) # ≈ -2.1845logdensityof(d1, zeros(2)) # ≈ -3.676logdensityof(d2, zeros(2)) # ≈ -3.676logdensityof(d3, zeros(2)) # ≈ -3.676
From my poking around, it looks like the log jacobian of the affine transform isn't being included in the density calculation, and inv(2pi) is being included twice: once in the basemeasure density and a second time in the proxy call.
The text was updated successfully, but these errors were encountered:
Hi Chad,
I was just checking out the new version and noticed I was getting an inconsistent answer. Here is an MWE
From my poking around, it looks like the log jacobian of the affine transform isn't being included in the density calculation, and
inv(2pi)
is being included twice: once in the basemeasure density and a second time in the proxy call.The text was updated successfully, but these errors were encountered: