stats.tests.test_discrete_basic

Module Contents

Functions

cases_test_discrete_basic()
test_discrete_basic(distname,arg,first_case)
test_moments(distname,arg)
test_rvs_broadcast(dist,shape_args)
check_cdf_ppf(distfn,arg,supp,msg)
check_pmf_cdf(distfn,arg,distname)
check_moment_frozen(distfn,arg,m,k)
check_oth(distfn,arg,supp,msg)
check_discrete_chisquare(distfn,arg,rvs,alpha,msg) Perform chisquare test for random sample of a discrete distribution
check_scale_docstring(distfn)
cases_test_discrete_basic()
test_discrete_basic(distname, arg, first_case)
test_moments(distname, arg)
test_rvs_broadcast(dist, shape_args)
check_cdf_ppf(distfn, arg, supp, msg)
check_pmf_cdf(distfn, arg, distname)
check_moment_frozen(distfn, arg, m, k)
check_oth(distfn, arg, supp, msg)
check_discrete_chisquare(distfn, arg, rvs, alpha, msg)

Perform chisquare test for random sample of a discrete distribution

distname : string
name of distribution function
arg : sequence
parameters of distribution
alpha : float
significance level, threshold for p-value
result : bool
0 if test passes, 1 if test fails
check_scale_docstring(distfn)