chi square example in python Example: chi square test in python from scipy.stats import chisquare stat, p = chisquare(mylist)