User:IssaRice/Belief propagation two coins and a bell example

From Machinelearning

This is an example that illustrates belief propagation in a simple polytree. The situation is given by Pearl (though he doesn't use it as an example of belief propagation). There are two coins, left and right, and a bell. The bell rings when the two coins land on the same side.

We can draw a Bayesian network like this: , where is a random variable representing the left coin flip, the bell, and the right coin flip.

Initially, because each variable has two possible states with equal probabilities between them.

Now what happens when we learn that the left coin came up heads? We can draw an evidence node going into L: .

The L node now recalculates:

It then sends the message to B.

B calculates:

This makes sense: the two coin flips are independent, so knowing just L shouldn't change your probability that the bell rang.

As a side note, Pearl writes the summation like this:

but this is pretty confusing since in the above, the s are all specific values whereas the x is an abstract value.