Re: a random number obeying Gaussian + within a range



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?
.



Relevant Pages

  • Re: FFT test with few kbits
    ... ]>>> average to N/2 while the rest should average to zero. ... ]>>> able to test that they have the same gaussian distribution as the ... ]> output of the DFT is a weighted sum of N random inputs. ... ]> Gaussian distributed. ...
    (sci.crypt)
  • Re: random points with a given dsitribution in rectangle
    ... Gaussian variates will not necessarily fit in a rectangle. ... bivariate Gaussian distribution can be obtained by using ... Gaussian distribution can be obtained by using mvnrnd from the statistics ... If you dont have that toolbox then there are some simple tricks ...
    (comp.soft-sys.matlab)
  • Re: Gaussian distribution
    ... How do you prove that a Gaussian distribution integrates to 1 over -oo.. ... I also tried integration by parts two times ... Gaussian filter so I can design them using a desired cutoff frequency. ...
    (sci.math)
  • Re: Gaussian distribution
    ... How do you prove that a Gaussian distribution integrates to 1 over -oo.. ... I'm trying to find the fourier transform of a Gaussian ... I also tried integration by parts two times ...
    (sci.math)
  • Re: Gaussian distribution define in infinite-dimensional Hilbert space?
    ... There is a measure associated with an infinite-dimensional Hilbert space ... that is analogous to a multivariate Gaussian distribution. ...
    (sci.math)

Loading