Partially collapsed Gibbs sampling is a Markov chain Monte Carlo method that updates variables in turn, as in ordinary Gibbs sampling, but integrates out some variables when forming one or more conditional distributions. By reducing the number of variables conditioned on in selected updates, it can improve sampling efficiency; the update sequence must be arranged so the chain still targets the intended joint or marginal distribution.