We would like to calculate the integral 0 log(1 + x) exp(x) dx. a. Simulate 10,000 exponential
Question:
a. Simulate 10,000 exponential random variables with parameter 1 and use these to estimate the integral. Also, find the simulation standard error of your estimator.
b. Simulate 10,000 gamma random variables with parameters 1.5 and 1 and use these to estimate the integral (importance sampling). Find the simulation standard error of the estimator. (In case you do not have the gamma function available, Γ(1.5) = √π/2.)
c. Which of the two methods appears to be more efficient? Can you explain why?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Probability And Statistics
ISBN: 9780321500465
4th Edition
Authors: Morris H. DeGroot, Mark J. Schervish
Question Posted: