









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions to a test in the course isye 6644, covering topics related to simulation, probability, and statistics. It includes various problems and their detailed solutions, providing insights into concepts such as bisection method, probability distributions, expected value, variance, correlation, and monte carlo simulation. Valuable for students studying simulation and related fields.
Typology: Assignments
1 / 16
This page cannot be seen from the preview
Don't miss anything!










(revised 6/18/21)
This test is 120 minutes. You’re allowed one cheat sheet (both sides).
This test requires a proctor. All questions are 3 points, except 33, which is 4 points. ,
Good luck! I want you to make this test wish that it had never been born!!!
Solution: TRUE (of course!) 2
Solution: Let’s use bisection to find the zero of g(x) = ex^ − x^2.
x g(x) comments − 1 − 0. 6321 0 1 look in [− 1 , 0] − 0. 5 0. 3565 look in [− 1 , − 0 .5] − 0. 75 − 0. 09013 look in [− 0. 75 , − 0 .5] − 0. 625 0. 1446 look in [− 0. 75 , − 0 .625] − 0. 6875 0. 0302 look in [− 0. 75 , − 0 .6875] − 0. 71875 − 0. 0292 look in [− 0. 71875 , − 0 .6875] − 0. 703125 0. 00065 = 0. OK, stop here.
Since g(− 0 .703125) = 0, we can stop and declare that. x =. − 0 .703 does the job. This is answer (a). 2
We can also do the problem via Newton’s method:
xn+1 ← xn − (^) gg′((xxn) n)^
= xn − e
xn (^) − x (^2) n exn^ − 2 xn Suppose x 0 = 1 (which is a terrible choice, actually. ,) Then
x 1 ← x 0 − e
x (^0) − x (^20) ex^0 − 2 x 0 = 1^ −^
e − 1 e − 2 =^ −^1.^39221 ,
x 2 ← x 1 − e
x (^1) − x (^21) ex^1 − 2 x 1 =^ −^0.^83509 , and, similarly, x 3 = − 0 .70983, x 4 = − 0 .70348, and x 5 = − 0 .70347, and we seem to have converged very quickly! In any case, x =. − 0 .70347; so the answer is (a). 2
Solution: We have
Pr(X < 1 | X > 1 /2) = Pr(X <Pr(^ X >^1 ∩^ X > 1 /2)^1 /2)
= Pr(1Pr(/X >^2 < X < 1 /2)^ 1)
=
∫^1 /^2 (x/2)^ dx 2 1 / 2 (x/2)^ dx = 0. 2 ,
(a) − 13 (b) − 7 (c) - (d) 6 (e) 27
Solution: E[− 3 X − 7] = − 3 E[X] − 7 = −1, so the answer is (c). 2
Solution: Let X ∼ Geom(p = 1/10) denote the number of tosses. Thus, E[X] = 1/p = 10, so that the answer is (d). 2
(f) 3
Solution: Corr = Cov/
Var(X)Var(Y ) = 0, so (a) is the answer. 2
Solution: Var(X − 2 Y ) = Var(X) + Var(− 2 Y ) + 2Cov(X, − 2 Y ) = Var(X) + 4Var(Y ) − 4 Cov(X, Y ) = 26. So the answer is (d). 2
Solution: All interarrivals are i.i.d. Exp(λ). In particular, let X ∼ Exp(λ = 1/2) denote the time between the 1st and 2nd arrivals. Then Pr(X < 1) = 1 − e−λx^ = 1 − e−(1/2)(1)^ = 0. 393. Thus, the answer is (c). 2
(e) Nor(0.9, 0.0009)
Solution: If Xi has mean μ and variance σ^2 , then the Central Limit Theorem implies that X¯ ≈ Nor
μ, σ
2 n
∼ Nor
So the answer is (e). 2
Solution: (e). 2
Solution: By symmetry of the Unif(0,1), we note that U 1 , 1 − U 2 , and U 3 are i.i.d. Unif(0,1). Therefore, − 3 n(U 1 (1 − U 2 )U 3 ) ∼ − 3n(U 1 ) − 3 n(1 − U 2 ) − 3n(U 3 ) ∼ − 3 n(U 1 ) − 3n(U 2 ) − 3 `n(U 3 ) ∼ Exp(1/3) + Exp(1/3) + Exp(1/3) ∼ Erlang 3 (1/3).
So the answer is (c). 2
Solution: By the Inverse Transform Theorem, Φ(X) ∼ U ∼ Unif(0, 1). So we have Φ−^1 (U ) ∼ Φ−^1 (Φ(X)) = X ∼ Nor(0,1). (This is why Inverse Transform is so nice!) Thus, the answer is (c). 2
Solution: The answer turns out to be (c). Since it’s Summertime Summertime in Atlanta and the livin’ is easy, I’ll give you two methods to prove this!
Method (i): By Inverse Transform, F (X) ∼ Unif(0,1). Thus, if U denotes a Unif(0,1) random variable, we have E[F (X)] = E[U ] = 1/ 2. 2
(a) X 1 , X 2 ,... is a sequence of integers that will eventually cycle. (b) U 1 , U 2 ,... is a sequence of PRNs. (c) U 1 , U 2 ,... will appear to be Unif(0,1). (d) U 1 , U 2 ,... will appear to be independent. (e) All of the above.
Solution: (e). 2
Solution: YES — for instance, that arrival is deleted from the FEL; a subsequent arrival might be scheduled; some future events might be deleted; and some future events might be re-ordered. 2
Solution: TRUE. 2
Solution: TRUE. 2
Solution: TRUE. 2
Solution: TRUE. 2
Solution: As usual, we start with f (x + h) = f (x) + hf ′(x) = f (x) + h(x − 3)f (x) = f (x)[1 + h(x − 3)] = f (x)(0.97 + 0. 01 x), from which we obtain f (0.01) = f (0)(0.97 + 0.01(0)) = 2(0.97) = 1. 94 and then f (0.02) = f (0.01)(0.97 + 0.01(0.01)) = 1.94(0.9701) = 1. 88199. Thus, the answer is (b). 2
I =
0
[1 + ex^4 ] dx
(which I don’t think has a closed form). Consider the following 4 Unif(0,1)’s:
0.42 0.11 0.73 0.
YES or NO? The expected value of this mess is E[W ] = 1/2.
Hint: There are various ways to do this problem — either (i) Analytically (involving a cute trick), or (ii) “Pretend” Monte Carlo: Select a reasonable grid of X and Y values; then average the resulting W values; and then make a good guess. Good luck and have fun!
Solution: The answer is YES.
Proof: Hint (i) calls for a cute trick. Since X and Y are identically distributed, it follows that (^) XX+Y and (^) XY+Y are identically distributed. So
1 = E
so that E[W ] = 1/2. 2
Another approach is to use Hint (ii)’s suggestion of “pretend” Monte Carlo. For instance, take X and Y equal to all combinations of the reasonable grid 0.2, 0.4, 0.6, 0.8, and then take the average of the resulting 16 values of W. Amazingly, you’ll get an average of exactly 0.5! 2
0.83 0.16 0.95 0.47 0.37 0.65 0.77 0.20 0.14 0.
Our simulation will declare that I make shot i if Ui < pi, where pi is the condi- tional probability that I make shot i (as discussed above). Using the given random numbers, how many shots will I have to take until I make my 4th one? (a) 3 (b) 4 (c) 5 (d) 6 (e) 7
Solution: p 1 = 0.7, so U 1 = 0.83 corresponds to a miss. Then p 2 = 0.6, so U 2 = 0.16 corresponds to a made shot (my 1st). Then p 3 = 0.9, so U 3 = 0.98 corresponds to a miss. Then p 4 = 0.6, so U 4 = 0.47 corresponds to a made shot (my 2nd). Then p 5 = 0.9, so U 5 = 0.37 corresponds to a made shot (my 3rd). Then p 6 = 0.9, so U 6 = 0.65 corresponds to a made shot (my 4th).
Thus, it took 6 shots, so the answer is (d). 2
Bill = 8 Tom = 2 Angie = 5 Ursula = 2
Customers are served in alphabetical order (though once you start service, you don’t get displaced by a higher-priority customer). The 4 customers order the following numbers of chocolate products, respectively:
6 2 3 1
Suppose it takes Joey 3 minutes to prepare each chocolate product. Further suppose that he charges $2/chocolate. Unfortunately, the customers are unruly and each customer causes $0.50 in damage for every minute the customer has to wait in line.
When does the first customer leave?
(a) −$6. 00 (b) $0. (c) $6. (d) $36. (e) Not enough information to tell.
Solution: Joey makes 2(6 + 2 + 3 + 1) − 0 .5(0 + 25 + 11 + 24) = −$6.00. So the answer is (a). 2
Solution: (d). Duh. 2