Python, Monte Carlo, Monte Carlo Simulation, Importance Sampling, Machine Learning.
in practice if its best answer depends on p(x) and f(x) which are supposedly difficult to work with? That is indeed tricky and the answers aren’t very satisfying. The hope is that we’ll know a few things about p(x) and f(x) which will guide us. Maybe we know where f(x) is high or maybe we can pick