Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 2 a Solution Created 2026-10-03 Updated 2026-10-06
Because the scalar signal and the noise vector are independent random variables with normal distributions, their sum is a Gaussian random vector. Its expected value is zero, and the covariance matrix isThus this is a rank-one covariance spike. Each summand has expected value , so . Here the empirical matrix is an uncentered empirical second-moment matrix; because the population expected value is known to be zero, it is an unbiased estimator of the covariance matrix. The TeX's apparent factorial denominator is a transcription error.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 2 d Solution Created 2026-10-03 Updated 2026-10-06
Define . Expanding its chi-squared divergence by the second moment of a mixture likelihood ratio, and using the supplied one-observation cross moment and independence, givesHere are independent uniform members of the specified family of cyclic intervals. Their overlap does not have the hypergeometric distribution of arbitrary uniform -subsets. The family's geometry must be retained.
Let . Since and , we obtain . Taking the expected value proves the upper bound. The factor in the last exponent is present in the PDF and missing in the TeX aid.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 4 a Solution Created 2026-10-03 Updated 2026-10-06
Write on and on , and put and . Because the two groups have equal size, are orthonormal. Let and . The expected value of the adjacency matrix of a graph is . ConsequentlyBoth displayed eigenvalues are positive under the stated range of , so the first matrix has matrix rank two. The other eigenvalues are zero. The figure shows the within-group and between-group blocks of this balanced stochastic block model; itself has zero diagonal.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 4 c Solution Created 2026-10-03 Updated 2026-10-06
For partitions, the appropriate Hamming distance between unlabelled bipartitions is . It counts vertices assigned to the wrong group after the better global exchange of the two group names. The printed signed-indicator formula does not implement this exchange: negating a zero-one indicator is not taking its complement. It must be read as this partition distance, or written with the membership vectors.
Use the corrected leading eigenvector estimator from 4(b), and orient its sign to minimize . At every wrongly signed coordinate, this difference has magnitude at least . Therefore the sign rounding bound for a unit eigenvector givesThe last inequality uses the projector distance bound . Taking the expected value of this Frobenius norm estimate proves . The assertion relies on the corrected estimator and partition-distance definition.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 4 d Solution Created 2026-10-03 Updated 2026-10-06
The Kullback-Leibler divergence of a product measure is the sum of the individual divergences, by expanding the logarithm of the likelihood ratio and taking its expected value. Put and define to be the unordered pairs lying within one group, while is the set of unordered pairs crossing between groups. ThenThus choosing the printed to mean gives its order of the summands. If denotes the usual graph cut , their two orders must be interchanged. Each unordered edge is counted once.
The inequality givesSince , each changed-edge divergence is at most . Summing over at most pairs gives . This is the information scale needed for Fano's inequality.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 213 1 i Solution Created 2026-10-03 Updated 2026-10-06
An open migration process is a continuous-time Markov chain recording the populations of finitely many colonies. Independent external Poisson processes bring individuals to colony at rate . When that colony contains individuals, a departure opportunity occurs at total rate , with . The departing individual moves to colony with probability , or leaves the system with probability . Routing choices and the clocks are independent. A return to the same colony does not change the state.
The word open means that the routing matrix is transient: every individual eventually leaves, or equivalently the spectral radius of is less than one. The traffic equations of an open migration process, with row-vector convention, give the total arrival rates:These rates include migrations as well as external arrivals. On the active colonies assume and the usual irreducible Markov chain condition. PutThe product form and its normalization condition areTo establish the product-form stationary distribution of an open migration process, first use its unnormalized weight . Its ratios satisfy . The incoming external arrivals into , divided by , contribute . Incoming exits contribute . Incoming migrations from to contribute . Terms involving an empty destination are zero. Thus the full incoming rate divided by isHere the traffic equations of an open migration process give the second equality, including . The right side is precisely the total outgoing rate. This proves global balance for a continuous-time Markov chain; pairwise detailed balance is not required for general routing.
For finite rates at each finite population, the continuous-time Markov chain is nonexplosive Markov chain: its total population is bounded over a finite time interval by the initial population plus the finitely many external arrivals, so it visits a finite set on which all jump rates are bounded. Consequently finite normalize the invariant weight to a stationary distribution. Under the stated irreducible Markov chain assumptions, this is the unique stationary distribution, and it is a positive recurrent Markov chain. Conversely, the unique invariant measure of an irreducible recurrent chain is proportional to , so a positive recurrent Markov chain requires its normalization to be finite. A sufficient condition is ; the series criterion itself is the exact condition. Colonies with have zero stationary population and can be removed from the active class.
For the single-server M-M-1 queue specialization, for , each stationary colony has the geometric distribution of an M-M-1 queue:The traffic equations of an open migration process do not involve the service rates, so the remain fixed during this service-capacity allocation in an open migration process. Write , and . A stationary allocation requires , with and . The Cauchy-Schwarz inequality givesEquality holds exactly when is proportional to . Hence, for positive arrival rates, the unique optimal service allocation and the minimum expected value of the total population areIf and some arrival rate is positive, no stable service allocation exists. Zero-arrival colonies need no service in their stationary empty class: allowing zero service there gives the same formula restricted to active colonies. If strictly positive service is demanded even at inactive colonies, the displayed minimum is an infimum approached as that unused allocation tends to zero. If all arrivals vanish, the stationary mean population is zero for every allocation that drains the initial population.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 10F a Solution Created 2026-09-24 Updated 2026-10-05
Apply Markov's inequality to the nonnegative random variable , since implies :This exponential Markov bound remains true, though uninformative, when the expected value is infinite. For a standard normal distribution, completion of the square gives its moment-generating functionMinimize over positive ; the choice gives the Chernoff bound
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 11F b Solution Created 2026-09-24 Updated 2026-10-05
Let , using the supplied correlation property of the Curie–Weiss model. Since and each spin has zero expected value,Divide by to obtainThe expression assumes , as required for to exist. It makes the connection between the spin correlation and the requested conditional probability explicit.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 12F a Solution Created 2026-09-24 Updated 2026-10-05
Write and . The expected duration of symmetric gambler's ruin satisfies and, by conditioning on the first step,These expected values are finite: from any interior state, consecutive right steps ensure absorption, an event of probability at least . Blocks of steps therefore bound the survival probability by a decreasing geometric sequence. The candidate has the required boundary values and satisfies . HenceFor completeness, the difference of two solutions of this linear recurrence relation has zero second difference and is affine in ; its two zero boundary values force it to vanish.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 12F b Solution Created 2026-09-24 Updated 2026-10-05
The vertices visited by a simple symmetric random walk form an integer interval: nearest-neighbour steps cannot skip a vertex. At the stopping time , write that interval as , with . The walk is at one of its endpoints, because the th new vertex must extend the earlier interval. This also covers , when both endpoints coincide.
The Strong Markov property restarts the walk from this endpoint. Visiting a new vertex is exactly exiting , or reaching or . Translate these absorbing boundaries to . The starting point becomes either or , so the expected duration of symmetric gambler's ruin is in both cases. Taking conditional expectations and then expected values gives the expected time to expand a random-walk range:
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 3F Solution Created 2026-09-24 Updated 2026-10-05
Because is a nonnegative integer, its indicator function satisfies . Taking expected values proves the upper bound. The finite second moment also gives a finite expected value, by the Cauchy-Schwarz inequality. Applying that inequality to and givesThe assumed positive second moment permits division, yieldingThe lower bound is the basic second moment method; the upper bound also follows from Markov's inequality at threshold one. Integer-valuedness is essential for that upper bound, but not for the lower bound. For example, a constant would violate the upper bound.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 4F ii Solution Created 2026-09-24 Updated 2026-10-05
The conditional density givesusing either integration by parts or the expected value of an exponential distribution. HenceThis is a finite value for almost every realization of , but not an integrable random variable: . Since , its conditional expectation remains well-defined in the nonnegative, extended-expectation sense; the tower property of conditional expectation then gives .
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 2 9F a Solution Created 2026-09-24 Updated 2026-10-05
The binomial theorem makes the sum of the proposed probability mass function equal to ; every term is nonnegative. Realize the associated binomial distribution as , where the are independent variables with the Bernoulli distribution of parameter . Each has expected value and variance . Linearity of expectation and variance additivity for independent random variables yieldAt or this is a constant random variable; the same formulas apply, with the endpoint mass understood by continuity.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 3 16B c Solution Created 2026-09-24 Updated 2026-10-05
Use the radial exponential shown in the original PDF; the TeX's is a transcription defect. Every orbital angular momentum operator annihilates a radial function, so it acts only on . The angular momentum of a radial function times a linear polynomial is determined by its degree-one angular factor: direct application of the rotation derivatives givesEquivalently its restriction to the sphere is a degree-one spherical harmonic. ThusFurthermore . Its expected value is proportional to the integral of . The cross terms are odd in a coordinate, and the integrals of and agree by rotational symmetry. HenceThe state need not be an eigenstate of . If normalization is desired, , so ; the zero expectation holds after normalization for any nonzero initial .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 210 1 Solution Created 2026-10-03 Updated 2026-10-05
For a kernel for density estimation with integral one and a smoothing bandwidth , the univariate kernel density estimator isIts expected value isThis is the convolution identity. It holds wherever the integral is defined, in particular everywhere for the bounded kernel used below. For a nonnegative kernel for density estimation, Tonelli theorem also gives the identity as an extended nonnegative integral. A signed kernel for density estimation instead requires absolute integrability for this interchange.
For the centred unit-width uniform kernel, substitute :Put . The Taylor theorem with Lagrange remainder givesThe odd function term integrates to zero, while . Hence the bias of a kernel density estimator obeysThis is a second-order pointwise bias bound for kernel density estimation. Existence and boundedness of the second derivative suffice for the stated remainder; continuity of that derivative is not an extra assumption.
For concentration, writeThe are independent and identically distributed random variables with a Bernoulli distribution, and . The required concentration bound follows from the Hoeffding lemma. We prove its Bernoulli case directly. Withwe have and , where is the exponentially tilted success probability. Therefore for every real . If or , the centred variable is identically zero and the same bound holds directly.
Independence and the exponential form of the Markov inequality now give, for ,Choose . Applying the same argument to the lower tail and adding the probabilities proves the Hoeffding inequality
To obtain the requested variance constant, use the additional bound that a probability is at most one. Set and . The tail integral formula for moments, justified by Tonelli theorem, yieldsThusThe clipping at one is essential for this integration argument to give that constant. It is an instance of a second moment bound from a clipped Gaussian tail. The exact Bernoulli distribution calculation also gives , an even stronger bound.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 210 2 Solution Created 2026-10-03 Updated 2026-10-05
Choose a Borel measurable function version of the posterior success probability . Conditional on , predicting zero has error probability and predicting one has error probability . A Bayes classifier for zero-one loss is thereforeEither decision is optimal when . The displayed Bayes risk also equals and is unaffected by changing on a -null set.
For any measurable set , independence and the uniform distribution of giveLikewise the probability with label zero is . These sets determine the joint probability distribution, soThe same construction makes all training pairs independent and identically distributed random variables.
Fix a feature-measurable nearest-neighbour tie-breaking rule, for example increasing original index for observations at equal Euclidean norm distance from the query. This is important: the ordering may depend on the features, but not on the or labels. Let be the label attached to the th ordered feature. The classifier from the K-nearest neighbors algorithm isThe displayed rule resolves a tied vote in favour of one; any fixed vote convention would also define the method. When , this is the one-nearest-neighbour classifier .
Write for the selected original index. Conditional on all features , it is fixed, and is still uniform on . The two decisions being compared areThe latter is an oracle comparison rule: its relabeling is recomputed at each query , rather than being a fixed relabeling of the training data for all queries. For a variable with the uniform distribution on , the two threshold indicators at differ exactly when lies between them, an interval of length . This Bernoulli coupling by a shared uniform random variable proves
Take the test pair independent of the training data and its auxiliary uniforms. Let , and interpret as conditional misclassification risk given . The tower property of conditional expectation gives . Conditional on the test feature and all training features, and are independent variables with a Bernoulli distribution of parameter . Consequently, for every ,This is an exact finite-sample equality, not merely a limit.
The two error indicators can differ only if the two classifiers disagree, soThe permitted nearest-neighbour approximation theorem states that the last expected value tends to zero for the feature-based selection rule. This establishes the one-nearest-neighbour asymptotic risk
For , put . Then , and . Integrating gives the Bayes risk bound for one-nearest-neighbour classificationThus a one-nearest-neighbour classifier need not achieve the Bayes risk: for constant , its limiting misclassification risk is , while .
Feature-based neighbour tie-breaking is required. The convention cannot be dropped for arbitrary . For a counterexample, take almost surely and constant , and choose among the coincident neighbours the one with the smallest . Then the predicted label is one with probability , so its misclassification risk tends to , exceeding the claimed upper bound . The corrected theorem uses ties determined independently of the uniforms and labels, as above.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 214 3 b Solution Created 2026-10-03 Updated 2026-10-06
Use simple random walk on the loopless undirected unweighted graph, with transition probability to each graph neighbour, and take . Set . Returns to before visiting do not end the commute. After its first visit to , stop at the subsequent first visit to , so . Count transitions with departure times , including the final step arriving at . The expected hitting times are finite: in a finite connected graph there is a uniformly positive probability to reach any fixed target within a fixed number of steps, giving a geometric tail bound.
We prove the needed killed-walk occupation voltage identity from its visit balance equation. DefineFor , counting arrivals before absorption givesHence, for the Graph Laplacian , we have away from . Since the sum of all Laplacian coordinates is zero, . Thus is the electrical voltage of a unit flow from to , grounded at , and .
Construct for the opposite killed leg. It satisfies and . Therefore . The harmonic maximum principle on a finite graph makes constant: at a maximum its value equals the average over its graph neighbours, forcing all of them to share that value, and connectedness propagates it. At the constant equals .
For any oriented edge , each visit to before the target hit produces a transition to with conditional probability . The expected traversals during the first killed leg are therefore , and those during the second leg are by the Strong Markov property at . This proves directed edge occupation in a random-walk commute:In particular, both directions of every unoriented edge have this same expected value, although their counts on an individual commute need not coincide. Summing over the directed edges also recovers the commute time identity .
The distinct-terminal convention is necessary for the printed “returns” interpretation. If and is the first positive return, a graph with two graph vertices and one edge gives while . Thus either take , as intended, or explicitly define the degenerate commute as . A general nonuniform random walk is not covered by the unweighted simple-walk formula.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 214 3 c Solution Created 2026-10-03 Updated 2026-10-06
Group the random resistance cost by unoriented edges. For , its resistance contributes once whenever the walk traverses it in either direction. Pathwise,The graph is finite and the commute has finite expected value. Linearity of expectation, or Tonelli theorem for these nonnegative terms, therefore permits taking expectations of the sum. By the directed edge occupation in a random-walk commute, both directed traversal counts have expected value . ThusApply Foster's theorem from part (a) to obtainThe factor two counts the two orientations of each edge. It would be lost by treating the expected directed count in part (b) as an expected count for both directions together. The same distinct-terminal and simple-random-walk conventions from part (b) remain in force.
