Skip to content

Question on MAP posterior approximator #77

Closed Answered by gianlucadetommaso
PaulScemama asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Paul, you are sampling target variables $y^{(i)}$ from the predictive distribution $p(y|x, D)$, where $x$ is a certain input for which you want to get target samples, and $D$ is your training data. In order to sample from the predictive distribution, you can actually sample from the joint distribution $p(y, \theta|x, D) = p(y|\theta, x)p(\theta|D)$, where $\theta$ are model parameters. This means that, in order to obtain a sample $y^{(i)}$ given $x$ and $D$, you can first sample $\theta^{(j)}$ from the posterior $p(\theta|D)$, then sample $y^{i}$ from the likelihood $p(y|\theta^{(j)}, x)$.

As you correctly said, there is no randomness in sampling from the MAP approximation of the poste…

Replies: 1 comment 3 replies

Comment options

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

@gianlucadetommaso
Comment options

@PaulScemama
Comment options

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