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
In the following code I want to sample two variables, X1 ~ Uniform(0,1) and X2 ~ Uniform(0,X1)
using Turing
@model function model()
X1 ~ Uniform(1e-5, 1)
X2 ~ Uniform(0, X1)
end
my_model = model(); sample(my_model, NUTS(), 10000)
The mean of X2 should be 0.25 but I got it varying a lot each time. I believe X2 is not sampled correctly. I don't see the problem if X2 ~ Normal(X1,1) or X2 ~ Exponential(X1). Does anyone know why this issue happens and why it's specific to uniform distribution? Thanks in advance.
The text was updated successfully, but these errors were encountered:
In the following code I want to sample two variables,
X1 ~ Uniform(0,1)
andX2 ~ Uniform(0,X1)
The mean of X2 should be 0.25 but I got it varying a lot each time. I believe X2 is not sampled correctly. I don't see the problem if
X2 ~ Normal(X1,1)
orX2 ~ Exponential(X1)
. Does anyone know why this issue happens and why it's specific to uniform distribution? Thanks in advance.The text was updated successfully, but these errors were encountered: