Re: a random number obeying Gaussian + within a range
- From: TideMan <mulgor@xxxxxxxxx>
- Date: Sat, 18 Apr 2009 16:35:29 -0700 (PDT)
On Apr 19, 11:18 am, "hailiang shen" <hlshen2...@xxxxxxxxx> wrote:
Dear friends,
I am trying to generate 50 random numbers obeying Gaussian distribution (0,1), and within a range (-1, 1).
I tried to set the random number out of the range to 0 (i.e. the mean), but not sure whether the generated series also obeying Gaussian distribution.. Is there theory behind this? How Matlab is dealing with this issue?
Thanks for any information,
Hailiang
I think you need to either go back to your textbook or Google
Gaussian.
If the numbers are restricted to being between -1 and 1, then they
will not be Gaussian distributed.
Indeed, the theory says that the expected maximum of a Gaussian
sequence is sqrt(2*log(n))*SD, so for 50 numbers from a (0,1) Gaussian
distribution you'd expect the range to be -2.8 to +2.8.
Perhaps you're looking for uniformly distributed random numbers?
.
- References:
- a random number obeying Gaussian + within a range
- From: hailiang shen
- a random number obeying Gaussian + within a range
- Prev by Date: Re: a random number obeying Gaussian + within a range
- Next by Date: Re: a random number obeying Gaussian + within a range
- Previous by thread: Re: a random number obeying Gaussian + within a range
- Next by thread: Re: a random number obeying Gaussian + within a range
- Index(es):
Relevant Pages
|
Loading