Skip to content

Variance seems to be off by 1 #2499

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

You must be logged in to vote

The issue is the very last line here:

observed_pred = model.likelihood(model(test_x))

What this does is add the observation noise variance to the posterior. So you're computing the posterior predictive over y, not the posterior over f. model(test_x) will return the posterior mvn that you're looking for. Calling likelihood() on that will add the noise variance to the diagonal, which is why you're getting the offset. If you want the posterior over f just use model(test_x).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ToennisStef
Comment options

@Balandat
Comment options

@ToennisStef
Comment options

Answer selected by jacobrgardner
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