Beta-binomial exchangeable coupling 2026-10-06
Draw , and , with and integer . The joint density of is symmetric in , making them exchangeable random variables with identical Beta distribution marginal distributions. The posterior beta normalization constant depends on and must be retained. The correlation coefficient is : this constructs tunable dependence without altering either marginal.
Beta-gamma independence 2026-10-06
If and are independent random variables with Gamma distributions of shapes and the same rate , then has the Beta distribution with parameters , and has the Gamma distribution of shape and rate . Moreover and are independent. The inverse change of variables has absolute Jacobian determinant , which makes the joint probability density factorize on the product domain , . The common rate is essential for this factorization.
Past exam of the mathematics course of the University of Cambridge 2007 ib Paper 1 18C iii Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 34 1 Solution Created 2026-10-03 Updated 2026-10-06
Put for . This is the quantile function, rather than an ordinary inverse requiring strict increase. The limits of the distribution function at infinity make finite, and the fact that is a right-continuous function ensures . ConsequentlyIncreasing shrinks the set in the infimum, so the quantile function is a monotone function. To prove the left continuity of the quantile function, fix and let . If , choose . Then , so some satisfies , a contradiction. Thus as . At a flat stretch of the distribution function, the quantile function may jump immediately to the right, consistent with this left-continuous convention.
For the uniform order statistic, count the observations at most . That count has the binomial distribution with parameters , givingDifferentiating makes adjacent terms telescope: use and . The probability density function is thereforeIn particular, has the Beta distribution with parameters .
Write for the specified median. Continuity of the distribution function gives and no mass at , even if the distribution function has a flat stretch there. Thus has the binomial distribution with parameters . Except on a null event, the order-statistic confidence interval for a median covers exactly when . Symmetry of the binomial distribution makes its two failure probabilities equal. Alternatively, the probability integral transform givesHence the coverage is exactly , withThe asymmetric open/closed endpoint convention does not change the coverage because the continuous probability distribution assigns no mass to the median.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 b Solution Created 2026-10-03 Updated 2026-10-06
For a binomial distribution, the score function isIts squared expected value is , using the binomial distribution variance . Hence the Jeffreys prior isthe Beta distribution . The factor is independent of and disappears on normalization.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 2 d Solution Created 2026-10-03 Updated 2026-10-06
In Markov chain Monte Carlo, retain the derived quantity at every iteration. Rough BUGS code using the actual observations isSupply
model {
pM ~ dbeta(0.5,0.5)
pT ~ dbeta(0.5,0.5)
milkAnswers ~ dbin(pM,4)
teaAnswers ~ dbin(pT,4)
delta <- pM-pT
positive <- step(delta)
}milkAnswers=3 and teaAnswers=1. Summarize delta by its posterior mean, empirical quantiles and credible interval; the average of positive estimates . Here . Check Markov chain Monte Carlo convergence diagnostics before interpreting the simulation. Since both Bayesian posteriors are independent known Beta distributions, direct independent sampling is an equally valid, simpler way to obtain the same summaries.