Gibbs Sampling algoritması ayrıntılı dengeyi garanti ediyor mu?


17

Üst düzey yetki 1'de Gibbs Sampling'in Markov Zinciri Monte Carlo örneklemesi için Metropolis-Hastings algoritmasının özel bir örneği olduğunu düşünüyorum. MH algoritması her zaman ayrıntılı denge özelliği ile bir geçiş olasılığı sağlar; Gibbs'ın da olmasını bekliyorum. Peki aşağıdaki basit durumda nerede yanlış yaptım?

İki ayrık (basitlik için) değişken üzerinde hedef dağılım π(x,y) için, tam koşullu dağılımlar şunlardır:

q1(x;y)=π(x,y)zπ(z,y)q2(y;x)=π(x,y)zπ(x,z)

Gibbs Örneklemesini anladığım gibi, geçiş olasılığı yazılabilir:

Prob{(y1,y2)(x1,x2)}=q1(x1;y2)q2(x2;x1)

Soru şu: ancak alabileceğim en yakın π ( y 1 , y

π(y1,y2)Prob{(y1,y2)(x1,x2)}=?π(x1,x2)Prob{(x1,x2)(y1,y2)},
π(y1,y2)Prob{(y1,y2)(x1,x2)}=π(y1,y2)q2(x2;x1)q1(x1;y2)=π(x1,x2)zπ(x1,z)π(x1,y2)zπ(z,y2)π(y1,y2)=π(x1,x2)q2(y2;x1)q1(y1;y2)
That's subtly different, and does not imply detailed balance. Thanks for any thoughts!

Yanıtlar:


15

Markov zincirinin bir geçişini, koşullu dağılımından sırayla her bir bileşeni örneklediğiniz 'Gibbs süpürmesi' olarak değerlendirerek elde edilen Markov zinciri için ayrıntılı bir denge göstermeye çalıştınız. Bu zincir için ayrıntılı denge sağlanmamaktadır. Buradaki nokta, belirli bir bileşenin koşullu dağıtımından her bir örneklemesinin ayrıntılı dengeyi sağlayan bir geçiş olmasıdır. Gibbs örneklemesinin, birden fazla farklı teklif arasında geçiş yaptığınız, biraz genelleştirilmiş bir Metropolis-Hastings'in özel bir örneği olduğunu söylemek daha doğru olur. Daha fazla detay takip eder.

Taramalar ayrıntılı dengeyi sağlamaz

X1,X2), with probabilities as shown in the following table:

X2=0X2=1X1=01313X1=1013
Assume the Gibbs sweep is ordered so that X1 is sampled first. Moving from state (0,0) to state (1,1) in one move is impossible, since it would require going from (0,0) to (1,0). However, moving from (1,1) to (0,0) has positive probability, namely 14. Hence we conclude that detailed balance is not satisfied.

However, this chain still has a stationary distribution that is the correct one. Detailed balance is a sufficient, but not necessary, condition for converging to the target distribution.

The component-wise moves satisfy detailed balance

Consider a two-variate state where we sample the first variable from its conditional distribution. A move between (x1,x2) and (y1,y2) has zero probability in both directions if x2y2 and thus for these cases detailed balance clearly holds. Next, consider x2=y2:

π(x1,x2)Prob((x1,x2)(y1,x2))=π(x1,x2)p(y1X2=x2)=π(x1,x2)π(y1,x2)zπ(z,x2)=π(y1,x2)π(x1,x2)zπ(z,x2)=π(y1,x2)p(x1X2=x2)=π(y1,x2)Prob((y1,x2)(x1,x2)).

How the component-wise moves are Metropolis-Hastings moves?

Sampling from the first component, our proposal distribution is the conditional distribution. (For all other components, we propose the current values with probability 1). Considering a move from (x1,x2) to (y1,y2), the ratio of target probabilities is

π(y1,x2)π(x1,x2).
But the ratio of proposal probabilities is
Prob((y1,x2)(x1,x2))Prob((x1,x2)(y1,x2))=π(x1,x2)zπ(z,x2)π(y1,x2)zπ(z,x2)=π(x1,x2)π(y1,x2).
So, the ratio of target probabilities and the ratio of proposal probabilities are reciprocals, and thus the acceptance probability will be 1. In this sense, each of the moves in the Gibbs sampler are special cases of Metropolis-Hastings moves. However, the overall algorithm viewed in this light is a slight generalization of the typically presented Metropolis-Hastings algorithm in that you have alternate between different proposal distributions (one for each component of the target variable).

Great answer, thanks (minor edit: y_2 -> x_2 in your third section). When calling the Gibbs sweep one step, is the existence of the stationary distribution (along with irreducibility and recurrence) a sufficient condition for convergence to the stationary distribution from any initial state?
Ian

3
The Gibbs sampler is a composition of Metropolis-Hastings moves with acceptance probability 1. Each move is reversible but the composition is not, unless the order of the steps is random.
Xi'an
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.