Question: The second version of the Box - Muller algorithm. Generate U 1 , U 2 U [ 1 , 1 ] until S = U

The second version of the Box-Muller algorithm.
Generate U1, U2 U[1,1] until S = U21+ U22<=1.
Define Z =q2 log(S)/S and take X1= ZU1 and X2= ZU2.
a. Show that X1, X2 generated via the above algorithm are iid from N(0,1).
b. Derive the average number of generations in step 1 in the above algorithm in order to get 1000 standard normal realizations.
c. Examine the effect of not constraining (U1, U2) to the unit circle for this algorithm.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!