how to gerenate gaussian and rayleigh RV from uniform RV?

13 views (last 30 days)
Hi all,
I have a question related with statistic. I read some other website and they said that: "An easy way to approximate normal distribution is to add three random numbers:
G = X + X + X
X = a uniformly distributed random number between -1 and 1.
G ~ a standard normal random number."
and
"
If X and Y are independent Gaussian random variables with mean 0 and standard deviation sigma, then sqrt(X^2 + Y^2) has a Rayleigh distribution with parameter sigma."
I wonder if anyone can confirm this and show me some other related articles Thanks so much,

Answers (2)

NGuyen Tuan
NGuyen Tuan on 5 Apr 2013

Image Analyst
Image Analyst on 7 Oct 2014
See attached demo to generate random numbers from a Rayleigh distribution and inverse power law distribution.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!