Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the optimisation for data science course of the University of Oxford 2023 2 c Solution by
Codex 0 2026-10-25
There is a summation-index misprint. On the native PDF, paper page 3, equation (4) has inside a sum indexed by . The intended telescoping estimate has inside that sum; this is the estimate proved below and used in part (d). The index mismatch is present in the original PDF, rather than being introduced by the transcription.
Take the expectation of the supplied conditional expectation bound (3), using the tower property:Rearranging and forming a telescoping sum givesBecause is a global minimizer, for every realisation. Hence the corrected equation (4) isAll expectations at a finite iteration are finite here: a deterministic starting point and finitely many choices of the sampled index produce only finitely many possible iterates. The bound controls accumulated squared gradients, with an additive contribution from the stochastic gradient noise floor.
Past exam of the optimisation for data science course of the University of Oxford 2023 2 b Solution by
Codex 0 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 a Solution by
Codex 0 2026-10-25
Let and take . Rearrange the defining inequality for a strongly convex function, applied to :Because is differentiable at , its directional derivative in direction isTaking the limit in the rearranged inequality givesThis is the supporting affine function inequality strengthened by a positive squared Euclidean distance. Differentiability at alone suffices; no derivative at is used.
Past exam of the optimisation for data science course of the University of Oxford 2023 1 d Solution by
Codex 0 2026-10-25
Fix , and write and . The supplied subgradient relation gives with . The evaluation point in is , whereas is a subgradient at the new point .
Apply the subgradient inequality at , with comparison point :The descent lemma for the -Lipschitz gradient of givesAdding these estimates proves the stronger, explicit inequalityIn particular, the objective function decreases for whenever the proximal gradient mapping is nonzero.
To justify the requested big O notation, we must check that , which depends on , stays bounded. Suppose is nonempty, and choose a fixed in this subdifferential. This holds for a finite-valued convex function on , including both norms in parts (a) and (b). By monotonicity of a convex subdifferential,Substituting and , and then using the Cauchy-Schwarz inequality, yieldsThus , uniformly in . This local boundedness of the proximal gradient mapping makes the remainder at most , soNo differentiability of is needed. If an proper extended-real function is allowed as the regularization term, the subdifferential condition at is a qualification for this uniform remainder; the preceding explicit descent inequality remains the useful statement whenever its quantities are finite.
Past exam of the optimisation for data science course of the University of Oxford 2023 1 c Solution by
Codex 0 2026-10-25
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 givesso the last bound is exactly .
The telescoping sum over therefore givesSince each summand is at least , we obtain the proximal gradient objective error boundThe bound holds for the last iterate. The monotonicity of the objective function values is what converts an averaged estimate into this last-iterate estimate.
Past exam of the optimisation for data science course of the University of Oxford 2023 1 b Solution by
Codex 0 2026-10-25
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 solvesAt a nonzero , the gradient of the Euclidean norm is . The subgradient optimality condition therefore becomesThus 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 isIf is the corresponding block of , the required proximal gradient mapping isWhole 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).
Past exam of the optimisation for data science course of the University of Oxford 2023 1 a Solution by
Codex 0 2026-10-25
Put and . The proximal operator for the L1 norm separates into independent scalar minimization problems:The subgradient optimality condition is . By the subgradient of the absolute value, a positive solution must satisfy , and a negative solution must satisfy . At zero, the subgradient optimality condition holds exactly when . The squared term makes the objective function a strictly convex function, so these cases give its unique minimiser.
Thus the proximal operator is the soft-thresholding operatorConsequently the requested proximal gradient mapping, rather than just the proximal operator, isThe corresponding proximal gradient method update is . Small coordinates are set exactly to zero. When , the soft-thresholding operator is the identity and the proximal gradient mapping reduces to .
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 3 c Solution by
Codex 0 2026-10-25
A finite first moment suffices for the velocity, but may not suffice for the printed potential. For example, has all the stated properties. If is the law of with density on , then but , and for every . Thus the literal definition of needs a finite second absolute moment, or another hypothesis ensuring integrability of .
For the specified class , define the velocity fields directly by and . Equivalently, use the renormalized interaction potentialThe bounded Hessian matrix and implyThus is finite, is twice continuously differentiable in space, and has , by dominated differentiation under the integral sign. Its rotated negative gradient is exactly . Whenever is finite, the two potentials differ only by an -independent constant and give the same transport equation.
We check the hypotheses for characteristic representation of a measure-valued continuity equation. For every ,For any coupling , the Lipschitz condition on also givesTaking the infimum over couplings proves the uniform boundApplying the same estimate at two times of one curve proves time continuity of , uniformly in . Also , so is bounded on compact time intervals. Spatial partial derivatives of are continuous and bounded by , using dominated convergence in space and weak convergence of probability measures in time for the bounded continuous kernel . All corresponding facts hold for .
The characteristic representation of a measure-valued continuity equation says that a continuous velocity field, continuously differentiable and globally Lipschitz in space and with locally uniform linear growth, has a global characteristic flow map solvingFor each , its pushforward measure is the unique weak solution in of the associated continuity equation. The hypotheses have all been verified above, and the fields have zero divergence, so these are also the two required transport equations. Explicitly,For completeness, the Gronwall inequality givesso these pushforward measures have finite first absolute moments. Integrating against proves continuity in the Wasserstein distance. The chain rule proves the weak identity. For uniqueness at a fixed terminal time , use the backward test function , where is continuously differentiable with compact support. It satisfies and has compact spatial support uniformly for , by the backward linear-growth bound. The weak identity with temporal cutoffs therefore gives , identifying every weak solution with the displayed pushforward measure.
Finally compare the two characteristic curves with the same initial point . Put . The spatial Lipschitz condition and the boxed velocity estimate givefor almost every time; the integral form gives the same conclusion at zeros of . The Gronwall inequality impliesThe pushforward measure is a coupling of . Integrating the last bound against the probability measure provesThe same constant depends only on the uniform bound for the Hessian matrix of , and is independent of the prescribed curves and their common initial data.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 3 b Solution by
Codex 0 2026-10-25
For a candidate curve , define the velocity field by the convolutionIt is well defined with a finite first absolute moment, because . Equality of mixed partial derivatives givesThe Hessian matrix bound justifies moving a spatial derivative through this convolution. For smooth densities, the transport equation consequently becomes the continuity equationThis form defines the equation for singular probability measures as well. With initial probability measure , a weak solution is a curve in such that every satisfiesUsing smooth test functions gives the same definition by approximation on compact sets. Continuity in the Wasserstein distance bounds first absolute moments on compact time intervals, so the displayed integrals exist.
For the empirical measure, the chain rule and the particle equations giveIntegrating in time, with zero terminal contribution because has compact support, gives precisely the weak identity and the correct initial empirical measure. Thus is a global weak solution. The self-interaction term vanishes since .
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 3 a Solution by
Codex 0 2026-10-25
SetSymmetry here means , so and . The bounded Hessian matrix and the fact that is an orthogonal matrix giveThus the particle system is . On the configuration space with norm , its vector field has Lipschitz constant at most :The Picard-Lindelöf theorem gives local existence and uniqueness. Linear growth and the Gronwall inequality give , which rules out escape to infinity in finite time and extends the solution to every .
The associated empirical measure isHere each is a Dirac measure. The finite first absolute moment follows from . Pairing equal particle labels defines a coupling, soConsequently
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 2 e Solution by
Codex 0 2026-10-25
Choose a uniform lower bound for the Hessian matrix of the confinement potential, so for every . A sufficient condition isIndeed, convexity of gives the confinement energy inequality from part (b), now with possibly negative. Adding it to the equal-mean interaction energy inequality from part (d) givesThis proves positive displacement convexity on every class with fixed barycenter. In particular, if with , the sufficient condition is and one may take . Wherever classical second derivatives exist, the equivalent differential calculation is ; the integrated proof also covers the printed growth assumptions.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 2 d Solution by
Codex 0 2026-10-25
Define the barycenter of a measure by . Under , the mean displacement is , and optimality gives . Expanding the square under the product measure yields the variance identity for independent copies:In the classical regime of part (c), the lower bound on the Hessian matrix of the interaction potential therefore givesFor equal barycenters, this becomes
For the full stated class of probability measures, prove the displacement convexity inequality directly. Pointwise strong convexity of givesIntegrating, including the in the interaction energy, and using the displayed variance identity for independent copies givesAll terms are finite by quadratic growth and finite second absolute moments. Equal barycenters give the claimed -displacement convexity. Also , so this metric geodesic remains in the prescribed fixed-mean class. Applying the same argument to subintervals proves the second derivative bound in the sense of distributions even when a classical derivative has not been justified. The mean restriction is natural: translating all particles together leaves their pairwise differences and hence the interaction energy unchanged.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 2 c Solution by
Codex 0 2026-10-25
Use an independent copy of under the product measure . Write , , andSince the pushforward measure of under is , the interaction energy isTwo applications of the chain rule giveThe factor is retained. This classical identity requires differentiation under the integral sign to be justified, just as in part (b). Bounded Hessian matrix of is sufficient, since is integrable; compactly supported endpoints are another sufficient case. The printed quadratic-growth condition alone does not provide this domination.
The failure can occur for the interaction energy too. Take the even interaction potential and replace the endpoint probability measures in part (b) by and . Keep the origin fixed and translate every other atom by one. This coupling is increasing on the line, hence is optimal: its assigned values extend to a nondecreasing transport map, which is the gradient of a convex function. Differences between translated atoms remain integers, so their mutual interaction vanishes. Only interactions with the origin contribute, giving , with from part (b). It therefore also lacks a finite classical second derivative at .
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 2 b Solution by
Codex 0 2026-10-25
Set and . The definition of pushforward measure gives the confinement energy . The chain rule and differentiation under the integral sign, whenever justified, giveFor example, bounded Hessian matrix is sufficient: it gives , and the first two differentiated integrands are bounded by . The dominated convergence theorem applies because has finite second absolute moments. Compactly supported endpoints also suffice because all interpolating points lie in one compact set.
The printed growth assumption alone does not ensure a classical second derivative. Here is a counterexample within the stated assumptions. On the line take the bounded nonnegative smooth functionand the probability measures , . Both have finite second absolute moments. Their translation transport plan is optimal: its cost is one, while every coupling has cost at least the square of its mean displacement, also one. At , , so satisfies . Each summand is nonnegative, and the Fatou lemma givesThus the requested classical identity requires an additional integrability assumption on the Hessian matrix; quadratic growth controls the energy but not its second derivative.
For a confinement potential that is a -strongly convex function, the derivative formula, where valid, yieldsThe underlying displacement convexity conclusion is valid under the printed assumptions without that extra differentiation hypothesis. Apply convexity of pointwise and integrate:The same argument on every subinterval makes convex, so the second derivative lower bound also holds in the sense of distributions.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 2 a Solution by
Codex 0 2026-10-25
Put and . The marginal distributions of the optimal transport plan give and . Alsoso has a finite second absolute moment. For , the pushforward measure is a coupling of . ThereforeApply the triangle inequality for the second Wasserstein distance along :All inequalities are equalities, including when . Thus this displacement interpolation is a constant speed metric geodesic:
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 1 e Solution by
Codex 0 2026-10-25
Choose the bounded, nonnegative nondecreasing function from part (d), and defineThe function is convex and nondecreasing. For , the triangle inequality, monotonicity, and convexity giveHence is a convex function. By the gradient of a radial function formula and the fundamental theorem of calculus,for whenever . A monotone function has at most countably many discontinuities, so part (d) makes the exceptional radii -null. The origin is also -null. Define ; thus -almost everywhere.
For every in the orthogonal group, , including at zero. Consequently is invariant under the orthogonal group. Moreover away from the null origin, and composition of pushforward measures givesPart (c) therefore gives . The Knott–Smith optimality criterion makes a transport map given by a convex function's gradient optimal for the quadratic transport cost. Uniqueness from Brenier's theorem yieldsSince directions agree, this also identifies the optimal value:
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 1 d Solution by
Codex 0 2026-10-25
Write , with . Applying polar coordinates and Fubini's theorem gives, for bounded nonnegative measurable ,Also by absolute continuity of measures. Extending by zero on the negative half-line proves
Both radial pushforward measures have compact support of a measure, so Brenier's theorem on the line supplies a unique optimal transport plan and a transport map , unique -almost everywhere, withIn one dimension, the gradient of a convex function is a nondecreasing function. Nonnegativity holds -almost everywhere because is carried by . To choose a nonnegative, nondecreasing representative everywhere, let be the radial cumulative distribution functions and use the monotone rearrangementAt set , and at use the largest point of the support of a measure . These choices preserve monotonicity and boundedness. Since is continuous, has the uniform distribution on when has law , and the quantile function sends this uniform distribution to . Thus this representative has the required pushforward measure, even if the target has atoms.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 1 c Solution by
Codex 0 2026-10-25
Let . The corrected radial disintegration of an orthogonally invariant measure, whose proof did not require absolute continuity of measures, gives for every test function Finite Borel measures on Euclidean space are determined by their integrals against test functions: the difference defines the zero distribution, or one can approximate continuous compactly supported functions uniformly by smooth functions and use regularity of the measures. Therefore
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 1 b Solution by
Codex 0 2026-10-25
Write . Since and , the orthogonal reflection satisfies and . Thus, for every Borel set , invariance under the orthogonal group gives
The spherical average must use normalized surface measure without an additional area factor. Let be the normalized surface measure on a sphere, and setThe correct radial disintegration of an orthogonally invariant measure isIndeed, take normalized Haar measure on the compact orthogonal group . Invariance and Fubini's theorem giveRight invariance of Haar measure and transitivity of the orthogonal group on each sphere show that the inner average depends only on . Averaging it once more over , using invariance of surface measure on a sphere and Fubini's theorem, identifies its value as . At the same identity reads . The definition of pushforward measure now proves the boxed formula. This argument also works for invariant probability measures with an atom of a measure at the origin.
For the printed normalization, choose a smooth cutoff function equal to one on a ball containing the support of a measure . Its left integral is one, whereas the printed right integral is . Thus the extra cannot be retained. Equivalently, with unnormalized area measure , the average is .
The reflection-averaging hint also fails in general dimension. For ,The first equality uses , which follows from coordinate reflections, coordinate permutations, and . Taking a test function equal to the first coordinate near the unit sphere disproves the hint when . Averaging over the full orthogonal group, as above, proves the required corrected result without that hint.
Past exam of the optimal transport and partial differential equations course of the University of Oxford 2025 1 a Solution by
Codex 0 2026-10-25
Compact support of a measure gives finite second absolute moments for both probability measures. Since the source satisfies absolute continuity of measures with respect to Lebesgue measure, Brenier's theorem identifies the quadratic Kantorovich optimal transport problem with the Monge optimal transport problem:Here is the pushforward measure. The optimal transport plan is unique and equals . The optimal transport map is unique up to a -null set, withThe gradient of this convex function is c-cyclically monotone for on a full-measure set. In particular, summing the two supporting inequalities for the convex function gives wherever both gradients exist. No regularity of the target beyond the stated probability measure assumptions is needed.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





