From first principles
Count what a rectangular measurement can recover
For a real matrix \(A\), the squared output length in a unit input direction \(v\) is \(v^TA^TAv\). Since \(A^TA\) is symmetric and nonnegative, it has orthonormal eigenvectors \(v_j\) with eigenvalues \(\sigma_j^2\ge0\). Each positive eigenvalue defines a unit output direction \(u_j=Av_j/\sigma_j\). Distinct orthogonal input eigenvectors then have orthogonal output directions because
Resolve an input into these vectors and the null space. A component along \(v_j\) is amplified by \(\sigma_j\), while every null component disappears. For measured data \(b\), matching the observed output components gives
Adding any null vector produces the same prediction but increases the squared norm by its own squared length. This proves the minimum-norm choice. Data perpendicular to all the \(u_j\) remain as a least-squares residual, and noise along a small positive singular value can be amplified substantially.
Background · Singular value
Input and output directions can live in different spaces. A small positive singular value can cause large inverse amplification.
Derivation and applications
Find the smallest reconstruction in physically scaled coordinates
The minimum-norm solution of an underdetermined fit depends on which units and physical scale define the norm. Consider exact independent constraints \(Ax=b\) with fewer rows than columns, and let \(W\) be a symmetric positive definite matrix of penalties. Minimize \(\tfrac12 x^TWx\) among all feasible states. A reference value could first be subtracted if zero represents an inappropriate baseline. Factor \(W=L^TL\) and express the optimization in the scaled variable \(y=Lx\),
Thus the usual minimum-norm singular-value solution applies to the scaled matrix. An alternative derivation introduces a multiplier \(\lambda\). Differentiating \(\tfrac12x^TWx-\lambda^T(Ax-b)\) gives
Substituting in the constraints yields
The reduced matrix is positive definite for independent constraint rows. For any feasible perturbation \(h\) with \(Ah=0\), the cross term in the objective vanishes:
This establishes uniqueness and explains the role of the weighting. Directions that data leave unresolved are assigned by a stated metric. Changing units while transforming both \(A\) and the metric consistently preserves the physical result.
Worked example
Distribute a measured total with unequal motion costs
A balance gives \(x_1+x_2=10\) and the squared cost is \(x_1^2+4x_2^2\). Stationarity requires \(x_1=4x_2\), yielding \((8,2)\) at cost \(80\). The unweighted minimum-norm pair \((5,5)\) satisfies the balance but has weighted cost \(125\). There is no change in agreement with the measurement.
Second application
Check invariance under a change of coordinate units
Write a second balance \(u+v=6\) and equal physical cost \(u^2+v^2\). If \(w=100v\), the new row is \((1,0.01)\) and the cost is \(u^2+0.0001w^2\). The weighted solution is \(u=3,w=300\), recovering \(v=3\). Applying an unweighted norm to the rescaled coordinates instead gives \(u=6/(1.0001)\simeq5.9994\), exposing a unit-dependent extra assumption.
Find directions that a rectangular map measures separately
For real \(A\), the matrix \(A^TA\) is symmetric positive semidefinite since \(v^TA^TAv=\|Av\|^2\). Choose orthonormal eigenvectors \(v_i\) with positive eigenvalues \(\sigma_i^2\) and define \(u_i=Av_i/\sigma_i\). Dotting two such vectors shows that the \(u_i\) are orthonormal. Completing both bases gives the singular value decomposition \(A=U\Sigma V^T\). Each \(\sigma_i\) is a gain from one parameter direction into a corresponding output direction. Zero singular values indicate directions that no observation in this model can distinguish.
To minimise \(\|Ax-b\|_2\), express both vectors in these orthogonal bases. For each positive singular value the residual component vanishes by taking \(v_i^Tx=u_i^Tb/\sigma_i\). Output components outside the range remain unavoidable, while input components in the nullspace can take any value without changing the fit. Setting those free components to zero gives the minimum-norm least-squares answer. This derivation identifies the pseudoinverse without assuming either a square matrix or a unique exact solution.
Distinguish an unobserved coordinate from an error
Suppose two instruments read \(b_1=x_1+x_2\) and \(b_2=0.02x_3\), giving readings 4 and 0.06. One singular value is \(\sqrt2\), corresponding to the mean direction of \(x_1,x_2\); another is 0.02 along \(x_3\). The difference \(x_1-x_2\) is unobserved. The minimum-norm exact fit is \((2,2,3)^T\), and every \((2+s,2-s,3)^T\) has identical data. More precision on the mean measurement cannot determine the hidden difference.
A noise change of +0.01 in the second reading raises the reconstructed third parameter by 0.5. If the admissible parameter scale is one, this is a substantial perturbation. Truncating the 0.02 singular direction instead sets \(x_3=0\). Then the residual grows from zero to the entire second reading, but its noise no longer controls the fitted third coordinate. The decision trades bias against uncertainty; it does not prove that the true third parameter is zero.
Assess a reduced measurement model
Keeping the largest \(k\) singular components produces \(A_k=\sum_{i\leq k}\sigma_i u_iv_i^T\). In the spectral norm its error is \(\sigma_{k+1}\): expansion in the right singular basis gives this upper bound, and applying the difference to \(v_{k+1}\) attains it. Any rank-\(k\) alternative must annihilate some unit vector in the span of the first \(k+1\) right singular vectors, on which the original map has norm at least \(\sigma_{k+1}\). Hence no lower-rank replacement improves the worst-case absolute output error.
That best-approximation result concerns forward predictions in a specified norm. Inverting small singular values magnifies noise, so a good low-rank approximation for forward use does not automatically determine the appropriate inverse for parameter recovery. Work with physically scaled parameters and noise-weighted observations before deciding which singular components are meaningful.
Choose an output before discarding a direction
Suppose an instrument observes \(x_1\) accurately and \(0.001x_2\) with uncertainty 0.01. The second variable alone has uncertainty of order ten. The output \(x_1\), however, has no projection onto the poorly observed direction. Its uncertainty receives no contribution from that amplification. Conversely the output \(x_1+x_2\) inherits the full uncertainty. This distinction can change whether a rank decision is acceptable. The spectrum describes the data acquisition matrix, while the projection of the chosen observable onto right singular vectors determines which losses of information affect the reported result.
Prove that truncation is optimal in two matrix norms
When compressing a dense linear map \(A\), decide which discrepancy is being minimised over all approximations of rank at most \(k\). Its spectral norm measures the largest output error over unit inputs. For any rank-\(k\) map \(B\), consider the span of the first \(k+1\) right singular vectors of \(A\). Its dimension exceeds the rank of the restriction of \(B\), so there exists a unit vector \(w\) in this span satisfying \(Bw=0\). Therefore \(\|(A-B)w\|=\|Aw\|\ge\sigma_{k+1}\). Retaining the first \(k\) singular pairs attains this lower bound, as its discarded part has largest singular value exactly \(\sigma_{k+1}\).
For the Frobenius norm, project each column of \(A\) into the column space of a candidate \(B\). Orthogonal projection is the closest approximation with columns in that space. If its projector is \(P\), the captured squared norm is \(\sum_j\sigma_j^2\|Pu_j\|^2\). The weights \(\|Pu_j\|^2\) lie between zero and one and sum to at most \(k\). The largest possible weighted sum assigns weight one to the \(k\) largest squared singular values. Hence the optimal discarded Frobenius norm is \((\sum_{j>k}\sigma_j^2)^{1/2}\). Both arguments require the norm and coordinate scaling just stated. Entrywise maximum error or application-specific weighted errors generally have different optimisers.
Decide how many responses a reduced map must reproduce
Suppose the four singular values of a unit-scaled instrument model are 8, 3, 2 and 1. A rank-two approximation has best possible worst-case gain error two and Frobenius error \(\sqrt{2^2+1^2}=\sqrt5\). Its relative squared Frobenius loss is \(5/(64+9+4+1)=5/78\), approximately 6.41 percent. Describing this as a loss of just 6.41 percent can be misleading if the experiment deliberately excites the third singular direction. For that unit input, the exact output has length two and the compressed output is zero, giving complete loss of the signal of interest.
Suppose instead inputs have equal independent unit variance in all four right singular coordinates. Then the expected squared error in the output is the sum of the discarded squared gains, exactly five. If the third coordinate is excited with variance one hundred while the others retain variance one, the error from truncating that coordinate alone becomes 400. Under that different usage distribution the meaningful objective is \(\|(A-B)C^{1/2}\|_F\), where \(C\) is the input covariance.
In these diagonal coordinates the weighted gains become \(8,3,20,1\). The best rank-two design for expected output error now retains directions three and one, and the discarded expected squared error becomes
The ranking changed because the physical question changed. It did not change the optimality theorem for the unweighted matrix; it changed which matrix correctly represents the intended error measure.
When an input covariance is singular, some directions are never excited under the stated design. The weighted objective can be indifferent to large errors in just those directions. A later change of operating regime may activate them, so a reduced model qualified for one input ensemble should retain the conditions under which its ranking was derived.
Decide whether a low-rank approximation is worthwhile
The best rank-\(k\) approximation discards the tail of the singular spectrum. Its relative Frobenius error is the square root of discarded squared singular values divided by total squared singular values, with the square root applied to the complete ratio.

Read values from the plot
| Retained singular directions | Geometric decay | Algebraic decay | Flat spectrum |
|---|---|---|---|
| 0 | 1 | 1 | 1 |
| 5 | 0.16807 | 0.28817 | 0.86603 |
| 10 | 0.028236 | 0.17049 | 0.70711 |
| 14 | 0.0067351 | 0.11241 | 0.54772 |
| 19 | 0.00081404 | 0.039576 | 0.22361 |
Change parameters · Decide whether a low-rank approximation is worthwhile
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.
Study the full derivation
How a random sketch finds a dominant subspace · Matrix computations and spectral accuracy
An instrument returns a matrix too large to factor densely but cheap enough to multiply by a few vectors. Build a low-rank approximation by probing its range, explain what a random draw can miss and design a residual check using fresh probes.