Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 28 4 c Solution Created 2026-10-03 Updated 2026-10-14
Let be the average over all coordinate tuples in part (a), and the distinct-tuple average in part (b). Every product summand lies in . A proportion , where , of all tuples have distinct coordinates. Thuswhere is the average over the remaining tuples. If there are no remaining tuples, the error is zero. Hence .
For independent uniform choices from indices, any particular pair coincides with probability . A union bound over the pairs givesThis deterministic sampling with and without replacement comparison for bounded products is the needed link between the two averages.
Part (a) identifies the almost-sure limit of as . By part (b) and the reverse martingale convergence theorem, converges almost surely to . Their difference vanishes, soThis is precisely conditional independence. Exchangeability also makes the single-coordinate conditional laws identical, by applying a coordinate transposition and testing against invariant events. The result is the De Finetti theorem, established here by finite symmetrization and the vanishing collision fraction.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 38 4 Solution 2026-10-14
The PDF gives an inverse-gamma distribution with shape and scale , and a gamma distribution prior with shape and rate . Write . The supplied conditional moments, together with and , give the three structural quantities of the Bühlmann model:Here is the variance of hypothetical means and the expected process variance. The law of total covariance and conditional independence of different years implyAll these quantities are finite because .
For any coefficients , minimizing the mean squared error over the intercept first gives . Let and . Expanding the remaining mean squared error givesIts normal equations are for every . Since , subtracting any two equations shows that all agree. The quadratic part is strictly positive for every nonzero coefficient change, so the solution is the unique global minimizer. Solving givesA credibility estimate combines individual experience with the collective expected value, using an experience weight . In this equal-exposure setting, the Bühlmann credibility premium isThus the computed coefficients give exactly a credibility estimate, with a fixed credibility factor determined by known parameters and the number of observed years. This is Bühlmann credibility for inverse-gamma observations.
For the final Bayesian calculation, the likelihood function in is proportional to . Multiplication by the gamma distribution prior gives the Gamma prior for an inverse-gamma scale updateUnder quadratic loss, the conditional risk of an estimate is . Its minimizer is therefore the posterior mean:This is not a fixed-weight arithmetic-mean credibility estimate. For , the observations and have the same sample mean, but reciprocal sums and , hence different posterior means. For any , append the same positive observations to these two samples. For , the estimate is , with ; its second derivative is , so it is not affine either. Symmetry in the observations would force equal slopes in any affine representation, so these examples also exclude a general fixed-coefficient linear representation.
One can express the posterior mean as a broader data-dependent blend. With and harmonic mean , it isThis weights a harmonic-mean-based experience estimate, and the weight itself depends on the observations. It is not the credibility estimate based on and the fixed Bühlmann credibility factor derived above.
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 e Solution Created 2026-10-03 Updated 2026-10-07
Use the intended hierarchical Bayesian model: the breed parameters are conditionally independent given , and observations are independent given their breed parameters. Put . The uniform-Pareto model evidence factorizes over breeds:Identical marginal prior distributions alone would not determine this product; conditional independence is the additional assumption.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 34 3 c Solution Created 2026-10-03 Updated 2026-10-07
Assume conditional independence of the Poisson distributions, and write , . The correct Poisson mass function has ; the positive sign in the PDF's reminder is erroneous. The group likelihood isMultiply by the shape–rate Gamma distribution prior and integrate. The gamma integral givesIndependent baseline priors give the product over groups. For fixed , the leading factors do not depend on , proving the requested Gamma-integrated baseline Poisson likelihood.
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 31 4 Solution 2026-10-06
Write the year- count as a sum of its individual counts, with . The specified conditional independence within that year givesDividing by and scaling the conditional variance by therefore givesThis is the Bühlmann–Straub model: larger exposures reduce the process noise in a year's average.
Define the population parameters and total observed exposure byHere is the expected process variance and the variance of hypothetical means. Assume finite second moments. The law of total variance gives , and conditional independence between years gives for : their only shared variation is the latent conditional mean.
To derive the Bühlmann–Straub credibility estimate, minimize mean squared error among affine estimates of . For coefficients and , the optimal intercept is . Centering at and conditioning on shows that the resulting error isThe cross term vanishes because has conditional mean zero; the conditional noise cross terms vanish by the between-year independence assumption.
For fixed , the Cauchy-Schwarz inequality giveswith equality when . Minimize the remaining quadratic . Its minimizing value is the Bühlmann–Straub credibility factorThe experience term is exposure-weighted:Since the future conditional mean count is , multiplying the optimal estimate by the known future exposure givesIt is the best affine linear least-squares projection, not a claim that the exact conditional expectation given all data is always affine. If , the conditional mean is a known constant almost surely and one takes ; if , the observations reveal it without process noise and . The ordinary case has .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 13 2 i Solution Created 2026-10-03 Updated 2026-10-06
Take information entropy in bits and put . Write , , and . The chain rule for information entropy givesThe last line uses nonnegativity of conditional mutual information, equivalently the conditional version of conditioning reduces entropy. All random variables are finite-valued, so every conditional entropy here is finite. Therefore the entropy set function is a submodular set function:This is entropy submodularity, with equality precisely when and satisfy conditional independence given .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 34 4 Solution Created 2026-10-03 Updated 2026-10-06
In the Bühlmann model, a latent risk parameter is drawn from a population distribution. Conditional on , the yearly observations are independent and identically distributed random variables, with conditional expectation and conditional variance . Define the structural parametersHere is the expected process variance, while is the variance of hypothetical means. The Bühlmann credibility premium is the best affine estimate of from the observed claims, under mean squared error. Predicting the next claim gives the same affine estimate: the extra conditional observation noise contributes the constant to the prediction error.
The law of total variance and conditional independence giveAn affine estimate can be written as : for any chosen , optimizing the constant makes its expected value equal to . The normal equations for the linear least-squares projection areFor they force all to agree, with . Thus the credibility factor and premium areThe credibility factor increases with the observation count and between-risk variance, and decreases with within-risk variance. If , the risk mean is known and ; if and , one observation reveals it and . If both vanish, the premium is the fixed value and the factor is immaterial.
In the specified model, the conditional law is a gamma distribution with shape and scale . ThereforeThe prior is an inverse-gamma distribution with shape and scale . To obtain its moments directly, substitute in the defining integral, obtainingThe Gamma function recurrence yieldsThe assumption makes both structural variances finite. HenceIt follows that the model-specific credibility estimate is
For the Bayes estimator under squared error loss, the quantity to estimate is , so the optimum is its posterior mean. The likelihood function, viewed as a function of , is proportional toMultiplication by the prior shows gamma scale inverse-gamma conjugacy:Although the printed hint only mentions integer shapes, the same substitution and Gamma integral normalize this posterior for every positive real shape, so no integrality of is needed. Its posterior mean gives the Bayesian estimate and comparisonThis exact Bühlmann credibility for gamma claims holds for every observed sample, not merely on average. Here the posterior mean is affine in the sample mean, so the best affine Bühlmann credibility premium is also the unrestricted Bayes estimator under squared error loss.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 1 Solution Created 2026-10-03 Updated 2026-10-06
Write . The global Markov property for a directed acyclic graph says that, for every three pairwise disjoint vertex sets ,Thus graphical D-separation implies probabilistic conditional independence. Causal minimality means that has this global Markov property for a directed acyclic graph, but has it for no proper subgraph of obtained by deleting edges while keeping all vertices. Faithfulness of a directed acyclic graph means that the displayed implication is an equivalence: the conditional independences of are exactly the D-separations of . In particular it includes the global Markov property for a directed acyclic graph.
A causally minimal distribution can nevertheless have an extra independence. Here is a causally minimal nonfaithful Gaussian model. Take three independent random variables , each with the standard normal distribution, and setUse the Directed acyclic graph with edges , and . The equations give a directed acyclic graph factorization, so the global Markov property for a directed acyclic graph holds. Alternatively this complete acyclic graph imposes no nontrivial D-separations. But is independent of , even though the direct edge prevents their D-separation. Hence faithfulness of a directed acyclic graph fails.
To check causal minimality explicitly, the covariance matrix isThe linear transformation from to is invertible, so this is a nonsingular multivariate normal distribution. Deleting would require , whereas . Deleting would require , whereas the conditional covariance isDeleting would require , whereas its conditional covariance is . By Gaussian conditional independence, each nonzero conditional covariance rules out the required independence. Every proper subgraph is contained in a graph obtained by a single edge deletion, and further deletion can only add Markov restrictions. Thus no proper subgraph is Markov for , proving causal minimality.
For the Markov blanket, use its standard convention that the focal vertex is excluded:We prove Markov blanket D-separation by examining an arbitrary path from to . If its first edge points into , its next vertex is a parent of , hence a conditioned noncollider in , and the path is blocked. Otherwise the path starts at a child . If the next edge points out of , then is again a conditioned noncollider. If it points into , the path begins . Although conditioning on the collider opens that local segment, is another parent of , hence belongs to . The outgoing arrow makes a noncollider on the path, so conditioning on blocks it. Since is outside , none of these blocking vertices can be the endpoint.
Every path is therefore blocked by . Applying the global Markov property for a directed acyclic graph givesThis proves the requested screening property without any positivity assumption on .
Finally assume faithfulness of a directed acyclic graph and let have the stated screening property. Then and every vertex outside must be D-separated by . If a parent or child of were missing from , the one-edge path between them would be active, a contradiction. Thus every parent and child is in . If another parent of a child were missing from , the path would be active: its only interior vertex is the collider , already in . This is again a contradiction. ConsequentlyUnder faithfulness the graphical blanket is contained in every screening set. This is the minimal Markov blanket under faithfulness; the preceding argument also shows that the blanket itself is a screening set.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 322 1 Created 2026-10-03 Updated 2026-10-14
Let and let denote present stellar age, rather than time measured from the galaxy's birth. With a fixed initial mass function, constant star formation rate also gives a constant number of births per unit time, as in the birth-age distribution under constant star formation. Counting the supplied stellar evolution model's remnants as part of the population, ages have a uniform distribution on . Integrating the constant birth rate therefore givesOutside this interval the cumulative fraction is zero or one as appropriate.
Write for the birth-mass parameter and . The normalization cancels when integrating the initial mass function:Thus the mass-tail fraction isIt is one at and below the lower cutoff. The normalization constant has no effect on any number fraction.
For evolutionary-state selection by stellar lifetimes, a red giant has completed its main sequence lifetime but not its giant lifetime. Its stellar lifetime regions in a mass-age diagram are bounded byThe lower boundary meets at and the upper boundary meets it at . A white dwarf lies above the upper lifetime curve, within the same age interval.
Red-giant and white-dwarf regions in the birth-mass–age plane and their triangular images in uniform mass-tail–age coordinates
. Details. The probability integral transform, applied to the decreasing mass-tail coordinate, makes uniform on : . The independent birth age gives uniform on , so number fractions are areas in a unit square. Since , the red giant region becomes , a triangle with vertices , and . Its area is . The white dwarf region is a triangle of area . Hence the present individual-star fractions areThe rest are on the main sequence under the given toy lifetime model.
For the binary stars, draw two independent mass-tail coordinates , but only one shared age coordinate : components born together are coeval. The coeval binary population therefore occupies a uniform unit cube . At a fixed age , the state probabilities for either component areTheir evolutionary states have conditional independence given . They generally do not have unconditional independence, because sharing an age correlates their states. The binary fractions below are slice areas averaged over .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 322 1 iii Solution Created 2026-10-03 Updated 2026-10-06
For the three unordered evolved pairs, conditional independence gives the slice probabilities , and . Averaging over the shared age in the coeval binary population yieldsThus their system-number ratio is , as required.
For the unheaded instantaneous-burst continuation, put , with . All binary stars now have the same age, so the individual red giant fraction is . Independent component masses give the giant-pair fraction in an instantaneous stellar burst, the two-giant system fractionThe final comparison has an ambiguity about which population is being counted. Taken literally as a comparison with the first galaxy's individual-star giant fraction , it would require . There is no allowed burst age: throughout , the two-giant fraction is less than , well below .
If the intended comparison instead concerns two-giant systems in both galaxies, the comparison fraction is . Then givesFor completeness, a comparison of individual red giant fractions in both galaxies would give . These three comparisons have different denominators and should not be conflated.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 322 1 ii Solution Created 2026-10-03 Updated 2026-10-06
For the evolved-companion fraction, a red giant has another evolved component precisely for unordered or pairs. By conditional independence at fixed age, their combined slice probability is . ThereforeDivide by the system fraction containing at least one red giant to obtain the requested conditional fraction:A double-giant system is counted once in this denominator, and the factor two for a giant–white dwarf pair represents its two possible component orderings.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 205 4 Solution Created 2026-10-03 Updated 2026-10-05
The global Markov property for a directed acyclic graph requires, for all pairwise disjoint vertex sets , that D-separation of and by in implies . Two Markov equivalent directed acyclic graphs encode exactly the same such D-separations. The structural characterization is that they have the same skeleton of a directed graph and the same unshielded colliders. A distribution has faithfulness of a directed acyclic graph when its conditional independences are exactly those encoded by D-separation; this includes the global Markov implication as well as its converse.
The population PC algorithm uses an exact conditional independence oracle. Start with the complete undirected graph, and conditioning-set size . At each size, examine ordered adjacent pairs . Test subsets of size until independence is found or all such subsets have been examined. On finding it, delete and record a symmetric separating set . Ordered pairs ensure that subsets from either endpoint's neighbours are considered. Increase until no adjacent ordered pair has enough remaining neighbours to supply a set of that size. Rechecking eligibility after deletion, or freezing the neighbours at each level and then deleting, gives the same population skeleton under the hypothesis below.
Next, for each unshielded triple with nonadjacent, orient precisely when . Propagate directions that are forced without introducing a directed cycle or an additional unshielded collider. In particular, with nonadjacent forces ; an undirected edge with a directed path from to forces ; and with nonadjacent forces . The first avoids a new unshielded collider, the second a directed cycle. For the third, would force and to avoid cycles, creating the prohibited unshielded collider .
For a fully specified exact completion, list all acyclic orientations of the recovered skeleton which extend the collider arrows and have exactly the recorded unshielded colliders. Direct an edge if and only if all listed graphs orient it the same way; otherwise leave it undirected. This finite enumeration implements the definition of the completed partially directed acyclic graph; orientation propagation is the usual efficient way to obtain the same completion. The equivalence-class proof below uses the exact completion description and does not need an unproved completeness claim about a chosen subset of propagation rules.
To prove correctness, assume faithfulness of a directed acyclic graph to . A true edge cannot be D-separated by any set excluding its endpoints: its length-one path is always active. Thus a true edge is never deleted. Conversely, take nonadjacent and choose their order so that is earlier than in a topological ordering of . Then is a nondescendant and nonparent of . Its parent set gives D-separation of and . To see this local graphical fact, a path beginning is blocked by the conditioned parent , a noncollider. A path beginning with an arrow out of must encounter a first collider before reaching the nondescendant . That collider is a descendant of , and neither it nor any of its descendants can be a parent of in an acyclic graph. Hence conditioning on does not open it.
All parent edges survive. If has not already been deleted, remains among 's neighbours excluding . It is therefore tested by size , and faithfulness forces deletion. The size loop cannot stop prematurely while this set remains eligible. This proves exact recovery of the skeleton of a directed graph.
For an unshielded triple , if it is a noncollider in , its length-two path remains active unless is conditioned on. Thus every separator of contains . If it is a collider, conditioning on opens the length-two path, so no separator can contain . Faithfulness turns these graphical statements into the recorded separator test. Therefore the collider phase recovers precisely all unshielded colliders. By the skeleton and collider characterization of Markov equivalence, the acyclic extensions with exactly these colliders are exactly the Markov equivalence of directed acyclic graphs class of . In particular that set is nonempty, and the completion returns its CPDAG. This proves population PC correctness under faithfulness.
For the four-variable example, the only removable pairs are , with separator , and , with separator . The remaining skeleton has edges . The unshielded triples and both have center outside the separator of , so both are unshielded colliders. Every remaining edge is thereby oriented:The other two unshielded triples are noncolliders, consistent with the separator of . There is no undirected edge left, so the equivalence class consists of this unique Directed acyclic graph. This identification is about the given faithful observational distribution; general PC algorithm outputs need not identify a unique causal direction.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 207 2 b ii Solution Created 2026-10-03 Updated 2026-10-05
The original PDF shows the chain , not a collider. Its Bayesian network factorization is . For any with positive marginal probability,Integrating or summing over also gives the same conditional marginal . ThusThis is conditional independence; the graph does not generally imply marginal independence, since summing over can transmit dependence from to . Special statistical parameter choices can make marginal independence hold as well, so the claim is that only the conditional statement is guaranteed by the graph. Conditional distributions on null values of are immaterial to this assertion.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 5 b Solution Created 2026-10-03 Updated 2026-10-06
Let and . With conditional independence of the binary observations given the latent function, defineThe prior distribution is specified on the precision , not on . Its Jacobian determinant givesand the marginal posterior density is proportional to . Working instead with precision or logarithmic coordinates is possible, provided all corresponding Jacobian determinants are included.
Choose an importance sampling density covering the support of , draw independently from it, and use the nonnegative unbiased likelihood estimatorEach summand integrates to , proving unbiasedness. A simple always-valid choice is the latent Gaussian prior distribution, , when the covariance matrix is nonsingular. Then the estimator is just the average of the bounded values . For duplicate inputs, sample only the distinct latent values and multiply all likelihood contributions at each common input. A Gaussian approximation to the latent posterior distribution, or its mixture with the Gaussian prior distribution, can reduce relative variance while keeping complete support. Its approximation does not replace the exact weights.
The pseudo-marginal Metropolis–Hastings algorithm stores both the current and its estimator randomness ; write their sampling law as . Propose , independently generate , compute , and accept the pair withHere denotes the proposal probability density function from to . On rejection retain both the old parameter and the old likelihood estimate. Initialize with a positive estimate. One must not independently refresh the denominator after rejection.
Correctness follows from the extended posterior densityThe pair proposal is . Its Metropolis–Hastings acceptance probability simplifies to the displayed ratio, since the auxiliary densities cancel. Hence detailed balance holds for . Integrating over gives by unbiasedness, so the parameter marginal distribution is exactly the intended posterior distribution for any fixed positive . This is exactness of the stationary target, not independent exact samples or a guarantee of rapid convergence. Large relative variance of the likelihood estimates can produce long holding times, so marginalizing does not by itself guarantee an improvement in mixing time.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 322 1 ii Solution Created 2026-10-03 Updated 2026-10-06
Use conditional independence at the common age . A system with a red giant and a second evolved component is either a pair of red giants, with conditional probability , or a red giant and a white dwarf, with conditional probability . The factor two counts which component is the white dwarf; a pair of red giants is counted only once. Since , the unconditional probability of this event isThis event is contained in the event of at least one red giant. Therefore the requested conditional probability, among systems selected for containing a red giant, isIn particular the denominator is a fraction of systems, not the individual-star fraction .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 322 1 i Solution Created 2026-10-03 Updated 2026-10-14
For this stellar population, let denote initial mass in units of the solar mass, and let denote present stellar age. Constant formation of equal numbers of stars per unit time makes the stellar age a uniform distribution on Gyr, so is uniform on . The normalized initial mass function has probability density function for , since . ConsequentlyThese formulae have the stated age and mass domains; outside them the relevant cumulative fractions saturate at zero or one. The probability integral transform makes uniform on : gives . The time-independent initial mass function and constant number formation rate give independence of and . All fractions here count objects, including white dwarfs, using the stipulated stellar evolution law.
A red giant hasThus the mass boundaries are and for positive . Equivalently, for the red giant region runs from to the age cap , and for it runs from to . There are no red giants with . Boundaries have zero probability and their endpoint convention does not affect the fractions. In the uniform square the red giant region is , with triangle vertices , and . The white dwarf region is the triangle .
At fixed , define the conditional probabilities of a red giant, white dwarf and main sequence star by , and . Their interval widths areIntegration over the uniform distribution of age gives the individual-star fractionsThe systems form a coeval binary population: the two binary star components have the same age. Their masses are independent, so has uniform probability density function on and their states have conditional independence given . Unconditional independence of their states would be incorrect: older systems make both evolved states more likely. The law of total probability now givesThe subtraction removes the double counting of systems containing two red giants.

