[R] Random Numbers

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Sat Aug 17 05:48:02 CEST 2002


hi,

Actually this applies not just to random numbers, but...

Suppose I type:
   x <- rnorm(30, 4, 1.5)
to get some 30 random normal numbers with mean 4 and standard deviation
1.5.

Is there anyway to "re-trace" x?  i.e. am I able to find out what the mean
and standard deviation for x is?

More generally, suppose I generated some random numbers using a particular
distribution.  Can I find out the parameters of the distribution on these
random numbers?

Cheers,

Kevin

------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list