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'm relatively new to probabilistic programming, so this question might be silly. As a simple example, say I want to estimate the probability that a sample from the 1D normal distribution is above a certain threshold using MCMC samples. A real application would involve higher-dimensional, non-Gaussian distributions.
Maybe a naïve way to generate some samples from the 1D distribution would be
@modelfunctionexample(threshold)
x ~Normal()
y ~Dirac(x > threshold)
end
m =example(2.0) | (;y=true)
example_chain =sample(m, MH(), 100000)
Is there a way that I could use these samples with another Turing model to infer p(y=true)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I'm relatively new to probabilistic programming, so this question might be silly. As a simple example, say I want to estimate the probability that a sample from the 1D normal distribution is above a certain threshold using MCMC samples. A real application would involve higher-dimensional, non-Gaussian distributions.
Maybe a naïve way to generate some samples from the 1D distribution would be
Is there a way that I could use these samples with another Turing model to infer
p(y=true)
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions