2
Good night, you guys. I have a question about using the Ks.test function.
It is giving completely different results when using Ks.test specifying the probability distribution:
ks.test (amostra$x,"ppois",lambda=mean(amostra$x))
And comparing my sample of interest to a sample generated from the rpois:
ks.test (amostra$x,rpois(length(amostra$x),mean(amostra$x)))
Could someone help me in this impasse, please ?
The Kolmogorov-Smirnov test is for continuous distributions, not for Poisson distribution. For Poisson, try the
chisq.test
.– Rui Barradas