Introduction to latent variable models