Put , with . The Cauchy-Schwarz inequality applied to and gives
Equality holds exactly when is proportional to on the contributing probability support. Therefore the minimum-variance importance distribution is
If has one sign, and the ideal proposal gives zero variance. Its normalization or exact sampling may nevertheless be impractical. If , the integrand vanishes almost everywhere and the estimator is identically zero.
The minimizing probability density function may vanish where even though there. This is valid for the ordinary estimator, which needs probability support only for its integrand. If one insists on exactly the same positive probability support as , the bound is instead an infimum whenever this vanishing occurs, approached by as : because , the second moment lies between and , proving convergence to the bound.
For independent draws from a normalized proposal , use the importance sampling identity
Thus the unbiased estimator and its variance are
The probability support condition is wherever , and the variance formula requires a finite second moment. Since both probability densities are normalized, no self-normalization of weights is needed.
In the proposed example, normalize to on . It is sampled by for uniform . Taking gives
As a check, . The second moment of one weighted observation is
so . The weight's singularity at zero does not make this variance infinite.
To prove the optimal proposal rule, apply the Cauchy-Schwarz inequality:
Equality holds when the two factors are proportional almost everywhere, giving the minimum-variance importance distribution
For the present nonnegative integrand, normalization gives
Under this proposal, is constant, so the variance is exactly zero. If sampling is wanted, its distribution function is , with inverse . In general the optimal proposal's normalizing constant can itself be the unknown integral, limiting this zero-variance construction's practical use.
Choose a proposal probability density function positive wherever is nonzero, up to null sets, and draw independent and identically distributed random variables from . The ordinary importance sampling estimator is
The support condition for importance sampling and absolute integrability give , so this is an unbiased estimator. Its variance, possibly infinite, is
Let . If , the Cauchy-Schwarz inequality yields
Equality holds for proportional to . Thus the minimum-variance importance distribution and the minimum variance are
For a constant-sign integrand this is zero variance. If , the integrand vanishes almost everywhere and the zero estimator already has zero variance. Requiring the proposal to cover all of the target's support, including where , can exclude ; in that stricter class, approaches the same infimum as . This distinguishes coverage of the integral from coverage of every target event.
The integrand is positive, so the minimum-variance importance distribution is its target-weighted probability density function, normalized by :
By completing the square,
Thus is the multivariate normal distribution , where is the first standard basis vector. Its importance weight and weighted integrand are
A variance cannot be negative, and this proposal makes every summand constant, proving optimality directly. It is admissible under the arbitrary-proposal condition even though its mean vector is not zero. Although optimal proposals usually involve an unknown normalizing integral, here both that integral and the resulting normal distribution are explicit.