-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Symmetry, non-negative-definiteness not enforced for Wishart sampling #395
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
Comments
You're right, that needs to be added. On Wed, Nov 20, 2013 at 10:08 AM, Justin Angevaare <[email protected]
|
Is there a more efficient way of doing this other than adding conditions in |
The most efficient way is to ensure that only non-negative definite matrices are proposed in the first place. You can do this by constructing matrices in your model with some constraints. Symmetry is easy, for example. |
I see. So getting Bartlett Decomposition (http://en.wikipedia.org/wiki/Wishart_distribution#Bartlett_decomposition) to work would probably be the best way? This is what I was going after when I ran into #379 |
Each sample generated from the Wishart distribution should be symmetric and non-negative definite, but that doesn't seem to be enforced in pymc.
e.g.
For this one test, the 500th iteration was neither symmetric nor non-negative definite.
The text was updated successfully, but these errors were encountered: