Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 39 5 Solution Created 2026-10-03 Updated 2026-10-06
The Bradley-Terry model assigns comparison probability to each observed edge. Up to factors independent of the parameters, its likelihood function isThe comparison graph is a path graph, hence a tree. After fixing , its edge ratios are unconstrained positive coordinates: every collection determines uniquely .
For a convenient strict-concavity calculation, use the edge log-ratios in a Bradley-Terry comparison tree . The log-likelihood separates asEach derivative is , where is the logistic function of , and each second derivative is . Because , there is a unique finite global maximum atConverting back gives the Bradley-Terry maximum-likelihood estimate on a path:Equivalently, recurse backwards using . All estimates are finite and positive. The sample size changes the curvature of the likelihood but not this maximizer; absence of comparison cycles is what permits every empirical edge proportion to be fitted simultaneously.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 215 4 b Solution Created 2026-10-03 Updated 2026-10-06
The symmetric group has elements, not the printed order . For the identity and the adjacent transpositions have probabilities , so the specified transition matrix is normalized. Its stationary distribution is uniform and it satisfies detailed balance, since each transposition is its own inverse. Adjacent transpositions generate the symmetric group, making this an irreducible Markov chain; the positive holding probability makes it an aperiodic Markov chain.
For a fixed label , right multiplication swaps positions, so is the label's position. Under the uniform distribution on a finite set it is uniform on . ThereforeFor each generator , the squared change is one if the label occupies either of the two positions, and zero otherwise. Its stationary expected value is , givingThus the tagged-label Rayleigh quotient for adjacent transpositions gives the corrected bound
The printed factor six cannot be obtained: the hint's variance of a uniform distribution is wrong. Directly, . Bounded convergence in distribution of does imply convergence of its first two moments, hence convergence of its variance, but the limit is .
More strongly, the claimed asymptotic bound itself is false for this kernel. The Aldous spectral gap theorem states that the interchange process on a finite connected weighted graph has the same spectral gap as the single-label random walk with identical edge rates; see Theorem 1.1 and its proof. Here is that interchange process generator on a path graph with edge rates . For the tagged-label generator, direct substitution of gives eigenvalues , , including the reflecting endpoint equations. These distinct eigenvalues exhaust the tagged-label function space. Consequently the theorem yieldswhich exceeds asymptotically. This use of a substantial external theorem is only to certify the printed claim's failure; the corrected factor-twelve upper bound above follows directly from the requested test function and the variational formula.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 214 3 c Solution Created 2026-10-03 Updated 2026-10-05
Let , and for putEach edge cutset separates from . Adjacent vertices have graph distances from differing by at most one. Hence an edge can cross at most one of these level boundaries, so the edge cutsets are pairwise edge-disjoint. Write ; then .
The Nash-Williams inequality for unit conductances giveswhere the middle inequality is the Cauchy-Schwarz inequality. One can also derive the first inequality directly: every unit flow has signed net flux one through each , so its energy of a flow on that cut is at least ; sum over the disjoint cuts and use the Thomson principle.
Combining with the commute time identity yieldsThe case is trivial. A path graph, with its endpoints, attains equality.
Random adjacent transposition shuffle 2026-10-06
On the symmetric group , this Markov chain chooses uniformly from the identity and the adjacent transpositions, and multiplies on the right. Its stationary distribution is the uniform distribution on a finite set, because the generators are self-inverse. A fixed label's position is a lumped Markov chain on a path graph with off-diagonal transition probabilities to existing neighbours.
For the random adjacent transposition shuffle with , the generator is the interchange process on a path graph with each edge rate . The Aldous spectral gap theorem reduces its spectral gap to that of the single-label random walk. The eigenfunctions , for , have generator eigenvalues ; direct substitution verifies both the interior and endpoint equations. Consequently .
Step number 2026-10-20
A positive integer whose adjacent decimal numerical digits differ by exactly 1. Its digits form a walk on the path graph , with a nonzero starting digit. Counting pandigital numbers of this type can use digit dynamic programming with the final digit and a bit mask of visited digits as the state.
Uniform labelled tree generation 2026-10-14
For , choose independent random variables, each with the uniform distribution on a finite set , and decode their values as a Prüfer sequence. Every sequence has probability , and the bijection gives each labelled tree the same probability. This produces a uniform spanning tree of the complete graph without repeatedly proposing sets of edges and rejecting those that fail to be trees. It supplies random inputs for testing implementations of breadth-first search and a tractable model of random connections. [ref]
https://sites.math.rutgers.edu/~zeilberg/Combo20/hw.html. Doron Zeilberger, Rutgers Math 454 (2020), Lecture 23: generate random labelled trees by sampling and inverting Prüfer codes
This distribution is uniform over fixed-label trees, rather than over unlabelled trees. With four labels, the star graph shape has probability and the path graph shape has probability . Also, for a fixed label , the Prüfer degree formula givesHere the binomial distribution counts the independent code positions equal to . The expected value agrees with the average vertex degree from the degree-sum formula. Individual labels have the same distribution by symmetry, though their vertex degrees are constrained together by their fixed sum. When , simply return the single isolated vertex.
Weighted graph Laplacian Created 2026-09-28 Updated 2026-10-20
For a finite undirected graph without self-loops, give each edge a symmetric nonnegative weight . In the weighted graph, set for an edge and zero otherwise, and with all other entries zero. The Weighted graph Laplacian isEach edge appears once in the quadratic form. For the path graph with weights and ,The Weighted graph Laplacian is still a positive semidefinite matrix. Its kernel consists of vectors constant on each connected component of a graph after zero-weight edges are removed: an edge of weight zero imposes no constraint. In an electrical network, taking the weights to be electrical conductances makes the total power dissipated by Joule heating when gives the voltages at the vertices. This physical interpretation explains why stronger connections penalize disagreement more heavily.[ref]
https://www.cs.yale.edu/homes/spielman/PAPERS/SGTChapter.pdf. Spielman, Spectral Graph Theory, Section 16.3.2: resistor networks