Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 36 3 e Solution Created 2026-10-03 Updated 2026-10-06
Start from any . For independent draws from the standard normal distribution at each sweep, the Gibbs sampler can be implemented asThe second update must use the newly drawn first coordinate. The transform in part (a) supplies the needed independent Gaussian draws. Each conditional update preserves the joint posterior, so their composition does too.
Convergence is particularly transparent here. Centering at the posterior mean givesPositive definiteness gives , so this is a stable Gaussian autoregression. The full sampler has the desired posterior as its limiting invariant law. This is the linear contraction of a two-coordinate Gaussian Gibbs sweep.
For a posterior-integrable function , its posterior expectation is estimated after a burn-in byThe ergodic theorem justifies this Monte Carlo average. The retained values of also approximate its posterior distribution and quantiles. If a Bayesian point estimate is requested under squared-error loss, the posterior mean is the appropriate estimate, when its needed moments exist. An arbitrary function need not have a finite posterior mean; integrability must be assumed for the displayed target. Successive Gibbs draws are correlated, so uncertainty in the Monte Carlo average should use chain-aware error estimates rather than treating them as iid.
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 2 10F Solution Created 2026-09-24 Updated 2026-10-06
The proposed probability density function is nonnegative. To check its integral, put . The Gaussian integral can be evaluated by squaring and using polar coordinates:Since , and . Thus has the standard normal distribution. Completing the square in its moment-generating function gives, for every real ,Differentiation under the integral is justified near every finite by Gaussian decay. Expanding gives all moments:
To obtain the two-term bounds for Mills ratio, use . Integration by parts gives, for ,The positive remainder proves . A second integration by parts givesSubstitution and division by the strictly positive showThe last integral is strictly positive for every finite , proving . Both remainders are finite for every fixed positive ; the lower bound remains valid even when it is negative.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 36 2 Solution Created 2026-10-03 Updated 2026-10-06
In the Gaussian white noise model, observe the entire pathwhere is standard Brownian motion and the deterministic drift belongs to L2 space on . Equivalently, . For every deterministic , the observed stochastic integral satisfiesThe noise is an isonormal Gaussian process. In particular its variance is . Gaussian white noise is interpreted through these integrals, rather than as an ordinary random function with a pointwise value at every time. No smoothness of is needed.
Here is the Gaussian maximum bound without independence. Put . It is integrable since it is bounded by . For every ,The second inequality uses only the moment-generating function of the standard normal distribution, so independence is unnecessary. Jensen inequality gives , henceMinimizing at proves
For the dyadic partition, let , , putting the endpoint into the final interval. The Haar scaling functionsform an orthonormal basis of the space of functions constant on each interval. The Haar wavelets can be written asFor , the constant function together with , , is another orthonormal basis of . Indeed, each successive level splits a cell's two constants into their sum and difference; the number of basis elements is . Thus the Haar projection is the orthogonal projectionOn cell its value is . The first formula also applies to .
Estimate each coefficient by its observed stochastic integral:This is the Haar projection estimator in Gaussian white noise. The noise integrals over disjoint intervals form a Gaussian vector with zero off-diagonal covariance. The principle that uncorrelated jointly Gaussian variables are independent then makes these coefficients independent. ThereforeTaking expectations shows that is an unbiased estimator of , both coefficientwise and pointwise for the stated step-function representatives.
Only one scaling function is nonzero in each cell, so the supremum norm of the error has the exact formThe endpoint convention ensures the same identity at . Apply the Gaussian maximum bound without independence with to obtain the supremum norm risk of a Haar projection estimator:The factor comes from cellwise scaling, while the extra square root of comes from taking the maximum over Gaussian errors.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 36 4 Solution Created 2026-10-03 Updated 2026-10-06
The relevant fixed coordinate subspace is . Let be the first columns of and letThe Gaussian empirical Gram matrix is the empirical second moment with the known mean zero; no subtraction of an estimated mean is involved. For , the ratio under consideration is . Since is a real symmetric matrix, the finite-dimensional spectral theorem givesIndeed, diagonalizing bounds every unit-vector quadratic form by the largest absolute eigenvalue, and a corresponding unit eigenvector attains the bound.
We first construct a unit sphere net from ball covering. Enlarge the numerical covering constant, if necessary, to . Cover the unit ball in with at most balls of radius at most . For each such ball meeting the unit sphere, choose a point of the sphere in it and discard the others. These selected points form a metric net of the unit sphere with radius : any two points in one covering ball have distance at most . This argument ensures that the net points have unit length even if the original covering centers did not.
Take and put , so . For unit vectors with ,Taking a net point for every unit and then a supremum proves the quadratic form net boundIt follows that
Fix . The rows of are independent vectors of independent random variables with the standard normal distribution, and . Their scalar products with are therefore independent variables , soUse the supplied chi-squared concentration inequality with . Its threshold isConsequently . The union bound gives the stronger fixed-subspace estimateThis is Gaussian Gram matrix concentration on a fixed subspace.
Since , we have . Under ,Choose the numerical constant . Then the parenthesis is at least one, so is a valid choice, andThe covering factor is only because the coordinate subspace is fixed. The ambient dimension enters through the assumed sample-size bound.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 4 c iii Solution Created 2026-10-03 Updated 2026-10-06
Recognize the integrand as a Gaussian scale mixture. If has the unit Rayleigh distribution and is an independent standard normal distribution variable, then the conditional density of given is . Multiplying by the radius density givesThus use for the independent radius and for the normal output of the Box-Muller transform:The mixture argument also proves that integrates to one, by the Tonelli theorem. As a check, is exponential of rate , so the characteristic function of is . This is the Rayleigh-normal scale mixture, with Laplace distribution density .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 37 4 c ii Solution Created 2026-10-03 Updated 2026-10-06
The Box-Muller transform uses independent uniforms to setThe radius has the unit Rayleigh distribution, with density for , and the angle is independently uniform on . Their joint density is . The Cartesian change of variables has absolute Jacobian determinant , so the joint density of isThe factorization proves that the outputs are independent random variables, each with a standard normal distribution.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 2 4F Solution Created 2026-09-24 Updated 2026-10-06
The moment-generating function of a random variable is , at the real values of for which that expectation is finite. For a standard normal distribution variable , combining the exponentials in its probability density function yieldsThe last equality follows by scaling the Gaussian integral. The variables are independent random variables, so the expectation of their product factorizes. ThereforeThis is the moment-generating function of a chi-squared distribution with degrees of freedom. For positive the defining integral diverges at and above .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 5 a Solution Created 2026-10-03 Updated 2026-10-06
One general form of the Erdős-Kac theorem is the following. Let be a real strongly additive arithmetic function, with for all primes, and defineIf , then under the discrete uniform distribution on ,Here the arrow denotes convergence in distribution and is the standard normal distribution. Equivalently, the probability of being at most tends to the standard normal distribution function for every real . Replacing by is equivalent, because the difference is bounded by .
This is a general bounded-prime-weight form, not just the special case . In that case the Mertens theorem for reciprocal primes gives and , so the classical prime-factor central limit theorem is
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 5 c Solution Created 2026-10-03 Updated 2026-10-06
A useful method of moments in probability states that if real random variables have all moments, for every integer , and is the moment sequence of a moment-determinate probability distribution, then converges to that distribution in the sense of convergence in distribution. In particular, convergence to the standard normal distribution follows from limiting odd moments zero and limiting even moments . The moment-generating function of a standard normal variable, finite in a neighbourhood of zero, ensures moment determinacy.
For the classical Erdős-Kac theorem, put and choose, for example, , with a harmless modification for small . Truncate the prime omega function to primes . The omitted number of distinct prime factors of any is at most , since a product of omitted primes exceeds . Thus this truncation changes the normalized variable by uniformly. Also, the Mertens theorem for reciprocal primes gives
Part (b) transfers every fixed normalized central moment of the truncated prime omega function to the independent Bernoulli random variables model. Indeed, its unnormalized error is at most , using , and this tends to zero for each fixed . In the independent expansion, any singleton index has zero expectation; the leading contributions are pairings, giving exactly the standard normal distribution moments, while blocks of size at least three are negligible after normalization. The method of moments in probability, followed by the uniformly negligible truncation and centering errors, proves the Erdős-Kac theorem.
The same strategy proves the bounded-prime-weight form in part (a). Choose slowly enough that . The omitted weighted contribution is ; its mean is likewise , and its independent variance is by the Mertens theorem for reciprocal primes. Hence the truncated model has the same normalization, and part (b) again transfers each fixed central moment.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 1 Solution Created 2026-10-03 Updated 2026-10-06
Write . The global Markov property for a directed acyclic graph says that, for every three pairwise disjoint vertex sets ,Thus graphical D-separation implies probabilistic conditional independence. Causal minimality means that has this global Markov property for a directed acyclic graph, but has it for no proper subgraph of obtained by deleting edges while keeping all vertices. Faithfulness of a directed acyclic graph means that the displayed implication is an equivalence: the conditional independences of are exactly the D-separations of . In particular it includes the global Markov property for a directed acyclic graph.
A causally minimal distribution can nevertheless have an extra independence. Here is a causally minimal nonfaithful Gaussian model. Take three independent random variables , each with the standard normal distribution, and setUse the Directed acyclic graph with edges , and . The equations give a directed acyclic graph factorization, so the global Markov property for a directed acyclic graph holds. Alternatively this complete acyclic graph imposes no nontrivial D-separations. But is independent of , even though the direct edge prevents their D-separation. Hence faithfulness of a directed acyclic graph fails.
To check causal minimality explicitly, the covariance matrix isThe linear transformation from to is invertible, so this is a nonsingular multivariate normal distribution. Deleting would require , whereas . Deleting would require , whereas the conditional covariance isDeleting would require , whereas its conditional covariance is . By Gaussian conditional independence, each nonzero conditional covariance rules out the required independence. Every proper subgraph is contained in a graph obtained by a single edge deletion, and further deletion can only add Markov restrictions. Thus no proper subgraph is Markov for , proving causal minimality.
For the Markov blanket, use its standard convention that the focal vertex is excluded:We prove Markov blanket D-separation by examining an arbitrary path from to . If its first edge points into , its next vertex is a parent of , hence a conditioned noncollider in , and the path is blocked. Otherwise the path starts at a child . If the next edge points out of , then is again a conditioned noncollider. If it points into , the path begins . Although conditioning on the collider opens that local segment, is another parent of , hence belongs to . The outgoing arrow makes a noncollider on the path, so conditioning on blocks it. Since is outside , none of these blocking vertices can be the endpoint.
Every path is therefore blocked by . Applying the global Markov property for a directed acyclic graph givesThis proves the requested screening property without any positivity assumption on .
Finally assume faithfulness of a directed acyclic graph and let have the stated screening property. Then and every vertex outside must be D-separated by . If a parent or child of were missing from , the one-edge path between them would be active, a contradiction. Thus every parent and child is in . If another parent of a child were missing from , the path would be active: its only interior vertex is the collider , already in . This is again a contradiction. ConsequentlyUnder faithfulness the graphical blanket is contained in every screening set. This is the minimal Markov blanket under faithfulness; the preceding argument also shows that the blanket itself is a screening set.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 3 Solution Created 2026-10-03 Updated 2026-10-06
Fix the normalizationThe Lasso penalty uses the L1 norm. All arguments below apply to every minimizer; uniqueness of the coefficient vector is not assumed.
The Karush-Kuhn-Tucker conditions are the subgradient optimality conditionThese conditions are necessary and sufficient because the objective is a convex function. They use the subgradient of the absolute value, coordinate by coordinate.
Put . Centered columns imply , so the subtraction of in the model contributes nothing to the score. The Karush-Kuhn-Tucker conditions becomeMultiply by . Since and , this gives the prediction inequality from Lasso stationarity:This is the desired version of the Basic inequality for the Lasso. Using stationarity directly preserves the coefficient on the squared prediction norm.
For the Gaussian score event for the Lasso, write for column . The assumed Euclidean norm and the multivariate normal distribution of giveThe may be correlated, which does not affect the union bound. Use the following sharp two-sided Gaussian tail bound, valid for with the standard normal distribution and every :For completeness, the difference satisfies , , and as . It first increases and then decreases to zero, so it is nonnegative. This bound avoids introducing an unnecessary factor two.
Here is the standard normal distribution function. With , the union bound yieldsConsequentlyThe score event uses the supremum norm of ; the centering term still vanishes because .
We next work deterministically on . LetBy Holder inequality, . Since , the triangle inequality givesSubstituting both inequalities into the Basic inequality for the Lasso producesBecause , this also proves the relevant Lasso cone condition, . The assumed Compatibility condition for the Lasso therefore applies to :Set . Combining these inequalities givesIf , discarding the nonnegative term shows . If , compatibility gives , and the preceding inequality then gives . In either case , soThis is a fast prediction bound and an inactive-coordinate error bound on the same event. It is the fast-rate Lasso prediction bound under compatibility.
Finally, the same argument bounds the active-coordinate L1 norm byIf , then , and . When this implies ; when it implies . Thus the sign function obeysThis is Lasso sign recovery under compatibility. It concerns the sufficiently large nonzero coefficients; it does not assert that every estimated inactive coefficient is zero.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 2 2 3 Solution Created 2026-10-03 Updated 2026-10-06
First, the absolute values in the printed limit are an error: the correct long-run variance of a stationary process is the signed sum of autocovariances. Directly,soEach coefficient tends to and has absolute value at most . Absolute summability and the dominated convergence theorem therefore giveThe sum of absolute values is an upper bound, not the general limit. For a concrete counterexample to the printed assertion, take with unit-variance iid noise. Then , , and other covariances vanish. The absolute sum is , but , so .
For correlated data the central limit theorem can still hold under suitable strong mixing of a stationary process and moment conditions, but the limiting variance is the long-run variance of a stationary process, rather than the one-observation variance. When it is positive,Positive serial dependence usually increases the standard error, while negative dependence can reduce it. The approximate effective sample size of a stationary sample is when that denominator is positive. A long-memory time series can require a different normalization or a different limit law. Absolute covariance summability alone does not prove a CLT: if with a common independent random scale taking values and with equal probabilities and iid with the standard normal distribution, the off-diagonal covariances are zero, yet has the nonnormal scale-mixture law . The example is not an ergodic stationary process. If the long-run variance of a stationary process is zero, the usual nondegenerate square-root- CLT is unavailable.
For the causal AR(1), andThe conditional distribution follows because the current innovation is independent of the past.
For a fixed known , condition on the observed and use the transitions . Their conditional maximum likelihood criterion is, up to constants,Differentiating in yieldsSince ,Thus it is an unbiased estimator, even conditionally on , andIt has statistical consistency with mean-square convergence, and the iid-noise strong law of large numbers also gives almost-sure statistical consistency. Its conditional distribution is exactly normal with the displayed mean and variance. If is also observed and all transitions are used, replace by .
The fixed- qualification is necessary for the exact finite-sample claims. If is jointly estimated, conditional likelihood function is linear regression with an intercept: writing and , the unconstrained estimators areThis ratio is not generally an unbiased estimator and does not have the preceding finite-sample variance. Under the usual stationary regression conditions it has statistical consistency; its asymptotic variance is . Indeed, it differs from by , an asymptotically negligible endpoint term. Profiling an unknown innovation variance does not change the fixed- estimate of .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 4 a Solution Created 2026-10-03 Updated 2026-10-06
Draw independent uniformly on , and setThis is the Box-Muller transform. The endpoint has probability zero; an implementation should avoid evaluating its logarithm.
For , , so has density . It is independent of the angle, which has a uniform distribution on , and their joint density is . Transforming to Cartesian coordinates divides by the polar-coordinate Jacobian , yieldingThus the outputs are independent random variables with the standard normal distribution, proving the algorithm.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 4 b Solution Created 2026-10-03 Updated 2026-10-06
Let , and write for the standard normal distribution density. For importance sampling, choose the proposal density , namely the uniform distribution on the target interval. Its importance sampling weight isFor iid uniform draws ,is an unbiased estimator of the target mean, since its expectation integrates . If one chooses not to evaluate , the self-normalized importance sampling alternative has statistical consistency, but generally is not an unbiased estimator.
Alternatively, draw independent random variables with the standard normal distribution, let and , and useConditionally on , the retained draws are iid from the truncated normal distribution, so their average is an unbiased estimator with variance , where is its variance. If the ratio is undefined; one can continue drawing until a prescribed number of retained observations is obtained.
Here importance sampling uses every draw inside the interval, whereas only of the normal proposals are retained. The advantage can also be quantified. Integration using givesFor uniform importance sampling,For the retained-draw ratio with a fixed total proposal budget, its asymptotic variance coefficient is . Thus this importance choice has substantially smaller error for the same proposal count; it also avoids wasting about two thirds of the standard normal distribution draws. This comparison is specific to this well-matched importance sampling proposal; arbitrary proposal choices do not share this guarantee.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 208 6 d Solution Created 2026-10-03 Updated 2026-10-06
Use the ergodic theorem for a positive Harris recurrent Markov chain: for an invariant distribution and an integrable function , the time average converges almost surely to under the usual ergodicity conditions. This is the relevant theorem for correlated Metropolis–Hastings algorithm output, rather than the strong law of large numbers. Here is integrable. Indeed, puttingwe have , which bounds the unnormalized density by a constant times an integrable Gaussian density and also gives finite first moments.
For a proposal scale , initialize anywhere in . At each step draw independent random variables with the standard normal distribution and an independent uniform , propose , and accept whenOtherwise set . The normal proposal is symmetric, so its density cancels; the target normalizing constant also cancels. Include every state in the average, including repeated states after rejection. The ergodic theorem for a positive Harris recurrent Markov chain then givesA fixed discarded initial segment does not change this limit.
Small proposal variance gives high acceptance but tiny moves and strong serial dependence. Large variance gives more ambitious moves, but many proposals enter very low-density regions and are rejected, creating long runs at one state. An intermediate scale should be assessed by exploration and effective sample size of a Markov chain, not acceptance rate alone.
This density has two modes, at and their interchange. To see this, stationary points satisfy , implying either or . The unequal solutions have and are local minima of ; the equal solution is a saddle. Mode switching is therefore a material part of proposal-scale selection: a chain confined to one mode can have high acceptance and a misleading finite-run estimate.
Two modes of the quartic target density, with the diagonal saddle between them, explaining slow mode switching in random-walk Metropolis-Hastings
. Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 211 1 b Solution Created 2026-10-03 Updated 2026-10-06
Write . Conditional on , independent increments of the Brownian motion givewhere has the standard normal distribution and is independent of . Factoring out of the positive part identifies the normalized Black-Scholes call function:The European call option payoff is integrable, because and . The tower property of conditional expectation therefore proves that is a true martingale. At , the boundary value gives . The answer is the conditional payoff martingale
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 211 1 d Solution Created 2026-10-03 Updated 2026-10-06
A martingale with the specified terminal value must equal its conditional expectation. If , default has already occurred and the terminal European call option payoff is zero. If , put . Conditional on survival to ,where has the standard normal distribution; the conditional probability of this survival is . The conditional expectation of the payoff in the enlarged filtration used in part (c) is consequentlyThis expression is already measurable with respect to the natural filtration of , so the tower property of conditional expectation gives the same value there. The survival factor cancels the compensating growth factor:The separate zero branch avoids division by zero. At it gives the required payoff, using ; integrability follows from .
