Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 3 3A i Solution Created 2026-09-24 Updated 2026-10-06
For the positive Euclidean norm , the chain rule givesRepeated indices use the Einstein summation convention. The origin is excluded because the Euclidean norm is not differentiable there. Another derivative, useful below, is , with the Kronecker delta.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 12 6 Solution Created 2026-10-03 Updated 2026-10-06
Use the part-preserving bipartite four-cycle density conventionHere is the indicator function of adjacency, and repeated labels are allowed. This is the homomorphism density convention appropriate to the four-cycle norm. We derive the needed counting and operator norm facts directly.
Let be the -by- biadjacency matrix, let be the all-ones vector, let , and put . The degree hypothesis saysso the centered matrix annihilates on both sides. In particular, , andThe two terms have zero products in either order. Expanding the matrix trace directly counts four adjacency factors:Since and , we obtainThe given upper bound therefore impliesThis computation proves the centered four-cycle identity for a biregular graph, rather than assuming a four-cycle norm identity.
The matrix is a positive semidefinite matrix. By the spectral theorem for real symmetric matrices it has nonnegative eigenvalues , andMoreover, for the Euclidean norm,Indeed , whose maximum on unit vectors is ; the Cauchy-Schwarz inequality characterization also shows that and have the same operator norm. Taking fourth roots thus giveswhere the error parameter is nonnegative, as in the claimed bound.
Finally use the indicator vectors , . Their Euclidean norms are and , so the Cauchy-Schwarz inequality and the operator norm estimate yieldThis is the required discrepancy bound. It also holds when either subset is empty or . In fact, because annihilates constants, replacing by gives the stronger bound . This is the spectral discrepancy bound for a biregular graph.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 32 4 Solution Created 2026-10-03 Updated 2026-10-06
Put , the precision matrix. The conditional independence graph has an edge between and exactly when and are not conditionally independent given all the remaining components. For the multivariate normal distribution,Indeed, the conditional density of the pair given the others has its quadratic term determined by the corresponding two-by-two principal submatrix of ; its cross term vanishes exactly when , making the two conditional Gaussian variables independent. This is a Gaussian graphical model.
To derive the conditional law of one component, isolate in the multivariate normal density and complete the square. The terms involving it areThereforeEquivalently, its mean is and its variance is the Schur complement . These forms agree because the block of gives , and its block then identifies the variance. This proves the relevant conditional multivariate normal distribution formula.
In particular, the population regression of component on the other components has coefficientsintercept , and a Gaussian residual independent of the predictors with variance . These are the conditional regression coefficients from a Gaussian precision matrix. The coefficient is zero exactly when the corresponding edge is absent. Its counterpart has the same zero pattern and sign, but generally a different magnitude.
This motivates nodewise regression: for each , regress on , estimating an intercept as well. For sparse graph estimation, use the Nodewise Lasso criterionThe Lasso penalty encourages many fitted coefficients to be zero and remains usable when the number of predictors exceeds the sample size. Ordinary unpenalized sample regressions would usually give a dense estimated graph. Separate regressions can disagree about a pair, so an undirected graph can use the OR rule for nodewise graph selection, retaining an edge if either fitted direction is nonzero, or the more conservative AND rule for nodewise graph selection, retaining it only if both are nonzero. These are choices for combining estimated neighbourhoods, rather than identities forced by finite-sample fits.
The printed joint objective uses a Group Lasso penalty on the unordered pairsThis is paired group Lasso for Gaussian graph estimation. Each group represents a single undirected edge, coupling its two directional regressions. A sum of group norms encourages entire pairs to be zero; a squared group norm would give smooth ridge-type shrinkage instead of edge deletion. The constraint removes self-prediction, and the intercepts are not penalized.
The free symbols called in the objective are regression intercepts, not generally the marginal means of the original Gaussian vector. Profiling them out givesand replaces all columns by their centred versions in the squared-error terms. This is profiling intercepts in nodewise regression. Scaling predictors to comparable units can also help interpret a common penalty, although the displayed objective itself is well defined on the given data.
The grouped KKT conditions make the sparsity mechanism precise. With centred residuals , defineThe subdifferential of the Euclidean norm at zero is its closed unit ball, and away from zero is . Hence a minimizer satisfiesThese are the paired group Lasso optimality conditions. They jointly threshold the two directional scores, matching the population fact that both directions represent the same edge.
Estimate the graph by including exactly when . This graph is undirected by construction. The penalty does not impose , nor does it mathematically require both coordinates of every selected pair to be nonzero. That distinction is appropriate because the population regression coefficients themselves need not have equal magnitudes. The fitted coefficient matrix is not automatically a symmetric positive definite precision matrix; its pair supports, rather than its entries as a precision estimate, supply the requested conditional independence graph.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 1 2C Solution Created 2026-09-24 Updated 2026-10-06
A counterclockwise planar rotation matrix has the formTo recover this form from preservation of the Euclidean norm, let be the columns of . Applying the norm condition to the two coordinate unit vectors gives . Applying it to their sum givesso . The columns are an orthonormal basis, and : is an orthogonal matrix.
Write . There are two perpendicular unit vectors available for , namely . The first gives determinant , the second . The positive determinant hypothesis selects the first. A norm-preserving planar map with positive determinant is a rotation.
For the commutation condition, writeDirect matrix multiplication givesEquality forces and , so, with and ,If , take and . Otherwise set and choose , . ThenThis describes the centralizer of a planar quarter-turn. Its nonzero elements act as a rotation followed by a uniform scaling, just as multiplication by a nonzero complex number does.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 1 5A b Solution Created 2026-09-24 Updated 2026-10-06
The two displacement vectors and lie in the required plane. Because the three points are non-collinear, their cross productis nonzero and is a normal vector to that plane. A point with position vector lies in the plane exactly whenExpanding the cross product givesThe terms and vanish, so the equation of a plane through three points becomesNon-collinearity is important: it ensures this is a genuine plane equation with nonzero normal, rather than the vacuous equality .
For the specified coordinates,Their sum is , with Euclidean norm . Consequently either orientation of the unit normal is valid:As a check, the scalar triple product is , so the plane equation simplifies to , which all three supplied points satisfy. The normal direction is .
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 1 8C b Solution Created 2026-09-24 Updated 2026-10-06
A complex square matrix is a unitary matrix when , equivalently . Here denotes the adjoint matrix, the conjugate transpose. Such a matrix preserves the standard complex inner product and its Euclidean norm.
A real symmetric matrix is a Hermitian matrix, so . For arbitrary complex ,The imaginary cross terms cancel because is Hermitian. Reversing the signs gives the same identity:In particular, implies , so has zero kernel of a linear map. It is a square matrix, and the rank-nullity theorem therefore makes it invertible. The same argument proves invertibility of .
The proposed matrixis consequently well-defined. For any , put . The two norm identities show directly thatTo verify the unitary matrix identity explicitly, take adjoints:The two shifts commute, because both are polynomials in . HenceThusThe imaginary shifts are invertible, and their equal norm changes cancel in the quotient. This is the Cayley transform of a Hermitian matrix in the convention.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 2 12G b Solution Created 2026-09-24 Updated 2026-10-06
For a linear map , define the operator norm byIt is finite. To see this without assuming continuity of , write : the triangle inequality bounds by . Every norm in finite dimensions is equivalent to the Euclidean norm. One proof first uses this same coordinate bound to establish continuity of the norm on the Euclidean unit sphere; compactness then gives a strictly positive minimum there. Thus the coordinate bound above is at most a fixed multiple of .
Absolute homogeneity and the triangle inequality for this operator norm follow from those for and taking suprema. If , then for every , hence , and the converse is immediate. For any , the defining bound givesThis is submultiplicativity of the operator norm.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 2 19D a Solution Created 2026-09-24 Updated 2026-10-06
A Givens rotation is the identity outside rows and columns , with the blockThe block's transpose times itself is the identity, so the whole matrix satisfies and is an orthogonal matrix. In particular it preserves the Euclidean norm. To annihilate the lower entry of a column pair , take , , ; the rotated pair is . If both entries are zero, take the identity rotation.
Past exam of the mathematics course of the University of Cambridge 2016 ib Paper 2 19D c ii Solution Created 2026-09-24 Updated 2026-10-06
The orthogonal matrix preserves the Euclidean norm, soThe first three entries of can be set to zero by backward substitution in a triangular system, while its fourth entry is always . Solving the triangular system gives , , and . Thus the unique least-squares solution and residual norm areUniqueness follows from the nonzero diagonal entries of the top triangular block, equivalently the full column rank of .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 111 4 iv Solution Created 2026-10-03 Updated 2026-10-06
Within each fixed unitary irreducible representation, choose the selected right singular vectors to be orthonormal. Their corresponding left singular vectors are also orthonormal, even when a singular value is repeated: choose an orthonormal basis in each eigenspace of and put . Therefore, when ,This is (iv), with the unnormalized Hilbert-Schmidt inner product and the Kronecker delta. No orthogonality of differently shaped matrices is being asserted.
For the unheaded continuation, partition into blocks . ThenThe Schur averaging of rectangular matrices formula isfor any matrix . The average is an intertwiner; the Schur lemma makes it zero for inequivalent irreducible representations, and a scalar multiple of the identity for the same representative. The trace determines that scalar in the latter case.
Apply this with . The Hilbert-Schmidt inner product normalization just proved givesExpanding the squared Euclidean norm now yieldsThus the final identity follows from averaging, although itself need not be the identity. The whole construction is the spectral inverse theorem for the matrix-valued U2 quantity.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 205 2 Solution Created 2026-10-03 Updated 2026-10-06
Use the normalizationThis is ridge regression; the penalty is the squared Euclidean norm. The centering removes the need for an intercept. Differentiating gives the normal equationFor every nonzero , . The coefficient matrix is therefore a positive-definite matrix, even if the design matrix has deficient matrix rank. The objective is a strictly convex function, so the unique minimizer is the closed-form ridge regression estimator, with fitted values
For the primal-dual identity for ridge regression, put and observeBoth parenthesized matrices are positive-definite matrices. Multiplying by their inverses givesThus the same fitted vector has the dual expressionNo inverse of or alone was needed. This is also the kernel-ridge hat matrix for the linear kernel.
Here a positive-definite kernel means a symmetric real-valued function whose every finite kernel matrix is positive semidefinite: for all , and ,This is the usual positive-semidefinite kernel convention; strict positivity for distinct points is not required. In particular . Write , and . Positivity of the two-point kernel matrix impliesIf , substitute to obtain . If , the affine expression can be nonnegative for every only if . Both cases give the Cauchy-Schwarz inequality for positive-semidefinite kernels:The zero-diagonal case is essential when the positive-definite kernel is not strictly positive.
To construct a feature map, let be the real vector space of finite formal linear combinations of symbols , one for each . Define a symmetric bilinear form byThe positive-definite kernel property makes this a positive semidefinite bilinear form. It need not yet be an inner product: distinct formal vectors can have zero squared length. The same quadratic-polynomial argument, now applied to , provesTherefore implies for every . The setis the radical of a bilinear form, hence a linear subspace. SetThe quotient vector space has a well-defined inner product: changing representatives by elements of changes no pairing, and a zero-length class is exactly the zero class. It is therefore an inner-product space.
Define . By construction,Every positive-definite kernel thus has a feature representation, including degenerate kernels and the zero kernel. This is its canonical feature space of a positive-semidefinite kernel. The construction already gives the requested inner-product space.
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 209 4 Solution Created 2026-10-03 Updated 2026-10-06
Let and . The Lipschitz continuity of cosine and the Cauchy-Schwarz inequality implyThe centered expectation term contributes ; omitting it would leave the Lipschitz bound incomplete. In particular has continuous sample paths on the compact cube, so its maximum exists and is measurable.
PutChoose a Cartesian finite net whose coordinate spacings are at most , including the endpoints. Every point of the cube is within Euclidean norm distance of , andOn the event , replacing any by a nearby grid point changes by at most . Since and , this is less than . ThereforeThe Markov inequality bounds the first event by . At a fixed , the summands are centered, independent and identically distributed, and have absolute value at most . The supplied Hoeffding inequality, with , bounds each grid event byA union bound now givesThe choice of balances the cost of a large random Lipschitz constant against the covering number of the cube: . Consequently works, withThis uses only the first moment and has a constant independent of . The finite net is deterministic even though the Lipschitz constant is random.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 3 b Solution Created 2026-10-03 Updated 2026-10-06
Let . The defining minimum for graph total variation denoising, compared with the feasible value , gives . Expand the squared Euclidean norm and cancel to obtain the basic inequality for a penalized least-squares estimator:
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 210 3 e Solution Created 2026-10-03 Updated 2026-10-06
Let . The columns of have Euclidean norm at most one. Under the usual sub-Gaussian random vector convention, 3(d) justifies the tuning choice , which is independent of . Also , so the Chernoff bound gives with probability at least .
On the intersection of these events, of probability at least , set and . The weighted Young inequality gives for . Applying it to 3(c) and rearranging yields the rigorous boundIf the coefficient-one concentration statement in 3(d) is taken as an extra hypothesis, instead choose ; the identical argument gives precisely the printed coefficient in the first term. Thus the deterministic argument and its risk rate are sound; its concentration constants depend on correcting or strengthening 3(d).
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 325 1 iv Solution Created 2026-10-03 Updated 2026-10-06
For the Euclidean norm, rotational symmetry and minimizing the radial objective give the radial soft thresholding formulaIndeed, if , an optimal is a nonnegative scalar multiple of ; minimizing over gives . The gradient of a Moreau envelope is consequentlyAt this is , and the two expressions agree when . The Moreau envelope of the Euclidean norm itself isThus a quadratic core replaces the nondifferentiable tip while the outer gradient remains the normalized radial direction. The Euclidean norm has an unbounded effective domain, unlike the earlier bounded-domain hypothesis; the preceding argument explicitly shows that this restriction is unnecessary here.
The absolute value and its Moreau envelope with tau equal to one, together with the continuous clipped gradient replacing the jump at the origin
. For convex optimization, this Moreau–Yosida regularisation permits gradient descent and other methods for functions with a Lipschitz gradient, using a gradient Lipschitz constant . It approximates the norm uniformly: . Smaller improves approximation but makes the permitted gradient steps smaller. Minimizing alone preserves the minimizers and minimum value of ; replacing one term in a larger objective can shift the minimizer, so the smoothing parameter controls that approximation error.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 331 4 b i Solution Created 2026-10-03 Updated 2026-10-06
The matrix is a skew-symmetric matrix, so for real . Therefore the energy-neutral rotational nonlinearity contributes nothing directly to the energy balance:The nonlinear term rotates the state without changing its Euclidean norm. It can still change the orientation, and thereby affect later energy growth through the linear term. Thus energy cancellation does not mean the nonlinear and linear trajectories have identical energy histories.
