cocoatree.statistics.pairwise.compute_apc¶
- cocoatree.statistics.pairwise.compute_apc(MIij)[source]¶
Computes the average product correction (APC) as described in Dunn et al. (2008).
\[APC(a, b) = \frac{MI(a, \bar{x}) MI(b, \bar{x}){\overline{MI}}\]where \(MI(a, \bar{x})\) is the mean mutual information of column a and \(\overline{MI}\) is the overall mean mutual information
The corrected mutual information is then:
\[MIp(a, b) = MI(a, b) - APC(a, b)\]Arguments¶
- MIijnp.ndarray,
the mutual information matrix
Returns¶
- APC_ijnp.ndarray,
the average product correction (APC) matrix
- MIpnp.ndarray,
the APC corrected mutual information matrix