Solve in R programming language:
5) Use R to calculate and simulate with the exponential distribution as follows.
(a) For an exponential random variable X with λ = 4, simulate 1000 independent exponential random variables by using the R function rexp(n, λ). Calculate the mean and variance of this sample.
(b) Compare the empirical results from part (a) with the distribution mean 1/λ and the distribution standard deviation 1/λ.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here