statsmodels.stats.contingency_tables.Table2x2.resid_pearson

method

Table2x2.resid_pearson()

Returns Pearson residuals.

The Pearson residuals are calculated under a model where the rows and columns of the table are independent.