Definition

Importance sampling is used when we want to estimate the expectation of a function under a probability distributtion , but sampling directly from the distribution is either inefficient or impossible. Where
- is the target distribution
- is the proposal distribution whose support includes that of the support of the target distribution (). The proposal distribution needs to be easy to evaluate and sample from. Also, to reduce the variance of the expectation, should be high where is high.
- is the importance weight.