Algorithm 1.
Elliptical slice sampler for posterior distribution
| 1 | Input: Latent variable from the previous iteration . Observed data , previous updated parameter .. |
| 2 | Output Updated latent variable value |
| 3 | Sample ellipse |
| 4 | Compute log-likelihood threshold: sample and let |
| 5 | Sample angle parameter and |
| 6 | |
| 7 | while do |
| 8 | if then |
| 9 | |
| 10 | else |
| 11 | |
| 12 | Sample . |
| 13 | Make new proposal |
| 14 | Return . |