Python, Monte Carlo, Monte Carlo Simulation, Importance Sampling, Machine Learning.
distribution(mu_target, sigma_target) q_x = distribution(mu_appro, sigma_appro) For simplicity reasons, here both p(x) and q(x) are normal distributions, you can try to define some p(x) that is very hard to sample from. In our first demonstration, let’s set two distributions close to each other