Question

# Question:

I am trying to use the

Kolmogorov-Smirnov test in R to find the answer. However, I know that the given p-value is incorrect. Can you please show me where my error is in my code?Thank you

# we want to test the hypothesis that X is expodential

X <- c(86,133,75,22,11,144,78,122,8,146,33,41,99)

ks.test(X/50,pexp) #like exp but for distribution

#Plot

X_sort <- sort(X)

Y <- seq( (1/length(X)),1,(1/length(X)))

q <- seq(-2,2,0.01)

plot(q,pexp(q),type = "l", col = "red")

points(X_sort,Y)

### Recently Asked Questions

- The analyst tells you that when a customer calls the bank call center, the wait time for a representative has a Normal distribution with mean () 10 minutes and

- For the most recent year available, the mean annual cost to attend a private university in the United States was $20,307. Assume the distribution of annual

- A study of long-distance phone calls made from General Electric Corporate Headquarters in Fairfield, Connecticut, revealed the length of the calls, in minutes,