{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

08SimHw3sol

# 08SimHw3sol - IEOR 4404 Simulation Prof Mariana...

This preview shows pages 1–2. Sign up to view the full content.

IEOR 4404 Assignment #3 Solutions Simulation October 15, 2008 Prof. Mariana Olvera-Cravioto Page 1 of 4 Assignment #3 Solutions 1. x 1 = 10, x 2 = 20, x 3 = 40, x 4 = 80, x 5 = 10, x 6 = 20, x 7 = 40, x 8 = 80, x 9 = 10, x 10 = 20. 2. (a) Using the substitution u = ( x + 2) / 4 or x = 4 u - 2, we get Z 2 - 2 e x + x 2 dx = Z 1 0 4 e 16 u 2 - 12 u +2 du Using simulation, where h ( u ) = 4 e 16 u 2 - 12 u +2 , Z 1 0 4 e 16 u 2 - 12 u +2 du 1 n n X i =1 h ( U i ) 93 . 0677 where n = 10 6 . (b) Integrating gives Z 0 x (1 + x 2 ) - 2 dx = 1 2 Z 1 1 u 2 du = - 1 2 u fl fl fl fl 1 = 1 2 Using the substitution u = (1 + x 2 ) - 1 / 2 , du = - x (1 + x 2 ) - 3 / 2 dx we get Z 0 x (1 + x 2 ) - 2 dx = - Z 0 1 u du = Z 1 0 u du Using simulation with h ( u ) = u , Z 0 x (1 + x 2 ) - 2 dx 1 n n X i =1 U i 0 . 5001 where the U i are iid uniform (0,1) random variables, n = 10 6 . (c) Z 1 0 Z 1 0 g ( x, y ) dxdy = Z 1 0 Z 1 0 e ( x + y ) 2 dxdy 1 n n X i g ( X i , Y i ) where X i and Y i are independent Uniform(0,1) random variables and g ( x, y ) = e ( x + y ) 2 . Using simulation, R 1 0 R 1 0 e ( x + y ) 2 dxdy 4 . 9017, when n = 10 7 . 3. We can use the following MATLAB code: m = 100; % Number of simulation runs mSum = 0; % Initialize cumulative sum

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern