def chi_square(df, shape=[]): """chi_square(df) or chi_square(df, [n, m, ...]) returns array of chi squared distributed random numbers with df degrees of freedom.""" if shape == []: shape = None return mt.chisquare(df, shape)