Estimating latent structure in financial data