rexp(n, lambda), where lambda is the rate parameter.Key characteristics about the distribution :
Note : Setting lambda = 2 for all the simulations & averages of 40 exponentials will be investigated by simulating 1000 times
The following plot shows the Normally distributed points along with our Exponentially distributed points both with the same mean 5. Black horizontal line is for the mean of those distributions.
Exponential Distribution the data does look like it’s growing exponentially.Histogram of an typical exponential curve would look something like this
Again you can see in this histogram that the Exponential distribution compared to Normal distribution it is not symmetric around mean (black vertical line), but centered at the mean.
Sample Mean
(Theoretical Mean).the estimate for our population mean.Distribution of 1000 simulations of 1.) Exponential Values & 2.) Mean of 40 Exponential Values
Clearly the peak (sample mean) is close to the Population mean but not exactly the same in the first plot. It approaches the population mean as we increase the sample size (Take each value as mean of 40 such values; Inturn 410^{4} total samples).
Distribution of variance from 1000 simulations for mean(40 values each)
Sample variance is an estimate of population variance hence as we have learned that Population variance (5) / sample size (40) gives us our sample variance (0.125)
It is clearly not centered at population variance because in this case it was just 40 values each. But as we increase the sample size it will approach the true Population Variance.
Distribution of mean & variance from 1000 simulations of 40 values each follows a Normal distribution centered at what it’s trying to estimate (Population Mean / Population Variance)
In this plot we can see that, when we take the distribution of average from 40 random exponential variables we get a Normal distribution.