I am aiming to get a numerical value for a five-dimensional integral using Monte Carlo Integration. I am getting good results using the Mean Value Method, but I would like to try to use Importance Sampling to get even better results.
My main source gives me an example of how to do this method using a one-dimensional integral, but it doesn't even mention how to replicate it for multivariable integrals. My main issue is generating a set of random numbers from a multivariable probability distribution function.
If I understand correctly the process of doing it for a single variable is setting up the equation:
$$\int_0^{x}dx^{\prime}\,p(x^\prime) = z$$
and then solving for $x$ ($z$ are the uniformly distributed random numbers generated).
How can I replicate this procedure for an arbitrary 5-dimensional pdf $p(x_1,x_2,x_3,x_4,x_5)$?
I could find no good sources on this, most of the ones that I found dealt specifically with n-dimensional Gaussian distributions.