An estimator is a rule that uses observed samples to approximate an unknown statistical quantity. In importance sampling, weighted samples from a proposal distribution estimate expectations under a target distribution, even when normalization constants are unknown. section 2.7
Importance-sampling estimators are characterized by:
- Weights formed from target-to-proposal density ratios, including ratios of unnormalized densities. section 2.7
- Unbiasedness in theory under independent samples and consistency when importance-weight variance is finite. section 2.7
- Variance and convergence assessed through the estimator’s weight behavior and Chebyshev’s inequality. section 2.7
Estimating an expectation
An importance sampler draws positive samples from a truncated Gaussian proposal, evaluates target and proposal densities, computes their ratio as a weight, and estimates the expectation of f(x)=2 sin((π/1.5)x). Numerical integration supplies a ground-truth comparison. section 2.7
Figure 2.15 Importance sampler pseudo-code
Importance-sampler pseudocode makes the estimator’s sampling, weighting, and averaging procedure concrete. section 2.7


