Solution

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

Under independent area counts and independent area prior distributions, the joint posterior distribution factors into the gamma posteriors. For each simulation , draw one joint vector by independently generating
Rank the risks within that joint draw, taking rank one to mean highest risk:
The empirical posterior rank distribution and highest-risk probability are
Independent gamma draws make this direct Monte Carlo integration, so Markov chain Monte Carlo is unnecessary here. Continuous posteriors give ties probability zero, and the highest-risk probabilities sum to one. The same ranking calculation can be applied to dependent joint draws from a richer hierarchical Bayesian model; ranking separate posterior means would discard the uncertainty that the program is intended to measure.

New to topics? Read the docs here!