Three binary variables form a chain with unary factors , , (for values 0 and 1), and the same pairwise factor on both edges, if and otherwise. Using sum-product messages, what are and ?
Probabilistic models, Belief propagation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute sum-product messages and combine them into marginals on a tree.
Key idea
Message: . Marginal: .
Steps
- Message from the leaf to : . For : . For : .
- Message from the leaf to : for : . For : .
- Belief at : . Normalise by 53: .
- Message from to uses only the message from (not the one from ): . For : . For : .
- Belief at : , so .
- Check by brute force: summing all 8 unnormalised states gives , and the weights with add to 39. They agree, as expected on a tree.
Common mistakes
- Including the incoming message from the target node when computing an outgoing message. A message to excludes .
- Forgetting the unary factor inside the message.
- Using the sum-product rule on a graph with loops and expecting exact answers.
How long your answer should be
Half a page.
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: A Bayesian network has a root and children , with arrows , all variables binary. To compute with no evidence, compare the cost of eliminating first against eliminating first. What is the induced width in each case?
Next in Probabilistic models: A binary chain has unary factors , , , and both pairwise factors are if and otherwise. Use max-product to find the MAP assignment and its unnormalised value. How does this relate to the Viterbi algorithm?