In the chain of binary variables, , , , and . Use variable elimination to find . Why is this cheaper than summing the full joint?
Probabilistic models, Exact inference
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can push sums inside products and carry the intermediate factors.
Key idea
Write . Eliminate first to get a factor , then eliminate .
Steps
- Start from and move the sum over inside: with .
- , and so . This is just .
- .
- Hence . The two values sum to 1, which is a useful check.
- Cost: the full joint has terms. In a chain of variables with states, elimination costs , whereas the joint costs .
Common mistakes
- Summing the full joint first and only then simplifying, which loses all the saving.
- Forgetting that is an intermediate factor, not necessarily a conditional probability. Here it happens to equal .
- Arithmetic slips: check that .
How long your answer should be
Half a page, showing .
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: In the DAG with edges , , and , decide whether each statement is true, using d-separation: (i) ; (ii) ; (iii) ; (iv) ; (v) ; (vi) ?
Next in Probabilistic models: You use a Metropolis random-walk sampler for the unnormalised target . The current state is . Find the acceptance probability for the proposals and . If the uniform random number is for , is it accepted? Why is the normalising constant not needed?