simulation of distribution of means draw from exponential distribution

Originally published on my old Blogger blog on April 23, 2015. Read the original post and its comments.

"central limit theorem (CLT) states that, given certain conditions, the arithmetic mean of a sufficiently large number of iterates of independent random variables, each with a well-defined expected value and well-defined variance, will be approximately normally distributed, regardless of the underlying distribution." [1]

I am going to draw 40 numbers from exponential distribution [2] (you can do it for any distribution) for 1000 times and examine the distribution of the means. In R, you can do it by rexp(40, lambda),  where lambda is the rate parameter. The mean of exponential distribution is 1/lambda and the standard deviation is also 1/lambda. Set lambda = 0.2 for all of the simulations for this specific test.

see a gist below.

View this gist on GitHub


[1] http://en.wikipedia.org/wiki/Central_limit_theorem [2] http://en.wikipedia.org/wiki/Exponential_distribution

Related

Next
Previous
comments powered by Disqus