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: 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)
  • Compute the Skewness
    ... where D = Standard Deviation ... It is calculated from the historgram or from the pixels gray value ... can somebody explain me how to calculate the skewness ... Prev by Date: ...
    (sci.image.processing)
  • Re: random number generation
    ... chosen skewness or kurtosis. ... numbers with given mean m and standard deviation sd use: ... The skewness of a normal distribution is 0. ...
    (comp.soft-sys.matlab)

Loading