Skip to content
Prev 174511 / 398502 Next

Help plotting a histogram of X~Exp(1)

I want to plot a histogram of X~Exp(1) where X is the sum of Y + Z. To do
this, should I simulate values of Y and Z using Y<-runif(100) and
Z<-runif(100)? And where do I go from there?

Many thanks.