Python, Monte Carlo, Monte Carlo Simulation, Importance Sampling, Machine Learning.
us here because we can make it sample the more important regions more frequently. In particular, I’ll make q(x) like the below: But now if we’d like to use q samples we need to adjust the f(x) function. So let’s do that by multiplying it by the density ratio which gives us this: To declutter things