The two-sample Kolmogorov-Smirnov test is used to detect if two samples come from the same underlying distribution. More precisely, this non-parametric test calculates a distance d between the empirical distribution functions of the two samples.
The corresponding p -value can be computed exactly if there are no ties (duplicate values) present in the samples and the product of the two sample sizes is less than 10000. Otherwise, the p -value has to be approximated with the given options.
With the given significance level α and the calculated p -value the null hypothesis H 0 (the two samples come from a common distribution) will either be rejected or not.
Please refer also to the Wikipedia description of the Kolmogorov-Smirnov Test .