Re: Bell-curve distribution wanted



In article <200702281720.l1SHKBXm102824@xxxxxxxxxxxxxxxxxxxx>, Michael
Stemper <mstemper@xxxxxxxxxxxxxxxx> wrote:

For a simulation that I'm doing, I'd like to be able to generate
pseudo-random numbers with a "bell curve" distribution. My only
course in probability and statistics was one semester in high
school, in the late 1960s, and I didn't pay attention.

Given a random number in the interval [0.0,1.0], I can generate a
number in the interval [-1.0,1.0] that's somewhat more likely to
be in the middle than at the ends by simply multiplying it by its
absolute value. Cubing it will, of course, squeeze its distribution
in towards the center even more.

I tried walking up and down through the range, driven by coin flips,
but that gives too narrow a distribution if I use more than a few flips.

It seems to me that there must be a function that takes numbers
uniformly distributed over one range and produces numbers distributed
in a bell curve with a given standard deviation. What would a function
that does this look like? It doesn't even have to be exact, if there's
a choice between a complex function that is exact and a simple one
that's close (FSVO "close").

Any suggestions?

Google "Box-Muller". It's best to do this in polar coordinates.

--
Ron Bruck
.



Relevant Pages

  • Re: a little (very little,) data, extracted from my front-end feeding a conventional compressor
    ... You didn't read my post very closely -- I am getting a bell curve from ... ONE random data source, the client data itself -- no other information ... byte but unlike the input byte, which exhibited a flat distribution, ...
    (comp.compression)
  • Re: a little (very little,) data, extracted from my front-end feeding a conventional compressor
    ... You didn't read my post very closely -- I am getting a bell curve from ... the client data itself -- no other information ... byte but unlike the input byte, which exhibited a flat distribution, ... 'patterns' that documents possess,) as this is necessary to achieve ...
    (comp.compression)
  • Re: IQS OVER 200 FUGGETABOUTIT
    ... of that maxes out at 140. ... distribution of scores is wrong - or that Aussies are really bright - I ... is actually a superposition of one bell curve over two much smaller ones ... and those that might need extra help, on a general level. ...
    (rec.gambling.poker)
  • Re: Bell-curve distribution wanted
    ... pseudo-random numbers with a "bell curve" distribution. ... I tried walking up and down through the range, driven by coin flips, ... It doesn't even have to be exact, ...
    (sci.math)
  • Re: Walking on integers
    ... It's impossible to answer unless we know with what distribution function ... v (which will depend on the distribution, if it's a narrow bell curve, ... larger), and zig-zag as follows ... They no longer do my traditional winks tournament lunch - liver and bacon. ...
    (sci.math)

Loading