Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 3 27K Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 4 13J Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 40 4 Solution Created 2026-10-03 Updated 2026-10-07
A credibility estimate blends the risk's own sample mean with a population or prior expected value. In the basic equal-exposure form it is , where the credibility factor is the weight attached to the individual experience. More data ordinarily increase that weight; greater within-risk variation relative to between-risk variation reduces it.
Write for the conditional claim expected value, keeping for the prior-level parameter. Normalization of the probability density function givesAt interior points of its finite domain, differentiation under the integral sign yieldsThis is an instance of the exponential-family derivative identities for natural parameter . The minus sign is present in the PDF and is lost in the converted TeX. The conditional variance is likewise .
Differentiate the log of the natural conjugate prior:Integrate on a compact subinterval and then let its endpoints approach those of the parameter interval. The prescribed vanishing of the prior density eliminates the boundary term. Since , monotone convergence theorem justifies the limit of its expectation, and the identity givesIn particular the assumed proper prior and boundary conditions themselves establish this first-moment integrability.
For and , conditional independence makes the likelihood function proportional to . Multiplication by the prior distribution gives the Bayesian posteriorThus this is a conjugate prior family, with updated parameters
The integration-by-parts calculation for the posterior mean also needs vanishing posterior boundary values. Here that property can be checked, rather than assumed. Let be the essential lower and upper endpoints of the claim support. Every nondegenerate tilted claim law has , so the established prior mean satisfies . Supported observations have ; hence . At a finite parameter endpoint the prior's vanishing forces , because its exponential factor has a finite positive limit; the increased power makes the posterior vanish there too. At , choose with positive base-measure mass below . Then and the unnormalized posterior is at most . At , choose with positive mass above to obtain the corresponding bound . These bounds also ensure posterior propriety at infinite endpoints. This is the endpoint control for a Laplace-family conjugate posterior.
Apply the previous score integration to the Bayesian posterior. The natural conjugate credibility identity isThus is the credibility factor. This is an exact posterior mean, rather than an affine approximation to one.
For the specific shape-two gamma distribution, takeThen and . The gamma rate gamma conjugacy prior isthat is, . Its normalizing constant in the notation of the question is . The gamma distribution density vanishes at both zero and infinity for . The posterior has shape and rate , so its conditional-mean posterior mean is again .
For the last calculation, gamma distribution integration givesThe second identity requires the printed . Therefore the expected process variance and variance of hypothetical means, denoted by in this question, areConsequently , and the Bühlmann credibility factor agrees with the exact Bayesian weight:This is the exact Bühlmann credibility for gamma claims, expressed using the reciprocal rate as the random scale. The symbols here are the process and between-risk variances, respectively; their roles should not be interchanged when comparing with other notation for the Bühlmann model.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 34 1 a Solution Created 2026-10-03 Updated 2026-10-07
Each observation has uniform distribution density . Independence makes the likelihood function their product. For positive observations the support reduces to , givingFor data outside the positive orthant the likelihood is zero. Changing the convention at the endpoint does not change a continuous posterior distribution.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 34 1 b Solution Created 2026-10-03 Updated 2026-10-07
Multiplying the likelihood function by the Pareto distribution prior givesThe integral of this kernel is , so the normalized posterior distribution isThus it is . This proves uniform-Pareto conjugacy: applying Bayes theorem preserves the family of prior distributions.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 30 1 Solution Created 2026-10-03 Updated 2026-10-06
For independent identically distributed observations , the likelihood function and log-likelihood areA maximum-likelihood estimator is a measurable choice , when a maximizer exists. It need not be unique. The one-observation score function is , and the Fisher information matrix isUnder the regularity assumptions, differentiation beneath the integral gives . Differentiating again gives the second information identity. Independent observations have total Fisher information .
Assume fixed parameter dimension, an interior true parameter , a positive-definite matrix , the standard differentiability and integrability conditions, and statistical consistency of . Then the asymptotic normality of a maximum likelihood estimator isHere is the information per observation. Thus the leading covariance matrix of the estimator itself is .
To prove this, statistical consistency places the estimator in an interior ball about with probability tending to one, where its score function vanishes. Write and use the integral first-order Taylor formula for a vector map:This integral matrix is needed in a vector problem; one does not have to assert a common scalar mean-value point for every score component. PutThe regular local uniform law of large numbers, continuity of the expected Hessian matrix, and statistical consistency give . The multivariate central limit theorem givesThe limiting information matrix is nonsingular, so . Solving the Taylor identity and applying the Slutsky theorem proves the displayed normal limit, since . Boundary parameters or singular information are outside this regular theorem.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 31 4 b Solution Created 2026-10-03 Updated 2026-10-06
Conditional on , summing the individual independent Poisson counts gives . The between-year conditional independence makes the likelihood functionMultiplying by the gamma distribution prior density, proportional to , gives the Poisson-gamma conjugacy with unequal exposures:For an action , the posterior squared-error loss decomposes asHence the Bayes estimator under squared error loss is the posterior mean, givingFuture counts are independent of the observed years conditional on , so the law of total expectation then gives the posterior predictive expected countThe Bayesian and credibility estimates coincide exactly. This exact Bühlmann–Straub credibility for Poisson-gamma counts occurs because the posterior mean is already affine in the exposure-weighted experience, and therefore belongs to the class over which the credibility estimate minimizes mean squared error.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 a Solution Created 2026-10-03 Updated 2026-10-06
The likelihood function for the ordered arrival times of a Poisson process, including the absence of further arrivals before , isThe arrival-time constraint does not depend on . Equivalently, the Poisson distribution of the total count gives , which differs by a parameter-independent factor. Conditional on the count, the Poisson process conditional arrival times have density , independent of . Thus the total count contains all the information about the rate when the exposure is known; it is a sufficient statistic.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 b Solution Created 2026-10-03 Updated 2026-10-06
A conjugate prior is a family of prior distributions whose members remain in that family after updating by the likelihood function. Here multiplying a shape-rate gamma distribution density by the Poisson process likelihood changes its power of and its exponential rate, leaving a gamma distribution. The parameters change with the observations; conjugate prior does not mean that the Bayesian posterior equals the prior distribution.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 f Solution Created 2026-10-03 Updated 2026-10-06
There is a notation problem here. The posterior predictive probability calculated above is already a fixed number conditional on . Literally,No simulation is needed for that interpretation. The known exposure is also necessary, despite its omission from this part's list of inputs.
The natural uncertain quantity is instead . For its posterior probability of being below one half, draw the rate from its gamma distribution Bayesian posterior and average an indicator. Rough BUGS code isThe monitored average of
model {
lambda ~ dgamma(a+n, b+T)
q <- exp(-lambda)
belowHalf <- step(lambda-log(2))
}belowHalf estimates , equivalently . The equality boundary has zero probability. This code samples the already updated Bayesian posterior; adding the count likelihood function again would count the data twice. Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 g Solution Created 2026-10-03 Updated 2026-10-06
For an Inhomogeneous Poisson process, the likelihood function is the product of the intensities at arrivals times the exponential of minus the integrated intensity. The integrated intensity is . There are arrivals at rate one and at rate two, soSet and to include changes before the first or after the last arrival. An arrival exactly at the change has probability zero, so the convention for at that point does not affect the Bayesian posterior.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 1 h Solution Created 2026-10-03 Updated 2026-10-06
A uniform prior on makes the posterior density proportional to the Poisson change-point posterior likelihood above. The zeros trick introduces an observed zero with Poisson distribution mean , making its likelihood function equal to . Choose ; since , this mean is strictly positive. Rough BUGS code, with For , omit the array and set
zero=0 supplied as data, ismodel {
theta ~ dunif(0,T)
for (i in 1:n) {
before[i] <- step(theta-time[i])
}
j <- sum(before[])
logL <- theta-2*T+(n-j)*log(2)
zero ~ dpois(K-logL)
}j <- 0. Monitor the sampled theta to obtain its posterior mean, credible interval and interval probabilities.There is also an exact sampling method. On the posterior density is proportional to , so choose the interval with weightsThen draw from a uniform distribution on and set . These weighted interval draws sample the posterior directly, without asking a local Markov chain Monte Carlo update to cross its discontinuities.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 e Solution Created 2026-10-03 Updated 2026-10-06
The overall mean and the between-study heterogeneity encode different information. A proper broad normal distribution prior such as is one possible weak prior for the mean log odds ratio; information about the spread of trials alone does not determine its center.
A concrete prior calibration for normal random-effect range can make the factor-of-50 statement simultaneous across all six trials. Conditional on , each pair difference has normal distribution . Set , , andFor every , each pair exceeds in absolute value with probability at most . The union bound therefore gives , and integrating over the uniform prior preserves that bound. This is one explicit interpretation of “very unlikely”; a different elicited probability would change the bound. A smoother proper scale prior could be calibrated similarly.
The proposed improper prior is unsuitable. The observed-data likelihood function approaches the positive common-effect likelihood as . After restricting and the intercepts to a compact interior region, it is bounded below there by a positive constant. HenceThis is an improper posterior from a log-uniform random-effect scale prior. Proper conditional sampling distributions do not repair the improper joint posterior, and an arbitrary tiny cutoff would make inference depend on that cutoff.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 35 4 g Solution Created 2026-10-03 Updated 2026-10-06
For the common Bayesian deviance convention used in all three models,Here
Dhat is , an at-posterior-mean fit measure, and is an effective parameter count. The independent model's Dhat of 53.1 is almost identical to the exchangeable model's 53.2; both improve on the common model's 57.8. The common model's corresponds to six intercepts plus one shared effect. Independence uses roughly twelve effective parameters. Partial pooling reduces the exchangeable model's effective complexity to about 8.7 while retaining nearly the same fitted likelihood function as independence.The exchangeable model has the lowest reported DIC, but the common model is competitive. Their difference is only about 1.3, whereas independence is worse by about 6.3. The deviance information criterion measures penalized fit for a predictive comparison, not model posterior probabilities, and these numbers do not establish overwhelming evidence for heterogeneity. The displayed exchangeable is , rather than the printed 70.5; rounding of the underlying values can account for a tenth and does not change this interpretation.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 36 1 b Solution Created 2026-10-03 Updated 2026-10-06
Among the supplied candidates, choose ARMA(2,1). It has the smallest Akaike information criterion. Relative to ARMA(2,2), its AIC improvement is ; the additional second moving-average estimate is only half a standard error from zero and increases the log likelihood function by only about . Dropping it is a reasonable parsimony choice, although that AIC gap is small. ARMA(1,1) has AIC larger by , a much clearer loss of fit. In the chosen model the second autoregressive term is about seven standard errors from zero, so it should not be dropped merely to obtain order one. The first autoregressive term is less precisely estimated; this does not justify automatically deleting it without fitting and comparing the reduced candidate.
Using the usual positive-sign moving-average convention, the fitted autoregressive moving-average model isThese are plug-in values rounded as given, not exact population parameters. The model has zero mean. Its polynomials are and .
With angular frequency , so that the autocovariance is , the spectral density of a stationary process isThe frequency convention makes the normalization unambiguous.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 36 3 c Solution Created 2026-10-03 Updated 2026-10-06
Use the chain rule for conditional densities. With , the likelihood function of the nondegenerate observations isThe first residual is and carries no parameter information. There is no ordinary joint Lebesgue density for because deterministically; this expression is the conditional likelihood function given the fixed initial values, or the likelihood function on . The initial point mass is parameter independent and has no effect on inference. This is the conditional likelihood of an initialized Gaussian AR(2) process.