Skip to content

Two questions about the likelihood in ExactGPs, and fitting GPRs that smoothly account for noise #2094

Answered by gpleiss
miguelgondu asked this question in Q&A
Discussion options

You must be logged in to vote

First, I'm curious why we have to call y_pred = likelihood(model(x)) given that, in eval mode, model(x) already returns the distribution...

  • model(x) returns the posterior distribution f(x*) | y ~ N( k^* (K + \sigma^2 I)^{-1} y, k** - k^* (K + \sigma^2 I) k).
  • likelihood(model(x)) returns the posterior predictive distribution y(x*) | y ~ N( k^* (K + \sigma^2 I)^{-1} y, k** - k^* (K + \sigma^2 I) k + \sigma^2).

The difference between them is an additional \sigma^2 variance term. This is because y(x*) | y = f(x*) | y + \epsilon, where \epsilon ~ N(0, \sigma^2) is the observational noise.

I might be confusing the likelihood for noise modelling, but I thought that the posterior model(x) al…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@miguelgondu
Comment options

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