A latent-observed dissimilarity measure