Use of Ks.test for Poisson distribution

Asked

Viewed 145 times

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 ?

  • 3

    The Kolmogorov-Smirnov test is for continuous distributions, not for Poisson distribution. For Poisson, try the chisq.test.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.