Metropolis Hasting Initial a x for i = 0 to N-1: Base g(x→x,)g(x \rightarrow x^,)g(x→x,) to choose a new x,x^,x, calculate the accept rate α=min1,p(x)\alpha = min{1, \frac{p(x)}{}}α=min1,p(x)