Added bayesian function, figure to compile all analysis