Links: Notes about MCMC on bounded domains
A note to self:
Recently I had an exercise task that required sampling a posterior distribution where parameters were restricted .
How to do this?
See this SE question and answers.
-
Independence sampler on the bounded region.
-
Transform the variables to unbounded space ie sample from . But if I’m not mistaken, this requires changes to target posterior distribution, and maybe also proposal? I should investigate.
-
Work out a proposal that is not independence sampler but still draws proposals within the bounds.
-
Simply reject the proposals outside the bounds. May not work well.
-
Extend the target outside the bounds, ignore all samples that are in the extended area. This sounds weird.
All of the above in the context of a regular MCMC. What about HMC?
Gelman et al. 2014 [1] discuss this on page 303. Instructions:
-
Ignore the value that stepped outside the restricted set, continue iteration from the previous legal value of .
-
‘Bouncing’: if the target density is not positive at some point of iteration, change the sign of the momentum.
-
Transformation. Again, one must carefully work out the correct posterior. (No mention about proposals.)
-
I guess other methods mentioned above might work as well.
References
[1] Gelman, Carlin, Stern, Dunson, Vehtari, Rubin. Bayesian Data Analysis, 3rd edition. 2014. CRC Press (Boca Raton, FL).
Internet references
stats.stackexchange.com/questions/73885/mcmc-on-a-bounded-parameter-space
xianblog.wordpress.com/tag/constrained-parameter-spaces/