command for the graph:
hist(c1,freq=FALSE)
lines(density(c1,adjust=2),col="darkblue",lwd=2)
I generated this sequence in R:
set.seed(106)
lambda1<-1/98
c1<-rexp(n=1000, rate=lambda1)
and did a z.test
with a significance value of 5%:
z.test(c1,mu=98, alternative = "two.sided", sigma.x = sd(c1), conf.level = 0.95)
this is the output:
data: c1
z = 0.51946, p-value = 0.6034
alternative hypothesis: true mean is not equal to 98
95 percent confidence interval:
93.43883 105.85080
sample estimates:
mean of x
99.64482
What I need to find out is if indeed the values follow a exponential distribution but I'm not sure.