Kolmogorov Smirnov Test Example. Thekolmogorov smirnov testis used to test h 0. A guide to dpois ppois qpois and rpois in r.
The null hypothesis is accepted if the calculated value is less than the table value and vice versa. Suppose we have the following sample data. The following code shows how to perform a kolmogorov smirnov test on this sample of 100 data values to determine if it came from a normal distribution.
Make this example reproducible seed 0 generate dataset of 100 values that follow a poisson distribution with mean 5 data rpois n 20 lambda 5 related.
Kolmogorov smirnov two sample test report. The descriptive statistics are the following. The kolmogorov smirnov test suppose that we have observations x 1 x n which we think come from a distribution p. The two sample kolmogorov smirnov test is used to test whether two samples come from the same distribution.