Implement Bayesian Inference Model