get bins for chisquare type gof tests for a discrete distribution
Parameters: | rvs : array
distname : string
arg : sequence
nsupp : integer
|
---|---|
Returns: | freq : array
expfreq : array
histsupp : array
|
Notes
The results can be used for a chisquare test
(chis,pval) = stats.chisquare(freq, expfreq)
originally written for scipy.stats test suite, still needs to be checked for standalone usage, insufficient input checking may not run yet (after copy/paste)