Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 29 4 v Solution Created 2026-10-03 Updated 2026-10-14
Use a hierarchical Bayesian model with binomial observation errors and a common distribution for the underlying risks:Give a shared hyperprior, or parameterize them by mean and concentration and put priors on and . Conditional on these hyperparameters, the risks are independent and identically distributed; after integrating them out they are exchangeable random variables with shared uncertainty. The data estimate the overall risk level and between-hospital variation. Conditional Beta-binomial conjugacy givesand full Bayes point estimates under squared-error loss areAn Empirical Bayes method instead estimates the hyperparameters from the marginal beta-binomial distribution likelihoodand inserts their fitted values in the conditional posterior means. Both approaches provide partial pooling, stronger for smaller hospitals. Full Bayes also propagates hyperparameter uncertainty into the credible intervals. If systematic covariates are needed, one can place exchangeable residual effects in a logistic regression model rather than assuming a common unconditional risk distribution.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 36 1 c Solution Created 2026-10-03 Updated 2026-10-14
Put , , and . Integrate the future binomial distribution against the current beta distribution posterior density:This is the beta-binomial distribution. For positive integer , the Gamma function values reduce to factorials, givingUsing and rewrites this asSubstitution of gives exactly the two required factors. The probability is zero outside .