Bayesian Modeling With Tractable Inference And Applications To Online Peer-To-Peer Lending