Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 215 1 c Solution Created 2026-10-03 Updated 2026-10-06
Let interchange the two complete graphs, sending to and fixing . This involution preserves the transition matrix of the simple random walk. A mirror coupling under an involution starts at , keeps until the hitting time of , and then makes the two walks move identically. Each coordinate has the correct transition probabilities, and they coalesce precisely at . The coupling inequality for total variation gives
There is a genuine error in the printed expected hitting time bound, as well as an unspecified initial law. For , write and for . From every clique vertex there is a positive chance of reaching within two steps, uniformly over the finite state space for each fixed , so has finite expected value. First-step analysis, using the degree of a vertex at and at the other clique vertices, givesSolving these linear equations yieldsIn particular even the attachment vertex exceeds the printed bound by one. The valid uniform replacement is , the hitting time of the bridge vertex between two cliques formula.
We must also handle arbitrary starting states, including , before applying the mirror argument. Identify related vertices and consider the lumped Markov chain on . Its transition matrix has for , , for and , and , with all other entries zero. Here the row for only ranges over .
For and , direct two-step calculation givesAll these entries are at least . Thus for every , where is the uniform distribution on a finite set and . This is a Doeblin condition. At each two-step block couple the two quotient endpoints to the same sample from with probability , using the residual probability distributions otherwise. The first successful block has expected value at most , so the alignment time has . Lift each endpoint coupling of probability distributions to the original walks by their conditional two-step path laws; this preserves every marginal path law. The success test uses fresh block randomness and so permits restarting the walks with their original transition matrix at the aligned endpoints.
At alignment the original walks are equal or related. Use identical transitions in the first case and the mirror coupling under an involution in the second. The resulting coalescing coupling has coalescence time satisfying for every pair of initial states. Therefore Markov inequality and the pairwise mixing diameter implyFor the hint's particular starting states, the quotient one-step laws from two different clique indices have a common component of mass at least : for two ordinary indices it is ; for one attachment index it is . A maximal coupling therefore aligns those indices with probability , as suggested. The two-step argument above additionally covers .
The nonlazy walk is an aperiodic Markov chain for , because the connected graph contains a triangle. For it is a periodic Markov chain on a bipartite graph; each bipartition class has stationary mass , and the walk stays on a single class at each time. Hence and the mixing time is infinite. The asymptotic conclusion is valid for .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 1 c Solution Created 2026-10-03 Updated 2026-10-06
An exact finite mixture model follows from the binomial theorem:Define positive mixture weightsHere is the Beta function, so the component probability distributions are . All coefficients are computable from the observed integer counts.
Use inverse transform sampling with the supplied to choose : writing and , take . Then recycle its position inside that interval,Recycling a uniform random variable after discrete sampling makes uniform independently of , since . It is also independent of all supplied random variables with gamma distributions. Transform these by the probability integral transform:They are independent random variables with uniform distributions because has a unit-rate exponential distribution.
Conditional on , put and . Form the values and return their th order statistic. This uses at most the supplied random variables with gamma distributions, since . The uniform order statistic formula givesAveraging these component probability density functions with weights recovers exactly the normalized posterior density. Unused inputs can be discarded. When , , , and the output is , as required. Interval endpoints and ties have probability zero; any consistent convention there is harmless. Exactness here concerns the mathematical algorithm; finite-precision arithmetic can be stabilized with logarithmic mixture weights.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 2 Solution Created 2026-10-03 Updated 2026-10-06
Write for the directed edges from parent to child and for the state at site . The global Markov property for an undirected graph on this tree, together with the specified parent transitions, gives the complete-data likelihood functionOne can obtain the factorization by successively removing terminal subtrees: after conditioning on their parent, each subtree is independent of the rest. The root factor and transition products also show that different sites are independent. Only ancestral states are latent variables.
At the current Markov kernel , define expected transition countsThe E-step of the expectation-maximization algorithm isMaximize separately for each row under and . For , the Lagrange multiplier equation is , with zero-count entries set to zero at a boundary maximum. Thus the EM transition-count update on a tree isIf , that row does not occur in ; any row probability distribution, including its previous value, maximizes the objective.
The expected counts can be computed exactly by the Felsenstein pruning algorithm and an outward belief propagation pass. For one site, let be the conditional probability of observations in the subtree below , given state . For a leaf with observed state , . For an internal vertex,Define as the joint mass of state at and all observations outside its subtree. The root has . For a child of , putThe edge posterior probability required above isMultiply the inside and outside factors to obtain the joint mass of the observations and endpoint states; division by the site likelihood function proves this expression. Sum over edges and sites to form . The two passes take operations on a binary tree. Scaling messages or computing them logarithmically avoids underflow.
A strictly positive initial Markov kernel ensures for every observed leaf pattern, so every E-step is defined. At a later boundary iterate, require positive likelihood for the actual data and restrict the conditional distribution to its support. EM likelihood monotonicity proves that the update cannot decrease observed-data likelihood function. It is a maximum-likelihood iteration, not a guarantee of finding the global maximum-likelihood estimate; different initial kernels may lead to different stationary points.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 4 a Solution Created 2026-10-03 Updated 2026-10-06
Write . Mean-field variational inference minimizes the reverse Kullback-Leibler divergenceEach is a probability density function; without further parametric restrictions, the optimization is over all such product probability distributions. Equivalently it maximizes the evidence lower bound for any unnormalized posterior density . Its difference from is exactly the Kullback-Leibler divergence.
Fix and writeAssume and that the displayed expected values and objective decomposition are well defined. The optimal factor isIndeed, the part of the objective depending on isThe remaining term is fixed. Gibbs inequality gives nonnegativity of the Kullback-Leibler divergence, with equality precisely at almost everywhere. This proves global optimality of that coordinate update; it does not assert global optimality of a sequence of coordinate updates for the full nonconvex product-family problem.
The printed upper index in the list of remaining coordinates is inconsistent with the dimension ; the natural interpretation is . Also, if the exponential expression has zero or infinite normalizing constant, or the expected values are undefined, the usual coordinate formula needs additional support or integrability hypotheses. A restricted parametric factor family need not contain this unrestricted optimal factor.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 216 4 b Solution Created 2026-10-03 Updated 2026-10-06
A counterexample can use an irreducible, aperiodic reversible Markov chain, so failure is not caused by a pathological transition structure. Take two binary coordinates, enumerate the four states as , and let be their uniform distribution. Use the Markov kernelIts rows sum to one and it is symmetric, proving detailed balance with . Every entry is positive. Let the univariate parametric family be .
For a product initial probability distribution with parameters , additivity of the Kullback-Leibler divergence givesEach summand has derivative on , so the unique optimum at has . ThusOn the other hand the allowed initial probability distribution , obtained with , is sent by one step to . Its Kullback-Leibler divergence is zero, the smallest possible value. ConsequentlyThe transition reduces Kullback-Leibler divergence for each input, but may reduce it by different amounts for different inputs. It therefore need not preserve the ordering of competing initial probability distributions, which is exactly why Markov chain variational inference must optimize the initial parameters for its chosen number of steps.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 11G Solution Created 2026-09-24 Updated 2026-10-05
For a discrete random variable with probabilities , its Shannon entropy in bits is , with . Gibbs inequality states thatwith equality exactly when . If , the left side is infinite. Otherwise apply to for :Equality requires on the support and no remaining mass outside it. In particular, comparison with the uniform probability distribution on two outcomes gives binary Shannon entropy at most .
Write . For , grouping the last two outcomes givesEquality holds if ; if it also holds, and then both are zero. Thus equality holds exactly when .
For the discrete memoryless channel, assume and , and set . Both conditional output probability distributions have Shannon entropy . The third output has probability regardless of the input; the first two have total probability . Their Shannon entropy is maximized by making them equal, which a uniform input achieves. Hence the channel capacity isand thereforeThe usual zero-times-log convention includes , when . If , the rows coincide and every input achieves zero mutual information; otherwise the uniform input is the unique maximizing input.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 5J b Solution Created 2026-09-24 Updated 2026-10-05
The orthogonal projections of the Gaussian noise onto the column space of and its orthogonal complement are independent. Consequently and the residual sum of squares are independent, andThus under the alternative,This is the noncentral t-distribution. The rejection region is fixed by the design, and the chosen level, while this probability distribution depends on only through . Therefore the statistical power does not depend on the other regression coefficients, with the design and fixed.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 3 a Solution Created 2026-10-03 Updated 2026-10-05
The tail sigma-algebra isIts events depend only on arbitrarily late coordinates. The Kolmogorov zero-one law states that for a sequence of independent random variables, every tail event has probability zero or one:Identical probability distributions and integrability are not required for the Kolmogorov zero-one law.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 5 a Solution Created 2026-10-03 Updated 2026-10-05
For a stopping time of a Brownian filtration, define the reflected stochastic processThe Brownian reflection at a stopping time form of the Brownian reflection principle states that is again standard Brownian motion. If , leave the path unchanged; the second branch is used only when .
For an almost surely finite , the Strong Markov property says that is a fresh Brownian motion independent of . Its negative has the same probability distribution, so reflecting the future preserves the full path probability distribution. Allowing follows by applying this argument to and restricting to each fixed finite time interval.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 5 c Solution Created 2026-10-03 Updated 2026-10-05
Let . Reflect at this stopping time, using the Brownian reflection principle from (a). Path continuity gives , and on this event the reflected endpoint is . ConsequentlySince , an endpoint forces the reflected path to have hit by time . Reflection preserves the first hit of , so the condition is redundant on the right. As has the same probability distribution as , the joint distribution of Brownian motion and its running maximum satisfiesThis argument includes ; at positive the boundary endpoint has zero probability under the normal distribution. At both sides vanish because .
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 5 d Solution Created 2026-10-03 Updated 2026-10-05
Taking in (c) and using that has no atom at givesThis is the distribution function of the Brownian first-passage time; (b) ensures that it is a proper probability distribution. Comparing these distribution functions gives the Brownian scaling identity for .
For an integer , set and successively hit the levels . The Strong Markov property at these finite stopping times and spatial translation imply thatare independent random variables, each with the probability distribution of . Thus, for independent copies ,ThereforeThe paper's definition is the strictly stable distribution convention, with no centering term, a special case of a stable distribution.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 6 a Solution Created 2026-10-03 Updated 2026-10-05
The Lévy continuity theorem states that if characteristic functions of probability distributions converge pointwise on to , and is continuous at zero, then is the characteristic function of a unique probability distribution andHere the arrow denotes weak convergence of probability measures, equivalently convergence in distribution of associated random variables. Conversely, weak convergence of probability measures implies pointwise convergence of their characteristic functions to the characteristic function of the limit. The continuity-at-zero condition is essential to ensure that the pointwise limit is a characteristic function.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 6 c Solution Created 2026-10-03 Updated 2026-10-05
Suppose with convergence in probability. For real and , the elementary inequality givesFirst let , then let . The characteristic functions converge pointwise to that of , which is continuous at zero. The Lévy continuity theorem gives convergence in probability implies convergence in distribution.
For the converse, let have the fair Bernoulli distribution, put , and set for every . All have the same probability distribution as , so . But always, henceThere is no convergence in probability to . In this example does have convergence in probability to : the counterexample concerns the converse with the specified limit , as usual. If one interprets the question as denying convergence in probability to any limit, take for even and for odd . Its probability distribution is still constant, while the two subsequences have distinct limits from almost sure convergence, ruling out any common limit in probability by uniqueness of a limit in probability.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 201 6 d Solution Created 2026-10-03 Updated 2026-10-05
Let be the distribution function of . The limiting constant zero has distribution function for and for . For every , both and are continuity points of . Thus convergence in distribution implies and . ThereforeThis provesThe same proof after subtracting a fixed real proves convergence in distribution to a constant implies convergence in probability. A deterministic limit fixes the coupling automatically; the counterexample in (c) exploits a nonconstant limit whose probability distribution alone does not fix that coupling.
Past exam of the mathematics course of the University of Cambridge 2019 ia Paper 2 11F a ii Solution Created 2026-09-24 Updated 2026-10-03
For every , the scalar is normal with mean and variance . The moment-generating function of a normal distribution therefore givesThus and determine the moment-generating function on all of . By the uniqueness theorem for moment-generating functions, they uniquely determine the probability distribution of .
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 28K d Solution Created 2026-09-24 Updated 2026-09-29
Let be an invariant distribution for the continuous-time Markov chain. Using , its stationarity equation becomesThus the measure with weights is invariant for the irreducible positive-recurrent jump chain. Its invariant distribution is unique, so . Normalization gives the invariant-measure transfer between a jump chain and a CTMC formulaThe denominator is finite and nonzero because . Thus is a probability distribution and is positive recurrent.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 3I a Solution Created 2026-09-24 Updated 2026-09-29
For a discrete memoryless channel with input and output , its information capacity iswhere is the mutual information and the maximum is over all input distributions. Capacity is measured in bits when logarithms have base two.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 1 11K Solution Created 2026-09-24 Updated 2026-10-03
Take every logarithm in base two. The information entropy of iswith . If the codeword has length , then its expected codeword length is
For any decipherable code, the Kraft inequality givesDefine the probability distribution . By Gibbs inequality,Since ,
Conversely, choose the integer lengthsThen , so their Kraft sum is at most one and the converse part of Kraft's inequality supplies a binary prefix code. Moreover,Thus the minimum expected length satisfies the Shannon noiseless coding theorem
For a decipherable code with arbitrary lengths , apply the lower bound to the uniform source . Its entropy is and its expected length is . Hencethe total length lower bound for a decipherable binary code.
Now consider the cumulative construction. Since and cannot have the same first binary digits: numbers sharing those digits lie in one half-open dyadic interval of length . Also, implies . Therefore no earlier codeword is a prefix of a later one, and no later, weakly longer codeword can be a prefix of an earlier one. The cumulative Shannon code is thus a prefix code, hence decipherable.
An optimal code minimizes expected codeword length over all decipherable codes for the specified source probabilities. The cumulative construction need not be optimal. For example, ifthen and the construction gives codewords and , with expected length . The prefix code has expected length , so the constructed code is not optimal. In general, Huffman coding produces an optimal prefix code.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 224 2 d Solution 2026-09-28
Let be the marginal probability distribution of . Subadditivity of information entropy and the concavity of information entropy giveFor each ,so .
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.