[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is kolmogorov_smirnov_test_2 buggy?
From: |
Peng Yu |
Subject: |
Is kolmogorov_smirnov_test_2 buggy? |
Date: |
Thu, 1 Nov 2012 19:42:30 -0500 |
Hi,
The following shows that octave and R returns different results for
K-S test. I think that the result from R is correct. Does anybody know
why kolmogorov_smirnov_test_2 is different? Or I call it incorrectly?
octave:1> kolmogorov_smirnov_test_2([1 2 3 4 5], [11 12 13 14 15])
pval: 0.0134759
ans = 0.013476
>From R
> ks.test(1:5, 11:15)
Two-sample Kolmogorov-Smirnov test
data: 1:5 and 11:15
D = 1, p-value = 0.007937
alternative hypothesis: two-sided
--
Regards,
Peng
- Is kolmogorov_smirnov_test_2 buggy?,
Peng Yu <=