Skip to content
Prev 307063 / 398506 Next

Kolmogorov-Smirnov test and the plot of max distance between two ecdf curves

Hello,

Try length.out = max(length(loga), length(logb))

Note also that all of the previous code and the line above assumes that 
we are interested in the max distance, whereas the KS statistic computes 
the supremum of the distance. If it's a two sample test then their 
values are almost surely the same but not if it's a one sample test.

Hope this helps,

Rui Barradas
Em 05-10-2012 12:15, user1234 escreveu: