Statistical Inference Course Project - Part 1

103 downloads 0 Views 61KB Size Report
where the first argument is the size, and the second the parameter. Note that the result of rexp is a vector. The requested descriptives give an idea of that.
Statistical Inference Course Project - Part 1

Statistical Inference Course Project Part 1 Simulation of an Exponential Distribution In this exercise we use R’s rexp() function in order to simulate an exponential distribution. According to instructions, the lambda parameter is set to 0.2. Thus, in order to take one sample of size 40, without replacement, from an 0.2-exponential distribution, we simply write exp_sample