Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 33 6 c Solution Created 2026-10-03 Updated 2026-10-07
For the simple symmetric random walk, the increments have mean and variance . Use the polygonal interpolation from (b). The maximum functional is Lipschitz in the supremum norm, sinceEach interpolating segment is linear, so its maximum occurs at a grid endpoint. The continuous mapping theorem applied to the Donsker invariance principle givesThe limiting maximum has no atom at by the Brownian reflection principle, so the closed-tail probabilities converge at this threshold. Including does not change the event because . Therefore the random-walk maximum limit from Donsker invariance isHere is the standard normal distribution function. The normalization and the positive-threshold condition are those in the PDF; the TeX aid's is not the printed expression.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 67 1 a Solution Created 2026-10-03 Updated 2026-10-07
Cyclic periodicity on implies that the least positive period divides : the shifts preserving the function form a subgroup of the cyclic group. Injectivity within one period says that distinct residue classes modulo have distinct function values. Write .
Prepare the uniform superposition state by applying the quantum Fourier transform to , and evaluate reversibly into a second quantum register. This is efficient because the given classical Boolean circuit can be converted into a reversible circuit, with its workspace cleaned by uncomputation. The resulting quantum state isMeasuring the function quantum register leaves a uniform coset state for some . The amplitude at after a quantum Fourier transform isThe finite geometric series is zero unless is a multiple of , and then equals . Thus a computational-basis measurement produces a uniform Fourier sampleThe exact period recovery from a Fourier sample computesA greatest common divisor is computable in time polynomial in . The candidate is always a divisor of the true period, and equals it precisely when is coprime to .
For the success flag, compute and compare with . If , injectivity within the first period makes these unequal. If , periodicity makes them equal, including . Hence accept and output exactly when this comparison succeeds; otherwise report failure. This is heralded exact quantum period finding when the period divides the register size, with no false acceptance. The case succeeds even on the sample .
The exact success probability iswhere is the Euler totient function. For , the prime-product formula gives . A Rosser–Schoenfeld totient bound supplies the needed lower bound for large . Every single attempt, including verification, has the assumed polynomial-in- gate cost. Repeating times gives constant success probability with a certified result whenever one is found.
The printed in the totient hint should be a lower-bound statement, . Literally, is false: at primes , . Likewise the exact single-sample success probability need not be ; for prime period it tends to one. The useful intended guarantee is the displayed inverse-log-log lower bound, not a universal upper bound. If an algorithm satisfying the literal success upper bound is desired, one can additionally accept an otherwise certified run only when independent fair bits are all zero. This retains a detectable failure flag and polynomial runtime, and has success at most , but deliberately weakens the useful guarantee. The standard unsuppressed algorithm above gives the stronger intended performance. Small can be handled directly. Primary evidence for the totient lower bound is Theorem 15, equations (3.41)–(3.42), in denisevellachemla.eu/Rosser-Schoenfeld-1962.pdf .
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 67 2 a Solution Created 2026-10-03 Updated 2026-10-07
Use the bit-query Boolean quantum oracle , where denotes workspace. Initially every probability amplitude is independent of , hence is a constant polynomial. An input-independent unitary gate only forms linear combinations of probability amplitudes, so it does not increase their polynomial degree.
If is an amplitude before a query, its new value isOne query increases polynomial degree by at most one. Inductively, after queries each amplitude has polynomial degree at most . The acceptance probability is a sum of squared absolute values of the accepting amplitudes, so it is a real polynomial of degree at most . Intermediate quantum measurements and classical adaptation can be retained coherently, or handled by summing unnormalized branch probabilities; either approach yields the same degree bound.
An exact algorithm has acceptance probability precisely at every Boolean input. The multilinear reduction on the Boolean cube replaces positive powers of each by , preserving these values without increasing polynomial degree. Therefore the polynomial method for quantum query lower bounds givesHere is the degree of the unique multilinear polynomial representing the Boolean function, and is its exact quantum query complexity. Uniqueness follows, for example, by evaluating successively on the indicator vectors of subsets: the value on a subset determines its coefficient once all smaller-subset coefficients are known.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 82 4 Solution Created 2026-10-03 Updated 2026-10-14
Use the uniform probability measure on the Boolean hypercube. The influence of a variable is the flip probabilityThe polynomial defining is interpreted over . Flipping the first coordinate adds modulo two. This nonempty parity is balanced for , so
An explicit Tribes function works for every . Choose the largest integer with , let , and take the OR of disjoint ANDs of coordinates. Ignore the unused coordinates. Its zero probability is , between and , and a used coordinate has influenceHere by maximality. For the balance claim, gives probability ; for , gives zero probability at most , while for gives a lower bound . Only the example was requested, but these checks fix its parameters unambiguously.
For the lower bound we prove the required consequence of Beckner's inequality with constants. Write the Fourier-Walsh transform as , where and . The discrete derivative of a Boolean function is . Since takes values zero and one, takes values . Consequently Parseval's identity givesThe factor four is required for the printed convention. Also under the balance hypothesis.
The true Beckner's inequality states for , , with . Apply it with , , to , a function independent of coordinate . Its nonzero values still have magnitude . We obtainLet . For an integer , the low-degree Fourier weight satisfiesFor the high-degree part the total influence identity givesTogether these imply .
Suppose, seeking a contradiction, that , with natural logarithms. Then and . Hence . Put . The first term on the right is bounded bythe middle expression is maximized at . Moreover , since . ThusWe would have , contradicting . ThereforeThis derives the stated Kahn-Kalai-Linial theorem bound from the actual noise operator on the Boolean hypercube inequality, rather than using the desired conclusion as an input.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 82 6 Solution Created 2026-10-03 Updated 2026-10-14
Use a Boolean circuit of unbounded-fan-in AND and OR gates, with negations pushed to the input Boolean literals. Its circuit depth is the largest number of AND/OR gates on an input-to-output path, and its circuit size counts these gates. Constants and Boolean literals may be supplied as inputs. Equivalent standard size conventions only enlarge the absolute constants. One can merge adjacent gates of the same type; the depth-reduction argument below keeps the two possible normal forms available at each gate.
A random restriction with parameter independently leaves each variable live with probability and otherwise fixes it to zero or one with probability each. The Håstad switching lemma states that for a width- DNF or conjunctive normal form ,Width bounds Boolean literals in a term or clause, not the number of terms. A decision tree of depth at most has both a DNF and a conjunctive normal form of width at most and has real multilinear degree at most . Indeed every leaf condition is a product of at most factors or ; sum the accepting leaves. The switching lemma controls the canonical decision tree, hence implies this representation bound.
We detail the Boolean circuit simplification parameters. First use a -random restriction. For a bottom AND gate, let count its live Boolean literals on the event that no fixed Boolean literal kills it. For distinct Boolean literals,Thus the probability of retaining more than live Boolean literals without becoming constant is at most . The same calculation applies to bottom OR gates, with the opposite killing value. Repeated Boolean literals are removed and contradictory Boolean literals make a constant gate. A union bound makes all nonconstant bottom gates width at most , except with probability at most .
Now apply successive restrictions, each retaining probability of the remaining variables. At a two-layer gate, the current bottom forms are width- DNFs or conjunctive normal forms. The Håstad switching lemma bounds its probability of failing to reduce to decision-tree depth at most by . Convert the successful decision tree into the opposite normal form, whose terms or clauses have width at most , and merge its outer gate with the adjacent gate of the same type. This removes one layer. Repeat upwards until the output has a depth- decision tree.
The bookkeeping matters: although a decision tree may give clauses, each subsequent switching event is charged to the corresponding original Boolean circuit gate, not to each newly created clause. The lemma permits any number of terms. Each original gate is charged once, so the sum of the failure probabilities is at most , without an extra exponential size factor. Conditioning on successful preceding stages is harmless because each next restriction is fresh and the width bound holds for every preceding success. For a general Boolean circuit the conjunctive normal form or DNF representation at a shared gate can be chosen separately for each outgoing use; no extra gates need to be counted as switching targets.
The composed restriction has live-variable probabilityFixed values are still unbiased and coordinates independent. We have proved the useful intermediate estimateFor , the initial bottom-gate argument alone gives this conclusion. This is a depth-reduction estimate, not the desired Fourier-tail theorem used as a black box.
Next derive exactly how restrictions affect the Fourier-Walsh transform. Let be the random live set and the fixed assignment outside . With , the restricted coefficient at isOrthogonality of the fixed-coordinate characters eliminates cross terms after averaging over . Thereforeand then averaging over gives the expected Fourier weight after a random restriction identityThe original high-degree tail is not preserved: each original coefficient is weighted by a binomial distribution survival probability. On successful restrictions the left-hand tail vanishes; on failures it is at most one by Parseval's identity and . Hence its expectation is at most .
Put . If , choose and the preceding value of . For every , the binomial distribution mean satisfiesIts variance is at most . The Chebyshev inequality givesThus the exact expectation identity bounds at least half the original tail above , andWhen the same bound follows from the trivial total-weight bound . We obtain explicit absolute constants,This supplies the requested overview of the Linial-Mansour-Nisan theorem with the actual switching scale, gate-count bookkeeping and restriction-to-Fourier calculation. The argument uses the unbounded-fan-in AND/OR Boolean circuit basis; allowing arbitrary gates would make the theorem false, since one parity gate could have all its nonconstant Fourier weight at level . The original theorem is Linial, Mansour and Nisan's circuit Fourier bound.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 1 i Solution Created 2026-10-03 Updated 2026-10-07
Put and . The hypothesis implies . For the number of isolated vertices, the isolated vertices in the Erdős-Rényi model formulas giveThus the Chebyshev inequality gives with high probability, uniformly over the specified range.
The Cayley formula supplies a spanning tree on any connected vertex set. Consequently the expected value of the number of graph components of order is bounded byChoose a fixed with . For , with , the binomial coefficient bound givesHere . The geometric series and a union bound therefore exclude this entire size range, since . For , an empty graph cut would be necessary. Its total probability is at mostThere are consequently no graph components of orders between and , with high probability.
For each fixed , a graph component containing a graph cycle has a spanning tree and at least one extra edge. Counting that extra edge gives an expected value ; hence every small graph component is a tree component. The total number of vertices in tree components of orders satisfiesThe Markov inequality gives with high probability. When , this sum is empty and . Since , the remaining vertices must lie in one graph component larger than . It is unique, and its order is . Every other graph component is a tree with at most vertices. This is the logarithmic-regime giant component mechanism: almost all missing vertices are isolated.
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 ii Solution Created 2026-10-03 Updated 2026-10-07
The function is strictly increasing on and strictly decreasing on . Hence for each there is a unique with .
Apply the subcritical component estimates to . For a specified vertex, the exact tree-component expectation in the Erdős-Rényi model gives the limiting probability that it lies in a tree component of order :For each fixed , the probability of a non-tree graph component of that size is : a spanning tree and one extra edge are necessary. Moreover the Galton-Watson process exploration estimate from the preceding proof bounds the probability of order greater than by , uniformly in , where . First let for fixed , then let . No probability mass escapes to large components or non-tree components, so . Multiplying by and using its defining identity givesEquivalently, the rooted-tree generating function selects the smaller solution of . The choice of that branch is essential; the larger solution is not the value of this convergent series.
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 2012 iii Paper 9 5 ii Solution Created 2026-10-03 Updated 2026-10-07
The persistence of unsampled graph components prevents the mass from each size band from disappearing entirely before . More precisely, a band containing at least vertices retains at least vertices in that same band after at most steps, with high probability, for a fixed depending only on . To see why, each initial graph component in that band has a fixed positive probability that none of the offered edge endpoints touches it during the interval. Such a graph component remains unchanged regardless of the selection rule. The McDiarmid inequality concentrates the total mass of these untouched graph components. The reusable lemma supplies the full uniform-in-starting-time argument, including the version that samples absent edges.
Choose finitely many disjoint bands , , with . Part (i) provides at least vertices in band at its time . Each interval from that time to has length at most , so persistence leaves at least vertices in every one of these disjoint bands at the common time . A union bound over this fixed finite number of bands makes all the conclusions simultaneous. Their total exceeds , a contradiction. No fixed two-choice Achlioptas rule satisfies the explosive percolation hypothesis.
This continuity of fixed-choice percolation is the fixed-choice obstruction proved by Riordan and Warnke; their original research paper also treats a broader class of rules. The argument here does not apply when the number of offered choices grows with .
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 9 5 i Solution Created 2026-10-03 Updated 2026-10-07
Use the standard Achlioptas process with two independent uniform candidate edges per step and a rule choosing one. The component-band vertex count counts vertices, not the number of graph components. Integer time rounding changes the arguments below by steps.
First, at the eventual graph component of order at least is assembled from graph components already present at . Contract those initial graph components. During steps, at most new edges are added, so the eventual connected contracted graph contains at most initial graph components. Initial graph components of order less than can therefore contribute at mostvertices, for sufficiently large and fixed , since . For their contribution is zero. Consequently .
We now use forced merging of large components. If at a time the graph components of order at least contain at least vertices, then after at most steps there is a graph component of order at least , except on an event of probability exponentially small in . One explicit choice is . The proof is a union bound over set partitions of the at most initial large graph components: if all final graph components were small, a balanced component cut would split their initial vertices into sets of size at least , and both candidate edges cross that fixed cut with probability at least in every step. The rule cannot avoid such a forced crossing. The failure bound is , and a union bound makes the estimate simultaneous over all starting times at most , for each fixed .
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 10F Solution Created 2026-09-24 Updated 2026-10-07
For the probability generating function , differentiation givesThe second derivative is a factorial moment, not the raw second moment.
In the Galton-Watson process, condition on . The next generation is a sum of independent offspring counts, and so its conditional generating function is . Averaging over givesThe conditional mean is and the conditional variance is . Thus iterated expectation gives from one ancestor, and the law of total variance gives , . Iterating yields the branching-process generation momentsFor the critical case , the correct limiting value is . If , nonnegative offspring are zero almost surely, so every later generation has zero mean and variance; handle this directly rather than use an ambiguous zero power. At generation zero the mean is one and variance zero.
The branching-process extinction criterion states that extinction probability is the smallest fixed point of in : probabilities of extinction by successive generations are the iterates of from zero, increasing to that fixed point. Here the equation is , factoring as . The two admissible roots are and one, so
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 11F Solution Created 2026-09-24 Updated 2026-10-07
Use the positive-support geometric distribution, for , . Differentiating the geometric series suppliesFor the jar, let be the waiting time to remove one red ball when exactly red balls remain. Every draw has success probability , so is geometric with that parameter. The are independent: after each success, fresh independent draws begin a new stage, and its conditional waiting distribution depends only on the deterministic count , not on earlier waiting times. Replacing a green ball leaves that stage's count unchanged.
Thus the coupon collector problem decomposition is , andThis is the coupon collector waiting-time variance. For , the formula correctly gives zero variance and a deterministic one-minute completion.
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 12F a Solution Created 2026-09-24 Updated 2026-10-14
Let mean that the selected coin is biased and that it is fair. Both have prior probability . Conditional on either coin, tosses are independent. For the observed head count, the two binomial distribution likelihoods are and . Bayes' theorem cancels the common coefficient and equal prior weights, givingThis applies for , including endpoint coin biases with zero-power factors interpreted by the corresponding likelihood. The fair-coin likelihood is positive, so the denominator cannot vanish.
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 4F ii Solution Created 2026-09-24 Updated 2026-10-07
The Poisson distribution with unit parameter has mass . Its moment-generating function isFor an integer , multiply the exponential probability bound by to obtain . The exponent is minimized at , hence , including when . Consequently
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 9F Solution Created 2026-09-24 Updated 2026-10-07
The exponential distribution has survival probability for . Conditional probability therefore giveswhich proves the memoryless property. Let and . With ,The geometric distribution here starts at zero. Summing its first moment givesFor , sum the density over all integer translates:with zero density outside that interval. The integer and fractional parts of an exponential variable are independent, because for every integer and measurable ,This factorization proves independence of the discrete and continuous components, beyond just checking their separate marginals.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 28 1 b ii Solution Created 2026-10-03 Updated 2026-10-07
The exponential distribution with rate has moment-generating function for . Shifting it by multiplies the moment-generating function by . Therefore the shifted-exponential Poisson mixture has probability generating functionThe probability generating function converges and is analytic for , and in particular is finite for real .
Write and , so . The factor is the probability generating function of , while is that of a geometric distribution on , with . Choose and independently. The product rule for the probability generating function of a sum of independent counts then proves . The support-zero convention for is essential here.
The convolution of independent random variables gives the finite sumTaking the logarithmic derivative of the probability generating function givesCompare coefficients of , for . The left side is , and the right side is . Hence the shifted-exponential Poisson count recursion isThe constant and linear coefficients supply the starting valuesThese two values determine every subsequent probability by the recursion. The negative second term does not mean that the distribution has negative probabilities: the convolution formula exhibits every as a sum of nonnegative quantities.
At the independent Poisson distribution component is identically zero and the count has a geometric distribution. Both the finite sum and the recursion reduce to . Consequently the Panjer claim-count class parameters areAlthough the shifted model initially has positive , this zero-shift boundary case is well defined.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 5 a i Solution Created 2026-10-03 Updated 2026-10-07
Observed heterogeneity is variation in outcome propensities explained by measured covariates, such as age or sex. In logistic regression, subjects with different recorded predictor values may have different success probabilities, even before allowing for their previous outcomes. This is heterogeneity visible through observed predictors.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 5 b i Solution Created 2026-10-03 Updated 2026-10-07
Let indicate a smoking-free week, the recorded sex indicator, age in years and assigned treatment. The screening history supplies ; earlier lag initializations are also zero. A history-dependent logistic regression for the first model isHere , is the observed past, and the five unknown regression coefficients have time-invariant values. Conditional on baseline covariates, this model has the first-order Markov property: only the immediately preceding outcome enters the current conditional probability. Distinct subjects have independent histories. There is no subject random effect or additional time trend in this fit.
Using the chain rule for probabilities, the individual conditional likelihood isThe lagged values in are the individual's actual preceding outcomes. This product is a sequential conditional likelihood, not an assertion of unconditional independence of the ten readings. The full conditional likelihood is ; no extra Bernoulli distribution factor is attached to the fixed screening history.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 30 5 b iv Solution Created 2026-10-03 Updated 2026-10-07
The preferred cumulative-response logistic model estimatesIts logit link describes conditional smoking-free probability given baseline predictors and prior successful weeks. Holding the other predictors fixed, males have times the female success odds; the reported p-value is , and the approximate 95% odds ratio confidence interval is . Age has estimated odds ratio per additional year, with p-value , giving little evidence for an age association in this fit.
The combined treatment has conditional success odds ratio versus the reference treatment, with approximate 95% confidence interval and p-value . The fitted conditional odds are about 39% higher for the combined treatment. The trial randomization supports treatment comparisons, but conditioning on accumulated post-treatment outcomes means this coefficient is not directly the marginal total treatment effect.
Each previous successful week multiplies current success odds by , with approximate 95% confidence interval and very small p-value . This is strong fitted persistence. It can reflect true state dependence, unobserved heterogeneity, or an omitted calendar-time trend; this fit alone cannot distinguish them. The baseline intercept implies success probability for a reference-treatment female aged zero with no previous success. That age is outside the study's useful interpretation range, so the intercept chiefly anchors the regression. The Bernoulli distribution dispersion parameter is fixed at one, and the residual binomial deviance is 1122 on 995 statistical degrees of freedom. With individual binary outcomes, comparing that binomial deviance mechanically to a chi-squared distribution is not a reliable general goodness-of-fit test.