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-14
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-14
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
. Details. 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.
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 2 14G Solution Created 2026-09-24 Updated 2026-10-05
For unit , put . Then and , so is an orthogonal matrix. The affine reflection in a hyperplane is . Hence preserves the Euclidean norm and distance, and whenever . Thus it is an Euclidean isometry fixing the hyperplane pointwise.
For , any reflection exchanging them must have normal parallel to , and its fixed hyperplane must contain their midpoint. These requirements determine the perpendicular bisector uniquely:Changing both signs of leaves the same reflection. It belongs to the orthogonal group exactly when its translation term vanishes, that is, . Since ,To prove the finite reflection decomposition of a Euclidean isometry, first note that a distance-preserving map fixing zero preserves inner products by the polarization identity. Its values on an orthonormal basis form an orthonormal basis, and shows . Thus is orthogonal.
Every orthogonal transformation is a product of at most linear reflections: if , reflect to using the hyperplane normal , which passes through zero. The resulting orthogonal transformation fixes , and its restriction to is handled inductively in dimension . If , no initial reflection is necessary. Reflections on the complement extend by fixing ; the induction starts in dimension zero.
For an arbitrary isometry , if , first reflect to zero across its perpendicular bisector with zero. Composing this one affine reflection with gives an orthogonal transformation. If , skip the initial reflection. ThereforeThe glide reflection cannot use fewer than three: its determinant sign is negative, excluding zero or two reflections, while absence of fixed points excludes a single reflection. Three suffice by reflecting successively in , , and .
Past exam of the mathematics course of the University of Cambridge 2017 ib Paper 2 19C Solution Created 2026-09-24 Updated 2026-10-05
The linear least-squares problem is to minimize over , allowing an overdetermined system to have a nonzero residual. For a full QR decomposition, is orthogonal and is with an upper-triangular top block. Orthogonal transformations preserve the Euclidean norm, soIf has full column rank, the top triangular block is nonsingular; setting its residual to zero gives the unique minimizer, while the remaining residual is independent of . Without full column rank, minimizers still exist but need not be unique.
For the specified matrix, one Householder reflection already produces an upper-triangular matrix. Take , the difference between the first column and , and setThe formula gives , . Direct multiplication yields the Householder QR decompositionAll subdiagonal entries in the remaining columns are already zero, so no further reflection is needed. For the supplied right-hand side, . Back substitution gives , , , henceThe residual is orthogonal to every column of , independently confirming the normal equations .
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 ii Paper 2 38A iv Solution Created 2026-09-24 Updated 2026-10-05
Let be the interior-grid matrix representing , with zero boundary error. It is real symmetric and has the stated sine eigenbasis. Put and ; the negative of its eigenvalue isThis increases in each variable on . With , the smallest absolute eigenvalue is at least . Hence its Euclidean norm operator norm satisfiesThe corrected scheme has an unscaled residual whose individual entries are uniformly . There are entries and , so . Subtracting the exact nodal equations from the numerical equations gives (with sign depending on the residual convention), and thereforeChoose a constant slightly larger than the resulting bound to obtain the requested strict for all sufficiently small . Uniform smoothness is needed for an -independent constant; unspecified smoothness only in the interior would not by itself guarantee it.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 39A a Solution Created 2026-09-24 Updated 2026-10-05
Let . The zero Dirichlet boundary values introduce no forcing terms, so the scheme isThe common orthogonal sine eigenvectors have -eigenvalues . Thus is invertible for every , and each amplification eigenvalue isThe matrix is orthogonally diagonalizable, so its powers have Euclidean norm at most one, uniformly in the mesh and time step. Therefore Crank-Nicolson diffusion scheme is stable for every . Negative amplification factors at large can create temporal sign oscillations, which do not contradict this norm stability.
Past exam of the mathematics course of the University of Cambridge 2018 ia Paper 1 5C Solution Created 2026-09-24 Updated 2026-10-03
The dot product and Euclidean norm are and . For every real ,Its quadratic discriminant is nonpositive, proving the Cauchy-Schwarz inequality . In the inequality asked for, equality holds exactly when is a positive scalar multiple of , and
Using the Levi-Civita symbol and its contraction identity,
Put , the scalar triple product. Cyclic symmetry gives , so each requested angle satisfies . If every pairwise angle is and , the preceding identity givesand therefore . This is when ; for a right-handed orthonormal basis and , has norm .
The three planes have equations , , and . They meet at one point exactly when , meaning their normals are linearly independent vectors. The point is
Past exam of the mathematics course of the University of Cambridge 2018 ib Paper 2 12F b Solution Created 2026-09-24 Updated 2026-10-03
For , the reverse triangle inequality givesby the Cauchy-Schwarz inequality. Hence is Lipschitz continuous, and therefore continuous.
On the compact Euclidean unit sphere, is positive and continuous, so the extreme value theorem gives . Homogeneity then yieldsThus every norm on a finite-dimensional vector space is equivalent to the Euclidean norm; comparing two such bounds proves any two norms on are Lipschitz equivalent.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 331 4 a ii Solution Created 2026-10-03 Updated 2026-10-05
The relevant norm is the operator norm induced by the complex Euclidean norm, also called the matrix 2-norm:The maximum exists because the unit sphere in finite dimensions is compact. It obeys and is the norm relevant to the specified perturbation energy. Other matrix norms do not in general give this gain.
Past exam of the mathematics course of the University of Cambridge 2019 ib Paper 2 19C Solution Created 2026-09-24 Updated 2026-09-29
The linear least-squares problem is to choose minimizing the Euclidean norm of the residual:For a QR decomposition , orthogonality of gives . If has full column rank and is in standard form with invertible upper-triangular , the minimizer solves .
Applying the Gram-Schmidt process to the columns of the given matrix yieldsIndeed, is an orthogonal matrix and . Moreover,Back substitution in the leading triangular system givesso the unique least-squares solution isThe unused final transformed residual component is , so the minimum residual norm is .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 3 a i Solution Created 2026-10-03 Updated 2026-10-05
The spectral norm is the operator norm induced by the Euclidean norm:The Pauli operators and act on different qubits, and each is a unitary operator. Their product is therefore unitary and preserves the norm of every vector. Hence
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 348 2 b ii Solution Created 2026-10-03 Updated 2026-10-05
Use the intended strong convexity bound . The original PDF omits on the right. The printed bound for every is impossible when , as shows. Equivalently, the intended bound is stated for unit vectors. The norm of is the operator norm induced by the Euclidean norm, or any matrix norm that bounds it.
SetThis function is , and its Hessian matrix satisfiesPart (i) therefore proves that is a convex function. The perturbation can use up the entire positive lower bound defining a strongly convex function; only convexity, rather than strict positivity of the Hessian matrix, is asserted.
