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:
- distfn
distributioninstance Discrete distribution function to be tested; needs
a,bandcdfattributes/methods.- argsequence
parameters of distribution
- rvsarray_like
random sample from the distribution to be tested
- alpha
float significance level, threshold for p-value
- msg
str identifying message that is included in the returned result string
- distfn
- Returns:
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