Use of ks.test for Poisson distribution

2

Good evening, everyone. I am having a question about using the ks.test function.

It's giving completely different results when I use ks.test specifying the probability distribution:

ks.test (amostra$x,"ppois",lambda=mean(amostra$x)) 

And comparing my sample of interest with a sample generated from rpois:

ks.test (amostra$x,rpois(length(amostra$x),mean(amostra$x)))

Could someone help me in this impasse, please?

    
asked by anonymous 17.08.2017 / 03:14

0 answers