0
$\begingroup$

What's the best way to sample from multivariate probability density functions that are proportional to $\exp(-\|x\|_2)$ or $\|x\|_2^p \exp(-\|x\|_2)$ for some positive integer $p$ with $x \in \mathbb{R}^d$?

$\endgroup$

1 Answer 1

3
$\begingroup$

The density of $R=\|\mathbf{x}\|_2$ is proportional to the density of $\mathbf{x}$ at $r=\|\mathbf{x}\|_2$ times the surface area of a $d$-sphere which is proportional to $r^{d-1}$ and thus, a $\operatorname{Gamma}(d+p,1)$ density. To simulate from the target density, one algorithm is to first simulate $\mathbf{z}$ from a standard $d$-dimensional multivariate normal, simulate $R \sim \operatorname{Gamma}(d+p,1)$ and finally compute $\mathbf{x}=R\frac{\mathbf{z}}{\|\mathbf{z}\|_2}$.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.