EDGE-BASED RR 155
configuration x, and so also appear in M(x
∗
,y
∗
). That means these factors cancel out
in the acceptance probability p,and
p(x
∗
,x
∗
∪{i, j},y)=exp(−
β
1(x(i) = x( j))).
When x (i)=x( j), the acceptance probab ility is 1 and the new state is ac-
cepted. When x(i) = x( j), the acceptance probability is exp(−
β
), and the possibility
of rejection exists. Rejection means that x(i) = x( j), and so the configuration no
longer comes from the target distribution, but the target distribution conditioned on
x(i) = x( j).
So if (for instance), x(i)=1, then x( j)=−1, and there is a connected component
of nodes labeled −1 that does not extend back to node i. The idea is to try to isolate
these nodes from the rest of the sample by removing edges.
Removing an edge from the index is very similar to adding an edge. The proposed
move is to index y
∗
= x
∗
{e}. If the endpoints of e have the same label in x,then
K
I
(x
∗
,x) exp(−
β
)Z(x
∗
)=K
I
(y
∗
,x)Z(y
∗
). If they do not have the same label in x,
then K
I
(x
∗
,x)Z(x
∗
)=K
I
(y
∗
,x)Z(y
∗
).
Hence p(x
∗
,x
∗
{{i
, j
}},x)=exp(−
β
1(x(i
)=x( j
))). Now suppose this re-
jects. The only way this could happen is if x( j
)=x(i
).
So either the edge is removed, or the state is conditioned on the endpoints of the
edges being the same. At this point the edge can be removed, since conditioned on
the endpoints having the same value, the edge only changes the unnormalized density
by the constant exp(
β
).
So our index actually consists of three components. The first component is the
set of edges included in the graph. The second component is either empty, or consists
of a single node of the graph. The third component consists of a set of nodes o f the
graph.
The configuration is a draw from the Ising model 1) only including edges in the
first component in the graph; 2) every label on every node in the third component
is the same; and 3) every node in the third component has a different label from the
node in the second component.
Now suppose that every edge adjacent to a node in the third component is absent
from the first component. Then the nodes of the third component can be relabeled
uniformly from {−1,1}, and no longer is the configuration conditioned on the third
component nodes having the same label (which is different from the second compo-
nent node.) So at this point the second (and third) components can be changed back
to the empty set, and once again work on adding (rather than removing) edges from
the first component.
In fact, the edge that we tried to ad d originally can be added with probability 1:
it is the only edge adjacent to node j in x
∗
(1),sosimplydrawx( j) as equal to x(i)
with probability exp(
β
)/[1 + exp(
β
)], otherwise it is the opposite label.
Since every individual step in the chain is following Metropolis-Hastings RR,the
final configuration will be a draw from the Ising model. The pseudocode looks like
this.