[SciPy-user] kstest and scipy.stats

josef.pktd at gmail.com josef.pktd at gmail.com
Thu Nov 20 12:18:31 EST 2008


quick answer: I have to check again:

>From my interpretation, kstest only works for continuous random
variables, see also
http://en.wikipedia.org/wiki/Kolmogorov-Smirnov_test

For discrete distributions I wrote a chisquare test, located in
scipy/stats/tests/test_discrete_chisquare.py, that automatically
determines the limits of the cells for the test, and calculates the
pvalue.

I don't have all my references right know but
http://en.wikipedia.org/wiki/Pearson%27s_chi-square_test, should give
the basic idea.

Josef



More information about the SciPy-User mailing list