Question: We would like to calculate the integral 0 log(1 + x) exp(x) dx. a. Simulate 10,000 exponential random variables with parameter 1 and use these
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?
Step by Step Solution
3.27 Rating (159 Votes )
There are 3 Steps involved in it
a If our 10000 exponentials are X 1 X 10000 then our approximation i... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
602-M-S-S-M (845).docx
120 KBs Word File
