Basic HTML version of Foils prepared 21 October 1995

Foil 10 Generation of Gaussian Distributions

From CPS615 Foils -- set D:Statistics and Random Numbers CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox


1 "A Small Miracle" asserts that:
2 If x1 x2 are uniformly distributed in [0,1] -- Then:
  • g1 = (-2lnx1)1/2 cos 2px2
  • g2 = (-2lnx1)1/2 sin 2px2
3 are Gaussianly distributed
4 with mean = 0 and standard deviation = 1
5 while g1 and g2 are independent.
6 Proof: Consider
7 Integral:
8 with g1 g2 going to Polar coordinates (r=radius, angle)
9 and then transform to x1and x2 by
10 (-2lnx1)1/2 = radius i.e. x1=exp(-r2/2) and
11 2px2 = angle

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed May 13 1998