add bayesian script