Recall that random variables X and Y are independent if and only if the joint probability density P XY and the product of the marginals P X P Y are equivalent.
we can measure the dependence between random variables X and Y via the difference between P XY and P X P Y .