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.
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 gives
Adding these estimates proves the stronger, explicit inequality
In 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, yields
Thus , uniformly in . This local boundedness of the proximal gradient mapping makes the remainder at most , so
No 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.
For seismic source inversion, collect calibrated, consistently filtered samples from all available stations and components into a data vector . For each trial source position and origin time, compute the corresponding elastodynamic Green tensor in an Earth model, including the instrument response used for the data. Write the symmetric seismic moment tensor in six independent symmetric basis tensors:
Each column of is the synthetic seismogram for one basis tensor. An off-diagonal basis tensor contains both symmetric entries, so the double contraction and its factors of two remain consistent.
A suitable objective is
with noise covariance ; a justified penalty can be added for regularization. At fixed , solve for the six entries of by weighted least squares, preferably using a QR decomposition or singular value decomposition rather than explicitly inverting the matrix of the normal equations. Then search over the four nonlinear parameters using a coarse location/time grid followed by local refinement. This variable projection reduces a ten-parameter search to a four-parameter nonlinear search with an inner six-parameter linear fit. Merely having more than ten data samples does not ensure identifiability: the design matrix must have adequate rank and the network must resolve the source's radiation patterns.
Potential errors include inaccurate velocity, density, anisotropy and attenuation in the assumed Earth model; neglected finite rupture and source-time effects; timing, instrument calibration or component-orientation errors; correlated noise; uneven station coverage; and tradeoffs between depth, origin time and the moment tensor. Imposing a double-couple seismic source mechanism without evidence can hide genuine non-double-couple components. Regularization also changes the recovered source and should be reported.
Inspect residuals, singular values, recovery of synthetic sources and uncertainty under resampling or noise perturbations. Linearized covariance or a posterior distribution can quantify uncertainty within the assumed forward model, but does not automatically account for errors in that model. A good waveform fit alone is insufficient evidence that all ten parameters are uniquely recovered.
Write , where contains the quadratic kinetic term and mass term, and . Then
Let and let denote the unit-normalized free Gaussian vacuum expectation value. The unnormalized numerator is consequently
The Minkowski path integral is understood with the usual scalar Feynman propagator pole prescription, as a formal perturbation series. A real cubic potential energy is unbounded below; no nonperturbative stable vacuum is being assumed here.
Set , , and , with a common regularization understood for coincident points. The zero-order one-point term has one field and vanishes. At first order, Wick's theorem gives three choices for the contraction with the external field, leaving a tadpole diagram:
The second-order term contains seven fields, so it vanishes by the vanishing odd correlators of a free Gaussian field. Hence
The coefficient is , or symmetry factor when each diagram is weighted by . No spacetime integral has been evaluated. The one-point tadpole diagram is shown in the first panel of the following figure; its other panels organize solution.
Figure 1.
Cubic one- and two-point Wick contractions; vacuum factors cancel, but the product of two one-point tadpoles remains in the full two-point correlator
. Details.
Use mass dimensions with , and dimensionless action. The Lagrangian density in Euclidean space has dimension , and the kinetic term fixes . Thus
A dimensionless coupling constant is therefore
Here is a positive regularization scale with mass dimension one. The interaction is marginal at its upper critical dimension , relevant below it and irrelevant above it by this engineering-dimension test. In particular, , while near . At this stage is the dimensionless version of the displayed bare coupling; after introducing counterterms one may use the same scale factor for the renormalized coupling.
Let be the action-consistent free propagator established in a. Write and put
The perturbative expansion is
Divide numerator and denominator by the same free vacuum functional . For , they become
For , abbreviate and . Since only opposite-charge fields contract, Wick's theorem gives
and
The first multiplicity is internal pairings. In the connected term, there are two choices for the vertex's contracted to the external and two for its contracted to the external ; the remaining pair forms a tadpole diagram. Therefore
Expanding the inverse denominator cancels the free-line times vacuum bubble term, leaving
The local quartic interaction vertex has factor , since cancels its denominator 4. The oriented tadpole diagram has Feynman-diagram symmetry factor 1; the isolated two-loop vacuum vertex has factor in its coefficient. Coincident kernels and the integrals require a common regularization; none is being assigned a finite numerical value here.
Figure 1.
Free propagation, its disconnected vacuum factor, and the connected oriented tadpole correction
. An arrow from u to v represents C(u,v). The disconnected vacuum factor cancels against the denominator of the normalized correlation function. Details.
More generally, vacuum bubbles exponentiate and factor from every numerator. Here global U(1) symmetry also makes all one-point functions zero. Thus a surviving graph with the two external insertions in separate connected components would have a component with one unbalanced charge and vanish. This proves that only connected graphs contribute to this particular two-point function to all perturbative orders. Vacuum normalization alone would not remove disconnected components containing external legs in a general four-point function. If one formally chooses a different free kernel, the displayed Wick multiplicities are unchanged; replacing by gives a formal oscillator series, not the Gaussian integral of the action as printed.
The outgoing wave is singular at the origin, so its value there cannot be inserted without regularization. At a short radial distance , with ,
The incident factor tends to one independently of the chosen approach direction; the singular part is isotropic. The discrete-state equation becomes, to the retained short-distance order,
Keeping only and discarding would lose the outgoing-wave imaginary part and produce an amplitude inconsistent with scattering unitarity.
Perturbative quantum field theory Created 2026-09-24 Updated 2026-11-05
Perturbative quantum field theory approximates an interacting quantum field theory by expanding around a solvable reference theory, usually a free field theory. Powers of interaction couplings organize the contributions to correlation functions and scattering amplitudes. Feynman diagrams encode the terms, their internal propagators and their combinatorial factors.
At leading order, tree diagrams often reveal the main process; loop diagrams give quantum corrections. Divergent intermediate expressions require a specified regularization and renormalization prescription before comparison with physical quantities. A small coupling is helpful but is not the only validity condition: large logarithms, thresholds or long evolution can invalidate a fixed-order approximation. Some phenomena, including certain bound states and tunnelling effects, require resummation or methods beyond an ordinary power series.
RELION 2026-11-05
RELION is software for statistically regularized reconstruction and classification of macromolecular structures from single-particle cryo-electron microscopy images. A particle image is a noisy projection with initially uncertain orientation and displacement. The reconstruction must infer those hidden quantities while estimating the three-dimensional structure. [ref]
The Bayesian framework combines an image likelihood with prior information that limits unsupported high-resolution detail. Iterative classification can separate subsets consistent with different structures rather than averaging every particle into one object. Regularization does not guarantee a correct result: starting models, image quality, heterogeneity and validation still matter. A sharp-looking reconstruction is a model inferred from measurements, not a direct three-dimensional photograph.
Ridge regression Created 2026-09-24 Updated 2026-10-14
Ridge regression fits a linear regression model while penalizing the size of its slope regression coefficients. For a fixed design matrix containing the slope predictors, observed responses , and an unpenalized regression intercept , the objective is
Here is the all-ones vector, and is the squared Euclidean norm of the slopes alone. The first term is the residual sum of squares; the second implements regularization. No random-error assumption is needed to define this fit. The convention is a summed squared-error loss: writing the objective as gives the same fit when .[ref]
For an exact example, reuse the constructed pairs from linear regression. Their sample means are and , and the centered cross-products are and . Thus
The ordinary least squares line has slope and residual sum of squares . At , ridge regression has slope , regression intercept , and residual sum of squares ; at these become , , and . Every line passes through : the penalty reduces the slope while retaining the response sample mean.
Figure 1.
Exact synthetic ridge fits flatten around the sample mean as training RSS increases
. Details.
The computational benefit is visible after predictor centering. Write for the design matrix with each column's sample mean subtracted, and . The unpenalized intercept in ridge regression gives , and the closed-form ridge regression estimator solves
For any nonzero vector and , . This positive-definite matrix is therefore invertible even when lacks full column rank, including repeated columns or . The unique penalized slopes resolve the ambiguity of rank-deficient ordinary least squares; they do not supply evidence about slope directions absent from the data. This makes ridge regression useful for multicollinearity.[ref]
Predictor centering and scaling serve different purposes. Centering handles the free regression intercept. Scaling determines what counts as a large slope: replacing by changes its coefficient to for the same predictions, changing its contribution to an unweighted penalty. A common convention forms standard scores using each nonconstant predictor's sample standard deviation , then penalizes slopes in those coordinates. Since , this is the weighted penalty in the original units. Constant columns have and must be removed before this scaling. Scaling is a modelling choice; equal penalties in original units and in standardized units define different fits.[ref]
The singular value decomposition explains the shrinkage. If is the compact decomposition using the positive singular values , with columns of , then
The principal-component shrinkage by ridge regression factors are between and : directions with small singular values are damped most. As , the fitted values approach ; the vanishing-penalty ridge limit recovers the ordinary least squares fitted vector as , even if the slope estimates at zero penalty are nonunique. The covariance and bias of a ridge regression estimator describes the resulting bias-variance tradeoff. A penalty can reduce variance of an estimator while introducing bias of an estimator; the unbounded directional risk of fixed ridge shrinkage rules out a uniform improvement for a fixed positive penalty over all possible signals.[ref]
For a second exact construction, choose a centered orthonormal set of three vectors,
and set and . The squared singular values are and . At , the fitted coordinates along are , retaining and of their ordinary least squares values . At they become , retaining and . The unfittable component contributes to every residual sum of squares, giving total values , , and at penalties . These are constructed fits, not measured prediction results.
Figure 2.
Exact synthetic ridge shrinkage retains the strong singular direction longer than the weak one
. Details.
The penalty is a hyperparameter, so fitting slopes at a fixed value and selecting that value are separate tasks. Use a validation set or K-fold cross-validation to compare candidate penalties by held-out squared-error loss. In each split, compute predictor sample means and scales from that split's training data, apply the same transformation to its validation set, and refit the slopes; using held-out information in preprocessing introduces data leakage. Minimum training residual sum of squares cannot select useful shrinkage: ordinary least squares already attains the smallest possible value.[ref] After model selection, refit on all training data with the selected penalty. A separate test set or nested cross-validation assesses the entire selection procedure; a low selected validation score alone is no performance guarantee.[ref]
Seismic tomography Created 2026-10-20 Updated 2026-10-20
Seismic tomography infers a spatial model of elastic-wave propagation from many source-receiver observations. Uneven illumination, finite wavelength, parameter tradeoffs and regularization limit its resolution. A seismic-velocity image is not directly an image of temperature or flow velocity.