Past exam of the optimisation for data science course of the University of Oxford 2023 2 b Solution 2026-10-25
For the linear least-squares problem objective function, direct expansion with givesIts gradient is , so the middle term equals .
Use the supplied thin singular value decomposition . Since , the linear map preserves the Euclidean norm. The square matrix is an orthogonal matrix, so . ConsequentlySubstitution into the expansion provesThus is a strongly convex function with modulus . This modulus is sharp: choose for an index attaining the smallest singular value. The Hessian matrix is , so the same conclusion says that its smallest eigenvalue is .
Past exam of the optimisation for data science course of the University of Oxford 2023 2 d Solution 2026-10-25
Write . Dividing the corrected estimate from part (c) by gives the averaged stationarity bound for stochastic gradient descentThe Cauchy-Schwarz inequality, first within each expectation and then over the indices, givesThusEquivalently, if is chosen independently of the run with the discrete uniform distribution on , then . The same bound for the expected Euclidean norm follows by the Cauchy-Schwarz inequality.
The guarantee is averaged or best-iterate stationarity. It does not assert that every last iterate converges, or that the limiting Euclidean norm equals . The squared gradient bound has excess above ; the displayed expected Euclidean norm bound is within of , including the zero-noise case. For fixed , it is sharper:For example, to ensure with , it suffices that . The big O notation here concerns these upper bounds, rather than an asserted asymptotic equality for the stochastic gradient noise floor.
Past exam of the optimisation for data science course of the University of Oxford 2023 3 c Solution 2026-10-25
For arbitrary , write the Bregman divergencePart (b), with its supporting affine function constructed at this , implies the coordinate derivative bound by Bregman divergenceFor a nonempty block , set and . Sum the coordinate inequalities:Since in part (b) was arbitrary, interchange and to obtain the same left side bounded by . Adding the two inequalities and dividing by two givesNow require that have zero coordinates outside . The last dot product is then . By the Cauchy-Schwarz inequality,If , the desired estimate is immediate; otherwise divide by its Euclidean norm. We have proved the stronger block Lipschitz constant from coordinate smoothness estimateIn particular, take for any real . This proves (6), with a valid choiceThe least admissible Lipschitz constant is therefore no larger than this choice. For the empty block, the block coordinate gradient vanishes identically and its least nonnegative Lipschitz constant is zero. The proof uses only differentiability, convexity and coordinate Lipschitz continuity, with no assumed Hessian matrix.
Past exam of the optimisation for data science course of the University of Oxford 2023 3 d Solution 2026-10-25
The supporting inequality in part 2(a) bounds below by an affine function plus a positive squared Euclidean norm, making it a coercive function. Its continuity gives a global minimizer , which is unique by strict convexity. Let , and . Here is the block size, so its role differs from the number of component functions in Question 2. Use randomized block coordinate descent with uniformly sampled blocks of size , independently at each update. Sampling uniformly from a fixed partition into equal-sized blocks gives the same calculation, since each coordinate has inclusion probability .
Let be a common upper bound on the block Lipschitz constants. Part (c) permits . With step size , part (a) givesSumming squared partial derivatives according to their inclusion probabilities,For a strongly convex function, part 2(a) also yields the strong convexity gradient inequalityIndeed, substitute into the supporting inequality and complete the square in : the expression is at least for every .
Combining the last three estimates gives a contraction in conditional expectation:By the tower property and repeated application,An optimization epoch counts coordinate partial derivative evaluations: it comprises block updates or one full gradient update. With sampling with replacement, an optimization epoch is this work measure; it need not visit every coordinate. Consequently the block method needsto bring the expected objective function gap below , for , up to integer rounding.
For the steepest descent method, use a global Lipschitz gradient constant . Part (c) with the full block permits . The descent lemma with step size , together with the strong convexity gradient inequality, givesAn exact line search along the negative gradient does at least as well in objective function decrease per update. Ignoring its additional work, the resulting epoch complexity isThe common coordinate-based guarantees favour blocks by a factor in epochs. In fact, with the conservative constants and , both methods have the same guaranteed contraction per update, while a block update uses only coordinate partial derivatives.
This compares the bounds justified by the given constants. For a particular objective function, sharper constants give the comparison against ; an actual speedup of is not universal. Computing a block coordinate gradient also need not cost exactly of a full gradient evaluation. The epoch complexity comparison assumes that coordinate partial derivative counts are a useful measure of work, and does not itself establish a wall-clock comparison.
Put and . They are nonzero vectors with the same Euclidean norm. Choose the rotation matrix taking the direction to ; equal lengths then give . DefineThis is a translation by followed by a rotation about , so it is an isometry. Direct substitution gives and .
Put and . They are nonzero vectors with the same Euclidean norm. Choose the rotation matrix taking the direction to ; equal lengths then give . DefineThis is a translation by followed by a rotation about , so it is an isometry. Direct substitution gives and .
Multiply by to get the equivalent triangular systemFor nonsingular , compute and use back substitution:Orthogonal transformations preserve the Euclidean norm, making this a numerically stable reduction. The factors can be applied as stored Householder transformations without explicitly forming .
Since is invertible, is singular exactly when is singular. For an upper triangular matrix,Thus a singular forces at least one zero diagonal entry in . In that case, ordinary division-based back substitution must be replaced by a consistency/rank analysis: the system may have no solution or infinitely many solutions, and a rank-revealing factorization can identify the free parameters.
Expand the vector field about the reference trajectory:Over a sufficiently short interval, the tangent-linear propagator isConsequentlyIf has and the perturbation is initially parallel to , its squared Euclidean norm obeysPositive means instantaneous norm-squared growth, negative decay, and zero no first-order change. The corresponding norm growth rate is , not . These are eigenvalues of the symmetric part governing the chosen error metric, not generally the eigenvalues of the nonsymmetric Jacobian matrix or the long-time Lyapunov exponents. The direction and the reference Jacobian matrix evolve during a finite forecast.
A Givens rotation acts as the identity except on coordinates , where its block can be writtenThe block has orthonormal columns because and their inner product is zero, so . For , choose , . The new coordinates are , eliminating the th entry. If both entries are zero, the identity already works.
For the specified vector, one suitable matrix isIts rows are orthonormal, so it is orthogonal; in fact its determinant is one. The positive nonzero output component must be five because an orthogonal matrix preserves Euclidean norm.
The matrix is not unique. Left multiplication by any orthogonal matrix fixing the second coordinate vector preserves this output. For example arbitrary rotations of the first and third coordinates provide infinitely many alternatives.
A QR decomposition is , with orthogonal and upper triangular. Orthogonality gives , and therefore , proving invariance of the Euclidean norm.
The unshifted QR algorithm starts with . At step , factor and set . ThenThus consecutive matrices are related by orthogonal similarity, so they have the same characteristic polynomial and eigenvalues. Induction proves every iterate has the original eigenvalues. Symmetry is also preserved. When the iteration converges to diagonal form, its diagonal entries are the eigenvalues; practical implementations use shifts and deflation to improve convergence.
Past exam of the random matrix theory course of the University of Oxford 2025 3 d Solution 2026-10-25
- Generate an -by- real matrix with independent entries having the standard normal distribution.
- Compute a QR decomposition with an orthogonal matrix and an upper triangular matrix.
- Put and return . Then with having strictly positive diagonal.
The matrix is invertible almost surely. Indeed, successively sampled Gaussian columns have probability zero of lying in the proper linear subspace spanned by the previous columns. Thus the diagonal signs used above exist with probability one. Equivalently, apply the Gram-Schmidt process to the columns, always dividing each residual by its positive Euclidean norm; this produces directly.
To prove uniformity, fix . Each column of has density proportional to , so orthogonal transformations preserve its probability distribution. Column independence therefore gives .
The QR decomposition with positive diagonal is unique: if , then is both an orthogonal matrix and an upper triangular matrix, hence diagonal with entries . Its diagonal entries are positive, so it is the identity. It follows that the orthogonal factor of is . ThereforeBy uniqueness of normalized Haar measure on the compact group , the returned matrix has exactly the required probability distribution. Reflection invariance gives each determinant sign probability , so the algorithm samples both components of the orthogonal group. The positive-diagonal correction is essential when a numerical QR decomposition chooses its own signs.
Write . The two multivariate normal distribution probability density functions have ratioHere is the Euclidean norm. Consequently the smallest rejection sampling envelope constant, and its acceptance probability, areThe supremum is attained at ; hence no smaller constant can dominate the ratio. Draw and an independent from the uniform distribution on . Accept whenotherwise repeat with fresh independent random variables. One can generate using a random vector with independent standard normal distribution coordinates.
For any measurable set , the joint acceptance probability is . Dividing by proves that the returned random vector has probability density function . The number of proposals has a geometric distribution on the positive integers, with expected value . When , every proposal is accepted.
Write and let . The stated Euclidean norm givesTaking nonnegative square roots proves . At this is equality. This is a contraction bound in the transformed coordinates; an arbitrary nonorthogonal does not give the same unit-constant bound for the original error norm.
The characteristic polynomial isThus the eigenvalues are 1 and 11. Corresponding eigenvectors are and . Their dot product is zero and each has Euclidean norm . Normalizing givesThe columns are orthonormal, so . The eigenvector equations give and hence , proving the claimed orthogonal diagonalization of a real symmetric matrix.
For the vector equation, the Jacobian matrix isWrite the updated coordinates as . The second equation of the multivariable Newton iteration gives . Substituting into its first linearized equation givesHence , and, whenever ,
Starting from gives . Every subsequent iterate remains on the diagonal, where this is exactly the scalar Newton root-finding iteration from (b). The value , so .
For , concavity again puts the tangent's zero at or above . Alsoso . After one scalar step the sequence therefore enters the invariant interval proved in (b). It converges to at least quadratically. If the vector error is measured in the Euclidean norm, then , so the scalar quadratic estimate also gives a quadratic vector estimate. The initial off-diagonal step causes no difficulty because its Jacobian matrix is invertible and lands exactly on the diagonal.
Write . The squared Euclidean norm is , whose gradient is . The chain rule for the exponential function therefore gives the column gradientThe row derivative, if that convention is used for , is its transpose.
By the diagonal reduction in a two-variable Newton iteration, for . Put . Direct factorization gives the exact Newton map in optimization error identityThe assumed convergence makes the final factor tend to , so it is bounded for all sufficiently large . Hence . For the Euclidean norm error , this becomes , proving quadratic convergence. Unless the exact limit is reached in finitely many steps, .
The origin is feasible and has objective zero, while a Euclidean norm is nonnegative. Thus the minimum is , and the complete argmin isIf is injective, this set contains only the origin. If it has a nontrivial kernel, every feasible kernel vector is also a minimizer. No Lagrange multipliers are needed.
Interpret the norms as Euclidean norms and set . This is a real symmetric matrix with , hence a positive semidefinite matrix. Squaring the nonnegative objective does not change its argmin. Let be the smallest eigenvalue of and its eigenspace.
First minimize on the unit sphere. The Lagrange multiplier function has stationarity condition . Multiplication by shows that the squared objective at such a point is . The spectral theorem for real symmetric matrices also gives, for every unit vector, , with equality exactly in . This proves global minimality, rather than merely finding stationary candidates.
If , every point with has a strictly smaller objective after rescaling to unit length. ThereforeIf , the kernel of a linear map satisfies , since implies , and the converse is immediate. The minimum is then zero, attained precisely atIn this case minimizers need not have unit length. This distinction is essential for a rank-deficient , including any real matrix with . The result is the minimum image norm outside a Euclidean unit ball, governed by the least singular value.