-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Issue with prior_predictive_sample and MvNormal #3758
Comments
Sayam753
added a commit
to Sayam753/pymc3
that referenced
this issue
Dec 6, 2020
4 tasks
Sayam753
added a commit
to Sayam753/pymc3
that referenced
this issue
Dec 10, 2020
twiecki
added a commit
that referenced
this issue
Dec 11, 2020
* Made sample_shape same across all contexts, thereby resolves #3758 * Pass the failing test * Worked on suggestions * Used to_tuple for size * Given a mention in release notes * Update RELEASE-NOTES.md Co-authored-by: Thomas Wiecki <thomas.wiecki@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This definitely isn't a high priority issue, but I'd love to understand what's going on if anyone has ideas!
This might be an issue with my understanding of
sample_prior_predictive
, but the fact that the behavior forNormal
andMvNormal
are not consistent suggests that it actually is a bug. Basically, it seems likeMvNormal
doesn't seem to condition properly on the sampled variables that it depends on (probably something to do withdraw_values
, but I don't really understand what happens under the hood well enough to know what!).In the following example:
I get the following output:
In the first line, I'm surprised that the samples of
d
are allnan
because it doesn't seem like there's anything wrong with the syntax, but the other results all seem right. But then the real issue is that I would expect the second line to return two numbers of order 1, but instead we're getting the sum of two random variables with sigmas of 1 and 100. This means that the mean of theMvNormal
is not being conditioned properly/consistently with the actual samples being generated. The PGM looks fine:So I expect that the issue is in the sampling, not the model specification.
Let me know if you have any ideas about what's going on here!
Versions and main components
The text was updated successfully, but these errors were encountered: