otherwise staying at
i. Writing
r=π(j)q(i∣j)/(π(i)q(j∣i)): when
r≥1,
α(i,j)=1 and the reverse acceptance is
1/r, so pointwise substitution yields the detailed balance of the MH chain,
π(i)q(j∣i)α(i,j)=π(j)q(i∣j)α(j,i), hence
π is stationary; moreover
π only needs to be known up to a constant (it cancels in the ratio). Gibbs sampling is a special case: each step updates one coordinate
xk by drawing from the conditional
π(xk∣x∖k), whose definition forces the acceptance rate to be 1 — no rejection needed.