Repository contains the derivation of Belief Propagation algorithm from the ground up, as well as generic Java implementation of the Loopy Belief Propagation algorithm.