search for: normal_distribution

Displaying 2 results from an estimated 2 matches for "normal_distribution".

2008 May 04
1
Is my understanding of rlnorm correct?
...gt; hist( y , breaks = 100) > summary( y ) Min. 1st Qu. Median Mean 3rd Qu. Max. 4.292 62.360 100.100 127.100 159.300 1989.000 I noticed on wikipedia lognormal page that the median is exp(mu) and that the mean is exp(mu + sigma^2/2) http://en.wikipedia.org/wiki/Log-normal_distribution So, does this mean that if i want a mean of 100 that the meanlog value needs to be log(100) - log(sd)^2/2? It seems to give me the result I am after. > par( mfrow = c(2,2) ) > set.seed( 1 ) > x <- 1:100000 > y <- rlnorm( x , meanlog = log(100) , sdlog = log(2) ) > plo...
2013 Apr 01
1
lognormal sampleing using covariance matrix
Dear All,   wondering if someine can access the link to the randsamp code referenced in the R-help archive here: http://www.mail-archive.com/r-help@stat.math.ethz.ch/msg75645.html ? I have tried but for whatever reason I can not get trough. My problem seems to be similar to what the author originally described there, so having access to it would be great. Else, if you have any thougths on sampling