On 2012-05-15 12:57:12 -0300, e p chandler said:
> "Phillip Helbig---undress to reply" wrote in message
> news:jot2co$vr4$1...@online.de...
>
> In article <1kk3df7.1uxr8npnv5kkiN%nos...@see.signature>,
> nos...@see.signature (Richard Maine) writes:
>
>> Note that the Gaussian and uniform are different distributions, so it
>> doesn't make much sense to describe something as "uniform like
>> Gaussian".
>
> It is relatively easy to get a random number from a Gaussian
> distribution once one has one from a uniform distribution.
>
> Or, if you have some spare CPU cycles, just build the sum on N random
> numbers from a uniform distribution and divide by N. As N approaches
> infinity, the sums so built approach a Gaussian distribution.
You scaling is off but otherwise a sort of a statement of the Central Limit
Theorem but only worth partial marks in an undergraduate course. You divide
by the standard deviation which is grows like sqrt( N ) as your scaling yields
all values at zero. The correction to the mean is half N. See below for the
mindless version.
> Of course, this is not very efficient. However, it does illustrate WHY
> error distributions are often Gaussian (i.e. they are the sums of
> random, uncorrelated errors).
A sum of Cauchy variates does not behave so well so there are some technical
regularities involved. A Cauchy is the ratio of two standard Gaussians and has
infinite variance. The infinite variance comes from the "dividing by zero"
and is all too common in ratios of statisitcs.
> ---> It's not that difficult to calculate the exact pdf and cdf for the
> sum of two uniforms or three uniforms. For three, it is remarkably
> close to a standard normal. But the practical drawback to this method,
> which was once proposed and once used, is that the tails will be too
> light.
>
> -- e
For those in a hurry and willing to tolerate some amount of approximation a
common rule is to sum 12 uniforms and subtract 6. The result has a mean of zero
and a variance of 1. The 12 gives the variance of 1 and the approximateion does
get beyond + or - 3 now and then but never beyond + or - 6.
This rule is a common instant mindless approxiamtion to a standard Gaussian.