[SciPy-user] kstest and scipy.stats
josef.pktd@gmai...
josef.pktd@gmai...
Thu Nov 20 11:18:31 CST 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