Bayesian Inference, EM, and Gibbs Sampling