Probabilistic latent variable models for distinguishing between cause and effect