Chapter 6 Learning Generative Models with Latent Variables