[SciPy-user] Usage of scipy KS test

Scott Ransom sransom@nrao....
Wed Jan 2 14:29:38 CST 2008


> > Assumed, I calculate the D-value by myself. Can I then use
> > stats.ksprob to calculate the probability? Do I have to use
> > sqrt(n)*D as argument?
>
> I'm not sure what ksprob wants. It will really be clearer to use
> kstest.

ksprob (which is the same as scipy.special.kolmogorov) expects 
sqrt(n)*D.   This is useful if you determine D from your own routine 
for a two-sided KS-test, for example.

Scott

-- 
Scott M. Ransom            Address:  NRAO
Phone:  (434) 296-0320               520 Edgemont Rd.
email:  sransom@nrao.edu             Charlottesville, VA 22903 USA
GPG Fingerprint: 06A9 9553 78BE 16DB 407B  FFCA 9BFA B6FF FFD3 2989


More information about the SciPy-user mailing list