Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 1 17H b i Solution Created 2026-09-24 Updated 2026-10-03
Write as a sum of indicator random variable. Indicators for two distinct copies are independent when the copies share at most one vertex, since their edge sets are then disjoint. Pairs sharing two vertices have eleven edges in their union, while pairs sharing three have nine. It follows thatThus . By the second moment method, in probability, so . This is the sparse clique-count concentration estimate.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 1 30K d Solution Created 2026-09-24 Updated 2026-09-25
Condition on the information available before time . The current wealth is then fixed, while is independent of that information. PutFor any portfolio , use the inner product induced by the positive-definite matrix to writeThe linear image of a multivariate normal vector shows that the two portfolio returns are jointly normal, andThus independence of uncorrelated jointly normal variables makes the residual return independent of the aligned return; it also has expected value zero.
The continuation value is concave by part (c). Conditional Jensen inequality therefore shows that adding the independent centered residual cannot improve the objective:where . Since the optimal portfolio is unique, its residual must be zero.
It remains to determine the sign. If , the portfolios and have the same return variance, namely , while their means are and . The latter return has the distribution of the former plus the positive constant . Since is increasing, replacing by cannot reduce the objective, contradicting uniqueness. Hence .
Applying this conditional argument at every time gives nonnegative, past-measurable random variables such thatThis is the Gaussian one-fund theorem.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 1 3I a Solution Created 2026-09-24 Updated 2026-09-25
A binary code is a prefix code when no codeword is a proper prefix of another. If the source letters have probabilities and codeword lengths , the expected value of its codeword length isIt is an optimal prefix code when it minimizes among all binary prefix codes for that source.
Suppose but . Exchanging the codewords assigned to and leaves the set of words, and hence prefix-freeness, unchanged. The change in expected length iscontradicting optimality. Thuswhich is the probability monotonicity of optimal prefix-code lengths.
Represent the code by its binary prefix tree and choose a codeword of maximal length, where . Its sibling is . If that sibling were not a codeword, it could not have a codeword below it either, since such a word would be longer than . Replacing by would then preserve prefix-freeness and strictly reduce . This is impossible for an optimal code, so is also a maximal-length codeword. The pair differs only in its last digit, proving the deepest sibling property of an optimal prefix code.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 1 6C Solution Created 2026-09-23 Updated 2026-09-25
With population , the transition diagram has the two outgoing arrowsThus this is a batch-birth linear-death process. If and for , probability enters state from by a birth and from by a death. Hence the master equation is
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 37A b Solution Created 2026-09-24 Updated 2026-09-25
The mean extension in an ensemble of molecules iswith constraints and . For occupancies , the number of assignments of the distinguishable ensemble members to the states is the multinomial coefficientThus maximizing the probability at fixed and is equivalent to maximizing the stated Lagrange multiplier expression.
Because , the Stirling formula gives . Differentiating with respect to each givesNormalization by therefore yields the probability mass functionHere is the fixed-tension partition function that normalizes the probabilities.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 37A d Solution Created 2026-09-24 Updated 2026-09-25
Substituting the fixed-tension partition function of a one-dimensional chain into the given free-energy definition givesDifferentiation with respect to the parameter conjugate to extension givesThe same result follows directly from the expected value under :Consequently
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 4 13J iii Solution Created 2026-09-24 Updated 2026-09-25
Writing for
team1_goal and for team1_xg, the first hypothesis concerns only the expected value:The second specifies the entire conditional probability distribution:with independence between matches as assumed in the question. The Poisson limit theorem, often called the law of small numbers in this setting, suggests a Poisson distribution when a goal count is the sum of many approximately independent rare scoring opportunities. Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 4 ii Solution Created 2026-09-24 Updated 2026-09-25
First suppose . Run the RP algorithm for and the RP algorithm for its complement with fresh random bits. If the first accepts, output one; if the second accepts, output zero; otherwise repeat. Neither output can be wrong, and on every input the appropriate algorithm accepts in each round with probability at least . The number of rounds is dominated by a geometric distribution of mean two, so this is an always-correct algorithm with polynomial expected running time.
Conversely, let be always correct when it halts and have expected running time at most . Run it for steps. Markov inequality givesAccept exactly when halts and outputs one; this is an RP algorithm for . Accepting exactly when it halts and outputs zero is an RP algorithm for the complement. Thereforeis equivalent to zero-error expected polynomial time.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 207 1 e ii Solution Created 2026-09-24 Updated 2026-10-03
The minimum of the recovery and death clocks has an exponential distribution with rate . Its expected value is therefore
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 1 a Solution Created 2026-09-24 Updated 2026-09-25
Write for the colony count and for the dose on plate . The first fit is the Poisson regressionThus its log-likelihood isThe Poisson deviance relative to the saturated model iswhere a summand with uses .
At dose zero the fitted expected value is eradicated colonies. Increasing dose by one unit multiplies the fitted mean by ; for example, an increase of units multiplies it by about . The positive fitted effect is small and its displayed two-sided -value, , gives little evidence against a zero dose coefficient.
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 201 5 b Solution Created 2026-09-24 Updated 2026-10-03
For , Itô formula shows thatis a martingale. Take expectations and let . The function is bounded on the compact set , while is bounded and by part (a). The dominated convergence theorem therefore gives Dynkin formula for Brownian motion
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 201 6 e Solution Created 2026-09-24 Updated 2026-10-03
Let , where and are independent Poisson processes of rate . This symmetric Poisson difference process is centered, has jumps , and has variance rate . If are positive integers, then exactly. Optional sampling of the martingale givesConsequentlyPart (d) now gives the mean exit time
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 224 4 a Solution Created 2026-09-24 Updated 2026-09-25
For , let be the geometric distributionIf is the law of , Gibbs inequality givesThereforeFor , the nonnegative random variable is zero almost surely and both sides vanish. This proves that the maximum entropy distribution on the nonnegative integers with fixed expected value is geometric.
Persistence of unsampled graph components 2026-10-07
Fix positive , and . Suppose a size band of an Achlioptas process contains at least vertices at time . For every fixed , at least of those vertices remain in unchanged graph components throughout the next steps, with high probability, where one may take . This is a deliberately nonoptimal positive constant.
For independent uniform candidate edges, an initial graph component with vertices is untouched if none of the candidate edges meets it. A uniform edge hits it with probability at most . For sufficiently large , , so the expected value of the untouched vertex mass is at least . Replacing one row of two candidate edges can change by at most , because only the initial graph components hit by an old or new endpoint can change status. The McDiarmid inequality therefore makes except on an event of probability , for a positive constant depending only on . An untouched graph component stays unchanged whichever offered edge is selected.
For candidates restricted to absent edges, generate each by an independent uniform proposal stream and reject already present edges. During any interval of steps with present edges, each proposal has rejection probability conditional on the past. The number of rejections is at most except on an event of probability smaller than any inverse power of : if there were rejections among proposals, a union bound over their positions bounds this by . The first proposals are independent and give the previous untouched-mass estimate. Extra proposals can touch at most additional initial graph components, losing only vertices for fixed . This leaves the stated bound. A union bound makes these estimates simultaneous over starting times . They hold through the entire interval, so deterministic or random stopping times within it are allowed.
Population risk 2026-09-29
The population risk of a prediction rule is its expected loss on a fresh observation from the target probability distribution.
Posterior mean Created 2026-09-24 Updated 2026-10-06
The posterior mean is the expected value of a parameter under its posterior distribution; under squared-error loss it is the Bayes estimator.
Quota share reinsurance 2026-10-06
Random sum of independent claims 2026-10-06
For independent claim sizes with common expected value and variance , independent of the nonnegative integer count , the aggregate satisfies and . Its moment-generating function is wherever finite. These identities follow from the law of total expectation and law of total variance.
Reparameterization gradient 2026-10-06
A reparameterization gradient differentiates an expected value by representing the simulated random variable as a differentiable transformation of parameter-independent noise. For , the identity requires justified differentiation under the integral sign. For a normal distribution, use with drawn from the standard normal distribution.
Retained compound Poisson aggregate 2026-10-07
Applying a measurable per-claim retention to independent claim sizes preserves the compound Poisson distribution form. The transformed severity is the pushforward measure of the original severity law. With count parameter , the retained aggregate has expected value and variance . Zero retained marks may be removed by Poisson thinning.