Leave-one-out residual identity for a linear smoother Created 2026-09-24 Updated 2026-11-05
The familiar leave-one-out residual identity holds for ordinary or fixed-penalty ridge regression, but not for every arbitrary family of linear smoothers. Let be invertible, with a fixed penalty matrix and fixed , and let . If deleting row leaves the normal matrix invertible, then andThe Sherman–Morrison formula applied to gives the deleted coefficient estimate from the full one; multiplying by gives the identity. It permits Leave-one-out cross-validation without refitting all models.
The deleted fit must use the same penalty convention. Changing , selecting it again after deletion, or rescaling the loss while holding a normalized tuning parameter fixed changes the calculation. Merely writing the full fit as does not specify its deletion rule and does not establish this identity.
Matrix determinant lemma Created 2026-09-24 Updated 2026-10-14
For an invertible matrix and real vectors , the matrix determinant lemma statesThe expression is a scalar, so a rank-one matrix update changes the determinant by a single multiplicative factor. One need not expand the updated determinant entry by entry.
For the preceding example with , the dot product is . Hence the updated determinant is . Direct evaluation confirmsMore generally, let for a real scalar . The same calculation gives . The determinant is one at , two at , and zero at .
A compact proof explains the scalar reduction. Put and factor . If , choose a basis starting with . In that basis, , while every other basis vector changes only by a multiple of . Its matrix is triangular with diagonal , giving the required determinant. If , the correction vanishes. This uses multiplicativity of the determinant to restore the factor .
The denominator in the Sherman–Morrison formula is exactly this factor. The rank-one update singularity criterion therefore identifies when the updated matrix inverse ceases to exist. Batson, Spielman and Srivastava use both identities for the symmetric update in Twice-Ramanujan Sparsifiers, section 2.3, Lemmas 2.1–2.2.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 205 5 b Solution Created 2026-09-28 Updated 2026-10-03
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 205 5 c Solution 2026-09-28
For the active set , maintainThe initial matrix inverse costs . At step , compute in operations and all active ridge coefficients in operations; their smallest absolute value determines .
After deleting ,Part b ensures that the denominator in the Sherman–Morrison formula is positive, and the rank-one downdatecosts . Summing over the steps givesSince , both earlier terms are bounded by , proving the claimed computational complexity within computational complexity theory.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 205 5 b Solution Created 2026-09-24 Updated 2026-09-25
The leave-one-out residual identity for a linear smoother, obtained from the block matrix inverse or the Sherman–Morrison formula, isHence
Compute once the spectral decomposition in operations and the vector in . For each , setThen computeBoth calculations take operations per tuning parameter, after which the displayed leave-one-out formula costs . All scores therefore require operations.
Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 218 5 e Solution Created 2026-09-24 Updated 2026-09-25
Let , letand recover the sufficient cross-products from the model1 normal equations by setting and . Thenis the total squared residual about the fixed line. The squared sum of the ten residuals within each person, summed across people, isFor one person's ten observations, the marginal covariance matrix is . The matrix determinant lemma and Sherman–Morrison formula therefore give, up to an additive constant, twice the negative marginal log-likelihoodBecause the model was fitted with
REML = FALSE, it minimizes this ordinary marginal maximum-likelihood objective. Thus belongs to the stated argmin over and . Rank-one matrix update 2026-10-14
A rank-one matrix update changes a matrix by an outer product . For real vectors , its action on an input vector isThe dot product reads one scalar from the input, and the correction moves the output along . All correction outputs therefore lie in one linear span. If either vector is zero, the update is zero; otherwise the correction is a rank-one matrix. The full updated matrix need not have rank one.
For example, chooseThe update sends to the correction . Although all four entries change, there is only one direction of correction. Adding it to the identity matrix gives .
This special structure allows existing work to be reused. The matrix determinant lemma updates the determinant using one scalar, and the Sherman–Morrison formula updates the matrix inverse using an outer product. Such formulas are useful when a linear system changes slightly after a new observation or a parameter adjustment: the unchanged part can retain its LU decomposition. The term rank-one describes the rank of the correction, not the size of the entry changes. [ref]
https://ocw.mit.edu/courses/18-065-matrix-methods-in-data-analysis-signal-processing-and-machine-learning-spring-2018/988b4c05680f40a5a4b3be7004a32500_XhSk_Lw2X_U.pdf. Gilbert Strang, MIT 18.065, Lecture 14: Low Rank Changes in A and Its Inverse
. Rank-one update of pressure-map information 2026-11-05
A rank-one update of pressure-map information describes the extra constraint supplied by one independent scalar pressure measurement. Suppose the existing pressure-map information matrix is , and a new sensor reports with known variance , independent of the existing errors. Adding its squared residual to the weighted least squares objective givesThe added matrix has rank one when . It is positive semidefinite because its quadratic form is . Thus the new observation cannot reduce information in any direction under this fixed linear map and noise model. The noise normalization is the same whitening transformation used to express a correlated residual metric as an ordinary squared norm.[ref]
The update can remove a missing direction only if the new channel actually sees it. More precisely,This follows because a sum of two nonnegative quadratic forms is zero exactly when both are zero. Repeating an existing mixture improves its precision but cannot identify a pressure contrast that all mixtures annihilate.
When is positive definite, write . The Sherman–Morrison formula yields the updated estimator covariance matrixMultiplication by verifies the identity directly. For a particular quantity , its variance falls by . A small noise level is valuable only together with a useful sensitivity direction.
For an original calculation in kilopascal coordinates, let , and . ThenThe variance of the sum drops from to . The negative off-diagonal entry means the two inferred coefficients now have negatively correlated errors; it does not mean either individual variance is negative.
A correlated-channel update of pressure-map information needs the new channel's residual after predicting it from old channel noise. Simply adding double-counts information when a common amplifier or reference contributes correlated errors. A proposed array experiment uses repeated known loads to estimate sensitivity and noise separately, adds one channel, and compares withheld-load errors with . Agreement tests the full assumed model, including independence and unchanged sensor response, rather than the matrix identity alone.
Sherman–Morrison formula Created 2026-09-24 Updated 2026-10-14
The Sherman–Morrison formula computes the matrix inverse after a rank-one matrix update. If is an invertible matrix and , thenThe inverse correction is itself an outer product, divided by the scalar . The matrix determinant lemma shows that the nonzero-denominator condition is exactly the condition that the updated matrix remains an invertible matrix.
For , , and , we have . Thus the computed inverse isMultiplication in either order gives the identity matrix. The result reuses the original inverse and the same correction vectors, rather than solving independently for all four inverse entries.
Often only the solution of an updated linear system is needed. If and , thenprovided . The two solves use the same LU decomposition of . This expresses the computational benefit without requiring an explicitly stored matrix inverse. Strang's Lecture 14, transcript pp. 9–10 explains this reuse of the original factorization.
To see why the inverse correction works, first consider and put . The rank-one matrix satisfies . Expandingalso works in the reverse order. The general case follows by factoring out and replacing by . A matrix identity has reduced to cancellation of scalar coefficients.
Historically, Jack Sherman and Winifred J. Morrison studied updating an inverse when a single matrix entry changes in their [ref]
https://doi.org/10.1214/aoms/1177729893. 1950 paper, Adjustment of an Inverse Matrix Corresponding to a Change in One Element of a Given Matrix
. Such an entry change is the special rank-one matrix update , with standard basis vectors . The reference and the earlier 1949 abstract on row or column changes are recorded in Henderson and Searle, On Deriving the Inverse of a Sum of Matrices (1981), references 40–41. This distinguishes the specific original setting from the more general formula used here. Woodbury matrix identity Created 2026-10-20 Updated 2026-11-05
For an invertible matrix , an invertible matrix , and compatible , the Woodbury matrix identity isprovided is invertible. Multiplying the right side by verifies the formula directly.
A rank- update therefore requires inversion of a correction rather than a new inverse. For , it reduces to the Sherman–Morrison formula. In implementations, occurrences of are usually obtained by solving linear systems. The smaller inverse must still exist; the identity does not make every low-rank update invertible.
