Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 1 5J Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 1 ii Solution Created 2026-10-03 Updated 2026-10-07
It suffices to prove the assertion after replacing by : that replacement gives a tighter interval. Thus assume and , and putAt , let count isolated vertices in . The same indicator random variable calculation as for all isolated vertices givesBy the Chebyshev inequality, with high probability. Since eventually, the marked vertices are then not all connected.
At , the logarithmic-regime giant component result applies with and any fixed . Its unique giant component misses vertices. On the event that it misses at most twice that number, exchangeability makes the missed vertex set uniform conditional on its size. A union bound therefore givesThus all of is connected at with high probability.
For the uniform random graph process, assign uniform labels to the edges of the complete graph as independent random variables and reveal them in label order. The binomial random graph is the prefix containing the labels at most , where has a binomial distribution with parameters and . Its variance at is , whereas the gap between and the relevant endpoint is . The Chebyshev inequality gives and with high probability, with harmless integer rounding. The monotone graph property that all marked vertices are connected now impliesThe marked-set connectivity threshold is lower than the threshold for connecting every vertex, because only about specified vertices need to avoid the small graph components.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 2 ii Solution Created 2026-10-03 Updated 2026-10-07
If some choice produced a graph with largest component of a graph smaller than , the balanced component cut result with packing parameter one would give an empty graph cut whose sides both have at least vertices. For any fixed such vertex set partition, a uniform edge of the complete graph crosses with probabilityTo avoid crossing in row , at least one of its offered edges must be noncrossing. The row's probability is . The rows consist of independent random variables, so at a union bound over at most vertex set partitions givesFor example, the positive integermakes this bound at most . Therefore every choice has a component of order at least , with probability tending to one. The simultaneous giant for fixed random-edge choice estimate includes choices made after seeing the entire array; it does not assume a particular online selection rule.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 3 i Solution Created 2026-10-03 Updated 2026-10-07
Assume , as required for this nontrivial subcritical binomial random graph. Put . A breadth-first exploration of a binomial random graph is dominated by a Galton-Watson process whose offspring counts are independent random variables with law . If its total progeny is at least , the first offspring counts sum to at least . Their moment-generating function is bounded by that of a Poisson distribution of mean . The exponential Markov inequality, optimized at , yieldsTaking for any fixed , a union bound over all starting vertices gives .
For the matching lower bound, let count tree components of order . The tree-component expectation in the Erdős-Rényi model is exactlyFor , the Stirling formula givesChoose , with . Then . Distinct overlapping vertex sets cannot both be graph components. For disjoint sets, the joint probability differs from the product only because the between-set edges were counted twice as absent. ThusIt follows that . The second moment method gives with high probability. Combining both bounds, and then taking arbitrarily small fixed , proves the sharp subcritical largest-component scaleFinally the Taylor expansion of gives . The endpoint has no edges and is excluded from this logarithmic asymptotic.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 1 a Solution Created 2026-10-03 Updated 2026-10-07
Use the normal linear modelHere is the response random vector, is the known design matrix, contains the unknown regression coefficients, and is the common error variance. Conditional on , the errors have normal distributions and are independent random variables. Require for identifiability of and invertibility of . Usually is needed to estimate the error variance from the regression residuals. An intercept, when included, is represented by a column of ones in .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 2 b Solution Created 2026-10-03 Updated 2026-10-07
Group means are independent random variables with normal distributionsThe resulting univariate sampling distributions areThe same variance calculation holds for every , since the difference involves two independent group means. Therefore the standard errors satisfyReplacing by a common estimated error standard deviation preserves this ratio. Although the individual group means are independent, the contrasts share the baseline mean and have covariance for distinct .
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 37 1 i Solution Created 2026-10-03 Updated 2026-10-07
A loss network models calls that need several resources simultaneously and are rejected, rather than queued, when insufficient capacity remains. Take finite resource and route sets. Let be the integer amount of resource required by a route- call, its capacity, andUnder fixed routing, each arriving call has a predetermined resource requirement. Take independent Poisson processes of rates and independent holding times with exponential distribution of rates . A feasible arrival changes to at rate ; a departure changes it to at rate . Put and assume each route uses a finite positive-capacity resource, so the state space is finite.
The product-form stationary distribution of a loss network isFor any feasible adjacent pair,These detailed balance equations prove stationarity and make the process a reversible Markov chain. Equivalently, Independent random variables with Poisson distributions of means are conditioned on satisfying the joint capacity constraints. The conditioning makes resource occupancies dependent even though the unconstrained counts are independent.
By Poisson arrivals see time averages, a route- arrival sees acceptance probability , interpreting the numerator as zero for a negative capacity. Hence its blocking probability is and the expected value of its number in service is . This connects a stationary occupancy law to observable rejection and carried traffic.
The insensitivity of loss networks extends this occupancy formula to independent general holding-time distributions with the same expected values, under the usual fixed resource requirements and admission rule. Counts alone then need not be a Markov chain; residual holding times belong in a Markov description. The invariant occupancy formula survives. This is useful because detailed call-duration distributions can be difficult to estimate, while their means are much easier to measure.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 37 3 Solution Created 2026-10-03 Updated 2026-10-07
In the slotted ALOHA model, a station retains one packet until it successfully transmits. Conditional on , take fresh independent trials with a Bernoulli distribution of parameter for the backlogged stations. Let arrivals be independent across slots and independent of these trials, with Poisson distribution of mean . New arrivals join the next slot's backlog. An idle slot serves nobody, exactly one attempt serves one packet, and a collision serves nobody. Consequently the backlog changes by arrivals minus the success indicator.
Under these independence assumptions, is a time-homogeneous Markov chain: the feedback probabilities and the independent arrival law depend only on its current state. Merely specifying Poisson arrival marginals would not suffice. For example, take , , , and arrivals , , for independent random variables with Poisson distributions. Histories with and both have current backlog two, but the next backlog is respectively two and four. The usual model therefore includes fresh arrivals as an assumption.
Write and . Set for , and use their exact binomial distribution probabilities at . Away from the clipping boundary, the conditional drifts areNear , the latter must use for each update , rather than itself.
When both coordinates are large with , the Poisson limit theorem approximates the attempt count, which has a binomial distribution, by a Poisson distribution of mean . Thus and . Rescaling state by and slot time by motivates the fluid approximation of slotted ALOHAThis is an interior fluid approximation of slotted ALOHA, not the exact conditional drift at a clipped boundary.
Here is one explicit set of sufficient conditions, independent of the arrival rate within the subcritical range:Put . ThenHence is negative below one and positive above one: the controller decreases the attempt denominator when offered contention is too small, and increases it when contention is too large.
Use the ratio time change for a homogeneous fluid model, . The equations becomeFor ,since and . Also . Therefore is negative on , and by continuity on for some . Its value at zero is , so nonnegative backlog is preserved.
The ratio remains bounded by and eventually enters : on the compact interval , its derivative is bounded above by a strictly negative number. Once inside it cannot cross upward. The bounded ratio and smooth coefficients make the transformed equations exist for all . In this region , so decreases at least exponentially in . The original time satisfies and has a finite limit ; boundedness of gives as well. Thus every nonnegative interior fluid trajectory drains to the origin in finite fluid time. At the origin the ratio equation is undefined; the usual stopped fluid trajectory is held there afterward. A state with enters the interior under the continuous limiting boundary drift ; the same argument then applies.
This proof supplies sufficient conditions, not a characterization of every stabilizing triplet. It also does not assert the positive recurrent Markov chain property of the original stochastic chain solely from the heuristic ODE.
If , the ALOHA throughput bound givesNo choice of the three feedback increments can make this fluid backlog drain, since . For the displayed controller, the supercritical fluid trajectory is global and grows instead of draining. At the ray consists of stationary fluid states, explaining why the strict load inequality matters.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 12 1 ii Solution Created 2026-10-03 Updated 2026-10-06
Write and let be the triangle count in a binomial random graph. For every three-element set of vertices, let be the indicator random variable that its three edges are present. ThenFor two distinct triples , their indicator random variables are independent random variables unless they share an edge. Sharing just one vertex still leaves the sets of relevant edges disjoint. If they share an edge, their union has five edges, and thereforeThere are unordered pairs of distinct triangles in a graph sharing an edge: choose that edge, and then choose their two additional vertices. The variance of a sum consequently gives the exact formulaFor sufficiently large , the hypothesis ensures , so . Dropping negative terms and simplifying the binomial coefficients,Here as well. The event implies . Applying the Chebyshev inequality from part (i) gives the requested conclusion:Thus the triangle count is concentrated around its expectation throughout this range of the binomial random graph.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 34 1 Solution 2026-10-06
Write and . For the random sum of independent claims, conditioning on givesThe law of total expectation and the law of total variance therefore give the aggregate momentsThe first term in the variance measures variation of the individual claims at a fixed count; the second measures variation of the count itself. These formulas require the indicated moments to be finite.
For the moment-generating function, independent random variables givewhere is the probability generating function. This identity holds wherever the expectations are finite; in particular a moment-generating function need not exist for positive for an arbitrary positive claim distribution. The empty sum for is zero.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 36 3 Solution Created 2026-10-03 Updated 2026-10-06
The Hoeffding inequality states that if are independent random variables with almost surely, then for The same bound holds for the lower tail. Consequently the two-sided tail is at most twice this bound. When all ranges have length zero, the sum is deterministic and every positive tail probability is zero.
We construct an exponential packing of a Hamming cube. Choose an inclusion-maximal separated set in with separation at least for the Hamming distance. It exists by a finite greedy procedure: keep adding any vertex at distance at least from all selected vertices until none remains. By maximality, every vertex is within distance strictly less than of some member of . This is the principle that maximal separated sets give covers.
For a uniformly random vertex and any fixed vertex , the mismatch indicators in different coordinates are independent Bernoulli random variables with success probability . Hence has the binomial distribution with parameters . The lower-tail Hoeffding inequality givesThus the Hoeffding lower-tail bound for Hamming balls shows that every strict-radius ball has at most vertices. Using a strict ball handles noninteger without changing the required separation.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 1 a i Solution Created 2026-10-03 Updated 2026-10-06
A stationary causal time series exists. The infinite moving-average representationconverges in the sense of mean-square convergence because the driving variables are independent random variables and . Shifting the series gives . Its expected value is zero and its autocovariance isThus it is a weakly stationary process; since the driving variables have a normal distribution, it is also a Gaussian process and a strictly stationary process. Throughout the stationarity discussion, take ; degenerate zero noise permits trivial constant solutions.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 4 c ii Solution Created 2026-10-03 Updated 2026-10-06
The Box-Muller transform uses independent uniforms to setThe radius has the unit Rayleigh distribution, with density for , and the angle is independently uniform on . Their joint density is . The Cartesian change of variables has absolute Jacobian determinant , so the joint density of isThe factorization proves that the outputs are independent random variables, each with a standard normal distribution.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 2 4F Solution Created 2026-09-24 Updated 2026-10-06
The moment-generating function of a random variable is , at the real values of for which that expectation is finite. For a standard normal distribution variable , combining the exponentials in its probability density function yieldsThe last equality follows by scaling the Gaussian integral. The variables are independent random variables, so the expectation of their product factorizes. ThereforeThis is the moment-generating function of a chi-squared distribution with degrees of freedom. For positive the defining integral diverges at and above .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 112 3 ii Solution Created 2026-10-03 Updated 2026-10-06
Interpret as the length of a shortest Euclidean travelling salesman tour, and take the points to be independent random variables with the uniform distribution on the square. We assume ; a closed tour on one point has length zero, so the printed lower bound would be false for . For two points the closed tour traverses the joining segment twice.
For the deterministic upper bound, use the following precise geometric result, the squared edge bound for tours in the unit square: every finite set of points in admits a cyclic ordering such thatHere is a proof of that geometric result. First consider a right triangle with hypotenuse endpoints , hypotenuse length , and right-angle vertex . The quadratic path bound in a right triangle supplies a path from to through any finite set inside the triangle whose sum of squared edge lengths is at most . For an empty set use the edge . For a single point , use : the triangle lies in the disk with diameter , so and the law of cosines gives .
For several points, draw the altitude from to the hypotenuse. It splits the triangle into two smaller right triangles with hypotenuses and . Their squared hypotenuse lengths sum to by the Pythagorean theorem. Repeated altitude subdivision eventually makes every cell small enough to contain at most one of the given distinct points: each child is similar to the original triangle and its diameter contracts by at most the fixed factor . Construct the base-case paths and combine them from the bottom of this finite subdivision tree. The two child paths concatenate at . If is an auxiliary point, delete it by joining its two neighbours directly. Both neighbours lie in the right-angle sector of the parent triangle at , so their angle at is at most . The law of cosines now shows that this shortcut does not increase the sum of squared edge lengths. The combined path still has endpoints and squared cost at most .
One can first put the given points in generic positions, avoiding subdivision boundaries, and then pass to a limit. There are only finitely many possible visiting orders, so a subsequence keeps the same order and its squared cost converges; this also handles coincident locations. No assumption about a minimum separation remains in the result.
Split the square along a diagonal . Apply the triangle result in each half, following one path from to and the other back to . Each half contributes at most . Remove either diagonal endpoint if it was auxiliary. At a square corner all neighbours lie in a sector of angle , so the same squared-cost shortcut applies. This gives the asserted cyclic ordering with total squared cost at most four. It does not assert that the tour minimizing ordinary length itself has this squared-edge property. The Cauchy-Schwarz inequality applied to the tour supplied by the theorem provesThus the upper bound is deterministic, independently of the sampling law.
For the lower bound, put , the nearest neighbour distance at . Both edges incident to in any closed tour have length at least . Summing over vertices and then dividing by two gives . Conditional on , the union bound and the uniform distribution giveBoundary clipping only makes the ball smaller. Apply the layer-cake representation of the expected value, restricting the integral to :Linearity of the expected value now yieldsThe unspecified sampling phrase in the paper must therefore be understood as independent uniform sampling: an arbitrary distribution concentrated in a tiny region cannot satisfy this lower bound.
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 208 4 a Solution Created 2026-10-03 Updated 2026-10-06
Draw independent uniformly on , and setThis is the Box-Muller transform. The endpoint has probability zero; an implementation should avoid evaluating its logarithm.
For , , so has density . It is independent of the angle, which has a uniform distribution on , and their joint density is . Transforming to Cartesian coordinates divides by the polar-coordinate Jacobian , yieldingThus the outputs are independent random variables with the standard normal distribution, proving the algorithm.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 4 b Solution Created 2026-10-03 Updated 2026-10-06
Let , and write for the standard normal distribution density. For importance sampling, choose the proposal density , namely the uniform distribution on the target interval. Its importance sampling weight isFor iid uniform draws ,is an unbiased estimator of the target mean, since its expectation integrates . If one chooses not to evaluate , the self-normalized importance sampling alternative has statistical consistency, but generally is not an unbiased estimator.
Alternatively, draw independent random variables with the standard normal distribution, let and , and useConditionally on , the retained draws are iid from the truncated normal distribution, so their average is an unbiased estimator with variance , where is its variance. If the ratio is undefined; one can continue drawing until a prescribed number of retained observations is obtained.
Here importance sampling uses every draw inside the interval, whereas only of the normal proposals are retained. The advantage can also be quantified. Integration using givesFor uniform importance sampling,For the retained-draw ratio with a fixed total proposal budget, its asymptotic variance coefficient is . Thus this importance choice has substantially smaller error for the same proposal count; it also avoids wasting about two thirds of the standard normal distribution draws. This comparison is specific to this well-matched importance sampling proposal; arbitrary proposal choices do not share this guarantee.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 5 c Solution Created 2026-10-03 Updated 2026-10-06
On , the exponential proposal is the proper density ; its integral is . The word “improper” in the question is therefore not applicable on its stated positive support.
The target-to-proposal ratio isIts maximum occurs at , so the smallest valid envelope constant isOne implementation draws and accepts it when , for independent random variables with the uniform distribution on . Accepted observations have the positive half-normal density by the usual rejection sampling calculation.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 6 d Solution Created 2026-10-03 Updated 2026-10-06
Use the ergodic theorem for a positive Harris recurrent Markov chain: for an invariant distribution and an integrable function , the time average converges almost surely to under the usual ergodicity conditions. This is the relevant theorem for correlated Metropolis–Hastings algorithm output, rather than the strong law of large numbers. Here is integrable. Indeed, puttingwe have , which bounds the unnormalized density by a constant times an integrable Gaussian density and also gives finite first moments.
For a proposal scale , initialize anywhere in . At each step draw independent random variables with the standard normal distribution and an independent uniform , propose , and accept whenOtherwise set . The normal proposal is symmetric, so its density cancels; the target normalizing constant also cancels. Include every state in the average, including repeated states after rejection. The ergodic theorem for a positive Harris recurrent Markov chain then givesA fixed discarded initial segment does not change this limit.
Small proposal variance gives high acceptance but tiny moves and strong serial dependence. Large variance gives more ambitious moves, but many proposals enter very low-density regions and are rejected, creating long runs at one state. An intermediate scale should be assessed by exploration and effective sample size of a Markov chain, not acceptance rate alone.
This density has two modes, at and their interchange. To see this, stationary points satisfy , implying either or . The unequal solutions have and are local minima of ; the equal solution is a saddle. Mode switching is therefore a material part of proposal-scale selection: a chain confined to one mode can have high acceptance and a misleading finite-run estimate.
Two modes of the quartic target density, with the diagonal saddle between them, explaining slow mode switching in random-walk Metropolis-Hastings
. 