An Introduction to Latent Variable Models