Question: Using R: Let's sum twenty independent exponential random variables: rate
Using R:
Let's sum twenty independent exponential random variables:
rate<-0.1
n<-1000
variablesCount<-20
x<-list()
sum<-rep(0, n)
for (i in 1:variablesCount) {
x[[i]] <- rexp(n, rate)
sum<- sum+x[[i]]
}
Fir the sum obtained above with a gamma distribution. What is the shape parameter of the resulting gamma distribution?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
