Monte Carlo, Markov Chains, Metropolis Hastings.
edgecolor='orange', linewidth=2) plt.hist(theta_posterior, histtype='step', edgecolor='green', linewidth=2) plt.legend(['prior distribution', 'likelihood distribution', 'posterior distribution']) plt.show() From histogram we can see that the prior distribution is a uniform distribution from [0,1]