Exploiting Chain Rule and Bayes' Theorem to Compare Probability Distributions