Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2009/iii/paper-36/2/g/solution

The WinBUGS model uses a finite truncation of the reciprocal prior. The numbered lines have the following roles:
Combining that categorical distribution observation likelihood with the truncated reciprocal prior produces
The Markov chain Monte Carlo output approximates this posterior. The actual PDF separates the observation line from the preceding comment; it must remain an active stochastic statement.

New to topics? Read the docs here!