Algorithm 3.
Posterior sampling and prediction of LMC model (1) with MGP priors.
| Initialize and for , and | ||
| for do | ⊳ sequential MCMC loop | |
| for , do in parallel | ||
| 1: | use SiMPA to update | ⊳ |
| for , do in parallel | ||
| 2: | use Metropolis-Hastings to update | ⊳ |
| 3: | use Metropolis-Hastings to update | ⊳ |
| for do | ⊳ sequential | |
| for do in parallel | ||
| 4: | use SiMPA to update | ⊳ |
| Assuming convergence has been attained after iterations: | ||
| discard for | ||
| Output: Correlated sample of size with density | ||
| . | ||
| Predict at for and sample from , then from |