How Do You Use Intrinsic Functions to Sample from a Normal Distribution?

  • Thread starter Thread starter Watts
  • Start date Start date
  • Tags Tags
    Numbers Random
Watts
Messages
37
Reaction score
0
I had a Monte Carlo class many moons ago. I was wondering if some one could jog my memory on how to sample random numbers from a normal distribution. I could do it but the normal distributions CDF is a non elementary integral. I can't get past that part.
 
Physics news on Phys.org
Let U1 and U2 be two independent uniforrm random variables over the unit square. Then two independent standard normal random variables can be generated as N_1 = \sqrt{-2 \log (U_1)} \sin (2\pi U_2) and N_2 = \sqrt{-2 \log (U_1)} \cos (2\pi U_2).

P.S. Any software with an intrinsic normal distribution function will also do the trick.
 
Last edited:
Explain

Explain intrinsic normal distribution function(the intrinsic part).
 
Last edited:
Watts said:
I had a Monte Carlo class many moons ago. I was wondering if some one could jog my memory on how to sample random numbers from a normal distribution. I could do it but the normal distributions CDF is a non elementary integral. I can't get past that part.
The obvious method would be to generate uniform ramdon numbers on [0,1] then invert the normal CDF, but that is not computationally practical. What is often done is using the law of large numbers. The average of a large number of nonpathological random variables will be normal. Uniform randoms on [0,1] work well and are often the basis for other distributions. Also as was mentioned one could use a program/library that includes a random normal generator.
 
Watts said:
Explain intrinsic normal distribution function(the intrinsic part).

"Intrinsic" here just means that the software has a built in function that will calculate the normal distribution for you.
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Back
Top