stats.gof.gof_chisquare_discrete()
statsmodels.stats.gof.gof_chisquare_discrete
-
statsmodels.stats.gof.gof_chisquare_discrete(distfn, arg, rvs, alpha, msg)
[source] -
perform chisquare test for random sample of a discrete distribution
Parameters: distname : string
name of distribution function
arg : sequence
parameters of distribution
alpha : float
significance level, threshold for p-value
Returns: result : bool
0 if test passes, 1 if test fails
Notes
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)
- refactor: maybe a class, check returns, or separate binning from
- test results
© 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_chisquare_discrete.html