Monte Carlo, Markov Chains, Metropolis Hastings.
5. Compute posterior: posterior = prior * likelihood = 1 * 0.003 = 0.003 # iteration 1 6. Drew a θ from uniform(0,1) For example: θ = 0.43 7. Compute prior p(θ=0.43) = 1 8. Toss the coin for 10 times: H-heads, T-Tails and count heads For example: [H, H, H, T, T, H, H, T, T, T] Total number of Heads