Latent factor model for asset pricing