Re: random number generation



Hi,
Should be:
rn= m + sd*randn(1,N)
Good luck,
Redmer

"PB" <pbodin@xxxxxxxxxxxxxxxxxxx> wrote in message
news:ef0f67e.0@xxxxxxxxxxxxxxxxxxx
> Sarah wrote:
> >
> >
> > Is there a way to generate a random number with a set mean,
> > standard
> > deviation, and skewness?
>
> The short answer is no. You can´t generate random numbers with a
> chosen skewness or kurtosis. To generate N normally distributed
> numbers with given mean m and standard deviation sd use:
>
> rn= m + sd*rand(1,N)
>
> The skewness of a normal distribution is 0.
>
> HTH
>
> PB


.



Relevant Pages

  • Re: Jackniffe Technique (Resampling Question)
    ... Shaun Hurley wrote: ... Then the program needs to replace that point, remove the next point and recalculate the mean, standard deviation, and skewness. ...
    (comp.soft-sys.matlab)
  • Re: Creating a new array to match mean and stand. dev of another
    ... Is it possible to match any more moments, such as skewness and kurtosis? ... If you have a vector V with mean M0 and standard deviation S0, and want to transform it to have mean M1 and standard deviation S1, then ...
    (comp.soft-sys.matlab)
  • Re: random number generation
    ... It depends on the distribution function of the random variable. ... pointed out earlier a normal distribution has a skewness of zero. ... non-zero higher order moments. ...
    (comp.soft-sys.matlab)
  • Re: Are there statistics packages in ANSI C and/or ANSI C++?
    ... standard deviation and skewness and ... preferably a legal hassles free one ... I do not respond to top-posted replies, ...
    (comp.lang.c)
  • Re: Compute the Skewness
    ... Is this the correct formula of the skewness? ... where D = Standard Deviation ... Prev by Date: ...
    (sci.image.processing)