Modification Box Muller
Modification Box Muller
Special Properties
Set Y =
i=1
12
Box-Muller Method
Generate U1, U2 U(0,1) random numbers
Generate X 1 = 2 ln U1 cos ( 2 U 2 )
and
X 2 = 2 ln U1 sin ( 2 U 2 )
X1 and X2 will be iid N(0,1) random variables
Box-Muller Explanation
If X1 and X2 iid N(0,1)
D2 = X12 + X22 is 22 which is the SAME as
an Exponential(2)
D = 2 ln U
X1 = D cos
X2 = D sin
D
X2
where = 2U2
X1
Polar Method
1.
2.
3.
4.
5.
(1,1)
V1
V2
(-1,-1)
(1,-1)
Notes
X12 + X 22 is distributed 22 or exponential (2)