The power iteration starts from , normally scaled to unit Euclidean norm, and repeats
Normalization prevents the rapidly growing or decaying magnitudes of from obscuring its direction. The iteration requires .
Because is a diagonalizable matrix, choose an eigenbasis , with corresponding eigenvalues , and expand . First suppose the dominant eigenvalue is simple and . Then
For
the sum in parentheses after is in Big O notation. Consequently the power iteration direction error is : the iterates approach the line spanned by . For a real matrix, a uniquely dominant eigenvalue is real, since otherwise its complex conjugate would have the same modulus. If , approaches one unit eigenvector; if , successive alternate signs. In either case,
This is the sign and phase in power iteration qualification. Also, the necessary assumption is a nonzero coefficient in the eigenbasis, rather than merely a nonzero ordinary inner product with : those tests can differ for a nonsymmetric matrix. If , the method cannot generate the missing component.
If the dominant value has a higher-dimensional eigenspace, the same argument replaces by the nonzero sum of all starting components in that eigenspace. The limiting direction is then that of this sum, which is still an eigenvector for . The usual algorithm assumes ; a strict dominance gap guarantees this whenever another eigenvalue is present.
An estimate retaining the sign of is the Rayleigh quotient
Continuity of this quotient at a nonzero eigenvector proves the limit even when is a nonsymmetric matrix. Alternatively, for a coordinate whose limiting eigenvector component is nonzero. The scaling factor alone tends only to .
Applying the implicit midpoint rule to the simple harmonic oscillator system gives
Factor the change in the quadratic form and substitute these equations:
Thus every step preserves the first integral
For completeness, the implicit equations are solvable for every real : putting , their coefficient matrix has determinant and the update is
This is an orthogonal matrix, as follows from . It therefore preserves the Euclidean norm, explaining geometrically the exact energy conservation. This is a concrete instance of Runge-Kutta conservation of quadratic invariants. Preservation of the circle does not assert that the numerical and exact solutions have the same phase at a fixed nonzero step size.
A real square orthogonal matrix satisfies . Equivalently its columns form an orthonormal basis. In particular it preserves the Euclidean norm, since .
A real square orthogonal matrix satisfies , so it preserves the Euclidean norm. The columns of are orthonormal, hence . The induced matrix norm therefore gives
For the left truncation, , and equality is guaranteed for arbitrary only when . Indeed, if , take , where is an omitted column of . Then but . Merely taking does not guarantee preservation for an arbitrary .
A full QR decomposition of a real matrix is , with orthogonal and upper trapezoidal; for a square matrix, is upper triangular. Fix the following sign convention for a Givens rotation: it is the identity except for its block
The block transpose times the block is because , proving orthogonality. Writing , the choice gives and . To zero the other coordinate take , giving . If , both entries are already zero and the identity suffices.
For a tridiagonal matrix, successively rotate adjacent row pairs , each time zeroing the current entry . Earlier columns remain triangular because both affected rows are already zero there. The result is upper triangular, so gives its QR decomposition. Only rotations are required; the resulting has at most two superdiagonals.
For a full square matrix, process columns . Within column , for , rotate rows to eliminate the current entry. Previously cleared columns stay clear. With in application order, , one has . This is QR decomposition by Givens rotations.
The vector Euclidean norm is , the ordinary length from the origin. The induced matrix norm is
Geometrically this is the largest stretch of a unit vector. A linear map sends the unit sphere to an ellipsoid, possibly degenerate; its largest semiaxis has length . Equivalently the matrix 2-norm is the largest singular value.
For the matrix's Euclidean operator norm, orthogonal invariance of the Euclidean norm gives
Taking gives equality, so . For the Frobenius norm, the trace identity and the singular value decomposition give
Consequently
Here the Euclidean matrix norm means the operator norm induced by the vector Euclidean norm, rather than the entrywise Euclidean length, which is the Frobenius norm.
Because , choose a unit vector in the null space of , so that . Let have orthonormal columns, for example the first columns of , and choose a real number . Set
Its singular value along is , and its other singular values are . Thus . Meanwhile . If has full column rank, the column space of the thin QR decomposition is exactly , which is orthogonal to . Hence for , and
Conversely, an orthogonal projection is a contraction in the Euclidean norm, so . Therefore
If is rank deficient, complete the QR decomposition within : this space has dimension and contains all columns of , so the required orthonormal completion exists there. The same proof applies. For rank-deficient data the choice of unused columns of matters; the construction specifies a valid choice. If instead contains only a basis of , the conclusion holds without any completion. A fixed sampling matrix can thus miss the unique largest singular value completely.
Write and . The Arnoldi decomposition and give
Because has orthonormal columns, it preserves the Euclidean norm. The generalized minimal residual method therefore reduces to the small linear least-squares problem
Use Givens rotations on the upper Hessenberg matrix to obtain a QR decomposition
where is an orthogonal matrix and is an upper triangular matrix. Then solve by backward substitution in a triangular system and form . The resulting minimum linear-system residual has Euclidean norm .
The small problem has a unique answer: if , the Arnoldi decomposition gives . The invertible matrix implies , and the orthonormality of then gives . Thus has full column rank and is nonsingular.
Under the permitted singular value bounds, gives
For the symmetric positive-definite matrix in part (iii), its eigenvalues are the squared singular values of , so
Apply the supplied conjugate gradient convergence bound to . For and nonzero , the function increases with , giving
Thus the error in this weighted norm contracts at a guaranteed exponential factor of at most per iteration, up to the prefactor . Here . The Pythagorean identity in part (iii) also identifies with the excess squared linear least-squares problem objective, which consequently decreases by a bound proportional to . For the Euclidean norm, the same eigenvalue bounds give .
For relative accuracy in the -weighted norm, it is sufficient to take
Compute once in operations. Each iteration applies with two dense matrix multiplications and uses further arithmetic operations; when this costs . Hence the total cost is
Using finite termination of the conjugate gradient method in exact arithmetic refines this to . Explicitly constructing first would add setup work and is unnecessary. These accuracy estimates concern relative error; an absolute tolerance replaces by when . If , the initial guess already solves the problem.
As in part 2(b)(v), the Gaussian assumption alone does not make the printed singular value interval a certainty. For example, the event that every entry of has absolute value below a sufficiently small positive number has positive probability and forces , contradicting the asserted lower endpoint. The displayed rate is therefore conditional on the singular-value bounds authorized by the paper. The cost and convergence derivation are exact under that condition; an unconditional probabilistic statement would need an additional failure-probability estimate.
On the vector space of nodal values with zero endpoints define the discrete Sobolev norm
It is a norm because it is the Euclidean norm of the scaled list of nodal values and first finite differences, and vanishes only for the zero list. It is the discrete counterpart of the Sobolev space norm. Here has zero endpoints, so this definition applies directly.
Set , finite by the assumed continuity. Taylor's theorem with fourth-order remainders gives, for suitable and ,
Adding the two expansions cancels the odd derivatives, so
Consequently . Doubling the bound in (c) gives , and therefore
Thus is a valid nonnegative constant. To satisfy the request for a strictly positive constant even when , take , independent of . This proves second-order convergence of a numerical method in a discrete Sobolev norm, including control of the backward difference operator applied to the error.
Solutions to all three questions of the optimisation for data science course of the University of Oxford Part B examination, sat on 7 June 2023. Source: original released PDF, bundle pages 300–303; paper pages 1–4. The original question numbering is retained without reproducing the question statements. Two printing errors on paper page 3 are addressed explicitly in parts 2(c) and 2(f).
Unless a subscript indicates the L1 norm, denotes the Euclidean norm. In Question 1, the regularization weight is and the step size is positive. The big O notation in part 1(d) is interpreted for fixed as the step size tends to zero, with the necessary subdifferential qualification explained there.
Again write and , and let denote its th block of coordinates. The block mixed norm in this part makes the proximal operator separate over blocks. For a single block, its minimiser solves
At a nonzero , the gradient of the Euclidean norm is . The subgradient optimality condition therefore becomes
Thus points in the direction of and . This yields when .
At zero, the subdifferential of the Euclidean norm is the closed Euclidean unit ball: the subgradient inequality is for every , which is equivalent to by the Cauchy-Schwarz inequality and the choice . Hence zero solves the subgradient optimality condition exactly when . This also covers and avoids division by zero.
The resulting radial soft thresholding is
If is the corresponding block of , the required proximal gradient mapping is
Whole blocks can become zero, while nonzero blocks retain their direction after the gradient step. For a block of size one, radial soft thresholding agrees with the soft-thresholding operator in part (a).
Set , and . Here is the proximal gradient mapping, is a squared Euclidean distance, and because is a global minimizer. The update gives .
First use the supplied inequality (1) with :
Thus the objective function values, and hence the errors , are nonincreasing. Next use (1) with :
Expansion of the squared Euclidean norm gives
so the last bound is exactly .
The telescoping sum over therefore gives
Since each summand is at least , we obtain the proximal gradient objective error bound
The bound holds for the last iterate. The monotonicity of the objective function values is what converts an averaged estimate into this last-iterate estimate.
For the linear least-squares problem objective function, direct expansion with gives
Its 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 . Consequently
Substitution into the expansion proves
Thus 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 .
Write . Dividing the corrected estimate from part (c) by gives the averaged stationarity bound for stochastic gradient descent
The Cauchy-Schwarz inequality, first within each expectation and then over the indices, gives
Thus
Equivalently, 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.
For arbitrary , write the Bregman divergence
Part (b), with its supporting affine function constructed at this , implies the coordinate derivative bound by Bregman divergence
For 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 gives
Now 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 estimate
In particular, take for any real . This proves (6), with a valid choice
The 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.
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) gives
Summing squared partial derivatives according to their inclusion probabilities,
For a strongly convex function, part 2(a) also yields the strong convexity gradient inequality
Indeed, 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 needs
to 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, gives
An 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 is
The 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 . Define
This 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 . Define
This 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 system
For 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.