statsmodels.stats.gof.gof_binning_discrete(rvs, distfn, arg, nsupp=20) [source]
get bins for chisquare type gof tests for a discrete distribution
| Parameters: | 
 | 
|---|---|
| Returns: | 
 | 
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)
    © 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
    http://www.statsmodels.org/stable/generated/statsmodels.stats.gof.gof_binning_discrete.html