![](https://secure.gravatar.com/avatar/ad13088a623822caf74e635a68a55eae.jpg?s=120&d=mm&r=g)
3 Dec
2008
3 Dec
'08
1:24 p.m.
On Wed, Dec 3, 2008 at 12:35 PM, Roban Hultman Kramer <roban@astro.columbia.edu> wrote:
Is there a correct two-sample k-s test in scipy?
in scipy.stats.stats def ks_2samp(data1, data2): """ Computes the Kolmogorov-Smirnof statistic on 2 samples. Modified from Numerical Recipies in C, page 493. Returns KS D-value, prob. Not ufunc- like. Returns: KS D-value, p-value It uses the special.kolmogorov which is the asymptotic two-sided distribution. It "looks" ok, but there are no tests for it, and I haven't tested it either. A quick Monte Carlo with your sample size would verify how accurate it is. Josef