How to convert a gaussian distributed rnd sequence to uniform dist and viceversa

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 4K views
dexterdev
Messages
194
Reaction score
1
Hi PF,
I have a device (with a microcontroller) which generates random numbers. when I analyzed those numbers using Matlab software I found that it is following a uniform distribution. How can I mathematically (any algorithm?) convert this random output to a gaussian one. Also I would like to know the reverse case ie gaussian to uniform one.

-Devanand T
 
Physics news on Phys.org
If F is the cdf of the Gaussian distribution, and x is a point from your uniform distribution 0<=x<=1, then [itex]y= F^{-1} (x)[/itex] has a Gaussian distribution.