statsmodels.stats.contingency_tables.Table.independence_probabilities

Table.independence_probabilities

Returns fitted joint probabilities under independence.

The returned table is outer(row, column), where row and column are the estimated marginal distributions of the rows and columns.