joint[i][j] is . Return the mutual information between X and Y,
in bits.
Recover the marginals by summing the rows and columns. The result is 0 exactly when X and Y are independent, and it measures how much knowing one tells you about the other.
Input
[[0.25, 0.25], [0.25, 0.25]]
Output
np.float64(0.0)