Represent conditional independence with directed and undirected graphs, factor joint distributions, and perform exact or approximate inference.