To address this exercise, we are tasked with estimating the integral:
[ I = \int_0^1 \int_0^2 \sin\left( \frac{x_1^3}{1 + x_2} \right) \ln\left( 1 + \frac{x_2}{x_1} \right) e^{-2x_1 - \frac{x_2^2}{2}} , dx_1 , dx_2 ]
Question 1:
First Estimator ( \hat{I}_n^{(1)} ):
We start by using the classical Monte Carlo method over the rectangular domain ([0,1] \times [0,2]). We generate (n) independent and identically distributed (iid) pairs ((X_{1i}, X_{2i})), where (X_{1i} \sim \mathcal{U}[0,1]) and (X_{2i} \sim \mathcal{U}[0,2]).
The estimator is then given by:
[
\hat{I}n^{(1)} = 2 \times \frac{1}{n} \sum{i=1}^n f(X_{1i}, X_{2i})
]
where (f(x_1, x_2)) is the integrand:
[
f(x_1, x_2) = \sin\left( \frac{x_1^3}{1 + x_2} \right) \ln\left( 1 + \frac{x_2}{x_1} \right) e^{-2x_1 - \frac{x_2^2}{2}}
]
Second Estimator ( \hat{I}_n^{(2)} ):
For the second estimator, we use importance sampling to reduce variance. Note that the integrand includes the exponential function (e^{-2x_1 - \frac{x_2^2}{2}}), which resembles the probability density functions (pdfs) of the Exponential and Normal distributions.
We generate (n) iid samples:
- (X_{1i} \sim \text{Exponential}(2)) (with pdf (h_1(x_1) = 2 e^{-2x_1})), and
- (X_{2i} \sim N(0,1)) (with pdf (h_2(x_2) = \frac{1}{\sqrt{2\pi}} e^{-\frac{x_2^2}{2}})).
We adjust for the fact that our original integral is over (x_1 \in [0,1]) and (x_2 \in [0,2]), by multiplying the integrand by indicator functions. The estimator is then:
[
\hat{I}n^{(2)} = \frac{1}{n} \sum{i=1}^n \frac{f(X_{1i}, X_{2i}) \cdot \mathbf{1}{[0,1]}(X{1i}) \mathbf{1}{[0,2]}(X{2i})}{h_1(X_{1i}) h_2(X_{2i})}
]
But since (f(x_1, x_2)) contains the factor (e^{-2x_1 - \frac{x_2^2}{2}}) and (h_1(x_1) h_2(x_2)) are precisely these exponentials, they cancel out in the ratio. Hence, the estimator simplifies to:
[
\hat{I}n^{(2)} = \frac{1}{n} \sum{i=1}^n \sin\left( \frac{X_{1i}^3}{1 + X_{2i}} \right) \ln\left( 1 + \frac{X_{2i}}{X_{1i}} \right) \cdot \mathbf{1}{[0,1]}(X{1i}) \mathbf{1}{[0,2]}(X{2i})
]
Question 2:
Calculating the Variance of Each Estimator:
Variance of ( \hat{I}_n^{(1)} ):
Since ( \hat{I}_n^{(1)} ) is based on iid samples, its variance is:
[
\operatorname{Var}\left( \hat{I}_n^{(1)} \right) = \frac{4}{n} \operatorname{Var}(f(X_1, X_2))
]
where ( (X_1, X_2) ) are as above.
Variance of ( \hat{I}_n^{(2)} ):
Similarly, the variance of ( \hat{I}_n^{(2)} ) is:
[
\operatorname{Var}\left( \hat{I}_n^{(2)} \right) = \frac{1}{n} \operatorname{Var}(g(X_1, X_2))
]
where
[
g(X_1, X_2) = \sin\left( \frac{X_1^3}{1 + X_2} \right) \ln\left( 1 + \frac{X_2}{X_1} \right) \cdot \mathbf{1}{[0,1]}(X_1) \mathbf{1}{[0,2]}(X_2)
]
and ( X_1 \sim \text{Exponential}(2) ), ( X_2 \sim N(0,1) ).
Asymptotic Confidence Intervals:
By the Central Limit Theorem, for large (n), both estimators are approximately normally distributed:
[
\hat{I}_n^{(1)} \approx N\left( I, \frac{4}{n} \operatorname{Var}(f(X_1, X_2)) \right)
]
[
\hat{I}_n^{(2)} \approx N\left( I, \frac{1}{n} \operatorname{Var}(g(X_1, X_2)) \right)
]
An approximate ( (1 - \alpha) ) confidence interval for ( I ) using estimator ( \hat{I}_n^{(1)} ) is:
[
\left[ \hat{I}n^{(1)} - z{\frac{\alpha}{2}} \sqrt{\frac{4}{n} \operatorname{Var}(f(X_1, X_2))}, \hat{I}n^{(1)} + z{\frac{\alpha}{2}} \sqrt{\frac{4}{n} \operatorname{Var}(f(X_1, X_2))} \right]
]
Similarly, for ( \hat{I}_n^{(2)} ):
[
\left[ \hat{I}n^{(2)} - z{\frac{\alpha}{2}} \sqrt{\frac{1}{n} \operatorname{Var}(g(X_1, X_2))}, \hat{I}n^{(2)} + z{\frac{\alpha}{2}} \sqrt{\frac{1}{n} \operatorname{Var}(g(X_1, X_2))} \right]
]
where ( z_{\frac{\alpha}{2}} ) is the quantile from the standard normal distribution corresponding to the desired confidence level.
Conclusion:
By comparing the variances, we find that ( \operatorname{Var}(g(X_1, X_2)) ) is likely smaller than ( \operatorname{Var}(f(X_1, X_2)) ), due to the cancellation of the exponential terms in the second estimator. Therefore, ( \hat{I}_n^{(2)} ) provides a more efficient estimate with a narrower confidence interval for the same (n).