Hi Nick,I think what you're doing is similar to sampling a simplex (the space of N numbers that sum to 1), but with the looser restriction that the sum has to be smaller than 1. I don't know whether there are standard ways of dealing with this, but there are standard changes of variables to sample the simplex. For example, I think stan uses the transformations presented inI presented a similar transformation in appendix B ofIn your case, maybe you can re-parametrize your N concentration variables to be a) sum(concentrations) and b) the fractions concentration/sum(concentrations) and then transform a) such that it goes from -inf to inf (e.g., logit) and b) to be sampled as a simplex. Then you won't run into a hard boundary anywhere.Best,Jo
--
You received this message because you are subscribed to the Google Groups "emcee users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emcee-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emcee-users/ae5e3dfc-a4a0-48c4-a18b-321b76c3d07dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emcee-users/CALeWRE4Q9PYfAkZVs_ZUAUyVy2FSH_%2BjFt26YVoe8LVH6aw_%3DA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emcee-users/1be9a030-9eb8-45fc-be9d-83cdf7ef9d1cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emcee-users/d3cf1330-5c9f-4f56-93a0-149b18a997bfn%40googlegroups.com.