Monte Carlo, Markov Chains, Metropolis Hastings.
distribution —final distribution of θ given data by plotting histogram of samples. # plot theta_prior = np.random.beta(1,1,1000) likelihood = likelihood_accept theta_posterior = theta_accept plt.hist(theta_prior, histtype='step', edgecolor='blue', linewidth=2) plt.hist(likelihood, histtype='step',