In: Math
Write a function called simExp that simulates drawing sample means when lambda=1, with n=10, 30 and 50. Give a histogram for the sample means, as well as the mean and standard deviation of the simulated means. Use 1000 sims. Show that your results are what you would expect theoretically.
i) R-code:
ii)R-code:
iii) R-code:
As sample size increases the
shape of the distribution is going to symmetric. Finally at n = 50
the distribution is normal distribution