It can be shown that the states of variables will converge to the required samples from the posterior distribution after a sufficient number of iterations.
for the hierarchical Pitman-Yor language model, the variables consist of, for each u and each word x ul drawn from G u , the index k ul of the draw from G π(u) assigned x ul .