variational methods for undirected models 8549556