<s> from __future__ import print_function <EOL> import numpy as np <EOL> from scipy import stats <EOL> from statsmodels . stats import gof <EOL> poissrvs = stats . poisson . rvs ( <NUM_LIT> , size = <NUM_LIT:200> ) <EOL> freq , expfreq , histsupp = gof . gof_binning_discrete ( poissrvs , stats . poisson , ( <NUM_LIT> , ) , nsupp = <NUM_LIT:20> ) <EOL> ( chi2val , pval ) = stats . chisquare ( freq , expfreq ) <EOL> print ( chi2val , pval ) <EOL> print ( gof . gof_chisquare_discrete ( stats . poisson , ( <NUM_LIT> , ) , poissrvs , <NUM_LIT> , <EOL> '<STR_LIT>' ) ) </s>
