28.11.2014 Views

SOLUTIONS MANUAL for Stochastic Modeling: Analysis and ...

SOLUTIONS MANUAL for Stochastic Modeling: Analysis and ...

SOLUTIONS MANUAL for Stochastic Modeling: Analysis and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

22 CHAPTER 3. BASICS<br />

34. (a)<br />

There<strong>for</strong>e, (1) = F (2) Y (a).<br />

(b) Let T ≡ number of trials until acceptance. On each trial<br />

{<br />

Pr{accept} =Pr V ≤ f }<br />

Y (Z)<br />

= 1 cf Z (Z) c<br />

Since each trial is independent, T has a geometric distribution with γ =1/c.<br />

There<strong>for</strong>e, E[T ]= 1 = c. 1/c<br />

(c) Note that f Y (a) is maximized at f Y (1/2) = 1 1.<br />

2<br />

Let f Z (a) =1, 0 ≤ a ≤ 1<br />

c =1 1 2<br />

There<strong>for</strong>e, cf Z (a) =1 1 ≥ f 2 Y (a)<br />

1. U ← r<strong>and</strong>om()<br />

2. Z ← U<br />

3. V ← r<strong>and</strong>om()<br />

4. if V ≤ 6Z(1 − Z)/(1 1 2 )then<br />

return Y ← Z<br />

else<br />

goto step 1<br />

endif<br />

E[T ]=1 1 2<br />

F (a) =<br />

∫ a<br />

α<br />

2(b − α)<br />

(β − α) 2 db<br />

=<br />

U =<br />

(a − α)2<br />

(β − α) 2 , α ≤ a ≤ β<br />

(X − α)2<br />

(β − α) 2<br />

algorithm<br />

1. U ← r<strong>and</strong>om()<br />

2. X ← α +(β − α) √ U<br />

3. return X<br />

(X − α) 2 = U(β − α) 2<br />

X = α +<br />

√<br />

U(β − α) 2 = α +(β − α) √ U

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!