Monte Carlo, Markov Chains, Metropolis Hastings.
likelihood = 0.229, update posterior = 0.229 In the following table, I wrote down the first 7 iterations. Data is the total head counts of 10 toss. u is the random sample from uniform distribution (0,1) only when r <1. From the first 7 iteration, I collected few θ: 0.43, 0.54, 0.62, 0.32. I will do