Skip to content

Posterior covariance matrix not positive-definite #2816

Closed Answered by Balandat
pluflou asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, sorry for the delay, this slipped through.

So one thing to call out here is that your Ys are very large and you're not actually passing the standardized observations to the model, so your mean and covariance matrix end up having values of the order of 10^10 or 10^16 even. This will cause all kinds of numerical problems, so make sure to actually standardize your inputs (the transforms you define don't do anything here since they're not passed to the model).

But even if you are normalizing the values, it can happen that the posterior covariance matrix is numerically not PSD if the test points are not very correlated. I ran your example with normalized Ys and the eigenvalues range up to…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pluflou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants