Browse code

add sheet 6

Michi authored on 03/06/2012 16:42:30
Showing 1 changed files
... ...
@@ -126,7 +126,7 @@ yy = rnorm(10000,0,1)
126 126
 x=seq(0,10, by = 0.1)
127 127
 l = dlnorm(x,0,1)
128 128
 xx=exp(yy)
129
-hist(xx,breaks=100,freq=FALSE,main='Distribution of a Log-Normal Sample',xlab='x',ylab='Prob. Density',xlim=c(0,10),ylim=c(0,0.7))
129
+hist(xx,breaks=100,freq=FALSE,main='Log-Normal Sample',xlab='x',ylab='Prob. Density',xlim=c(0,10),ylim=c(0,0.7))
130 130
 lines(x,l,type='l',col='blue')
131 131
 
132 132
 legend('topright',legend=c('exp(Random Sample)','Log-Normal Dist.'),col=c('black','blue'),lty=c(1,1))