CONTENTS

Exercise: Tail probability via importance sampling

Estimate P(Z>4)\mathbb{P}(Z > 4) for ZN(0,1)Z \sim N(0, 1) using:

(a) Plain Monte Carlo with N=105N = 10^5.

(b) Importance sampling with Z~N(μ,1)\tilde Z \sim N(\mu, 1) for μ=4\mu = 4.

True value: 1Φ(4)3.17×1051 - \Phi(4) \approx 3.17 \times 10^{-5}.

Tasks

  1. Implement both estimators. For each, report the point estimate, 95% CI, and the ratio of the IS standard error to the plain SE.

  2. Vary μ{0,2,4,5,7}\mu \in \{0, 2, 4, 5, 7\}. Plot the IS standard error against μ\mu.

  3. Optimum. From the optimal-qq formula qfpq^* \propto f \cdot p (where f=1{Z>4},p=ϕf = \mathbb{1}_{\{Z > 4\}}, p = \phi), what's qq^*? Approximate it with a normal — what mean and variance?
  4. Compare μ=4\mu = 4 (centre on barrier) with μ=5\mu = 5 (slight overshoot). Why does μ=4\mu = 4 work well?