statsmodels.stats.contingency_tables.Table2x2.chi2_contribs

Table2x2.chi2_contribs()

Returns the contributions to the chi^2 statistic for independence.

The returned table contains the contribution of each cell to the chi^2 test statistic for the null hypothesis that the rows and columns are independent.