Solved – Interpretation of Kolmogorov-Smirnov test result

kolmogorov-smirnov test

How do I interpret the following output of the Kolmogorov-Smirnov [KS] test? [shown below, with reproducible example in R]

Also: Can the KS test be used for predictive model diagnostics?

x <- c(7.6,8.4,8.6,8.7,9.3,9.9,10.1,10.6,11.2) 
y <- c(5.2,5.7,5.9,6.5,6.8,8.2,9.1,9.8,10.8,11.3,11.5,12.3,12.5,13.4,14.6)
ks.test(x,y)

Resulting output:

Two-sample Kolmogorov-Smirnov test

data: x and y D = 0.4, p-value = 0.2653 alternative hypothesis:
two-sided

Best Answer

A P-Value of greater than 0.05 means that you cannot reject the null hypthesis that the two underlying distributions do not defer. <0.05 means that you can reject the null hypothesis that the distributions do not differ