Post · 1 min read· p. 46

The Optimal Proposal Distribution Is Not P

The following is a quick rant about importance sampling (see that post for notation).

I've heard the following incorrect statement one too many times,

We chose q≈pq \approx p because q=pq=p is the "optimal" proposal distribution.

While it is certainly a good idea to pick qq to be as similar as possible to pp, it is by no means optimal because it is oblivious to ff!

With importance sampling, it is possible to achieve a variance reduction over Monte Carlo estimation. The optimal proposal distribution, assuming f(x)≥0f(x) \ge 0 for all xx, is q(x)∝p(x)f(x).q(x) \propto p(x) f(x). This choice of qq gives us a zero variance estimate with a single sample!

Of course, this is an unreasonable distribution to use because the normalizing constant is the thing you are trying to estimate, but it is proof that better proposal distributions exist.

The key to doing better than q=pq=p is to take ff into account. Look up "importance sampling for variance reduction" to learn more.