Question: USE R CODE One disadvantage of BoxMuller algorithm is that it requires computing sine and cosine functions. By some transformation, one can show that the
USE R CODE

One disadvantage of BoxMuller algorithm is that it requires computing sine and cosine functions. By some transformation, one can show that the following closely related algo rithm also generates independent standard normal random variables X and Y. (a) Generate U1 ~ U(0, 1) and U2 ~ U(0,1) (bl 3613 Vi =2U11andV2=2U21,S=VI2+V22. (c) If S > 1, return to (a). (d) Otherwise, ZlogS X: V S 1 2logS Y: 8 V2 This method is called the polar method. Use this method to generate 10000 standard normal random variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
