Used built-in scipy chi2 functions for contingency tables