Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2019/iii/paper-216/1/c/solution

After the sum-product messages have been computed, draw exact independent posterior configurations by sampling a root from its marginal and then sampling each child from its conditional distribution given its parent. For sample , set
Then is unbiased and
Taking attains the required bound. Message computation costs and each exact sample costs , so with the prescribed fixed number of samples the overall cost is

New to topics? Read the docs here!