Start with the approximation that would be best if its subspace were known
Let \(A\) be an \(m\times n\) real data matrix. It can represent a collection of spatial snapshots, one per column. A reduced rank-\(k\) model stores \(k\) spatial patterns and a small coefficient matrix. If a matrix \(Q\) has orthonormal columns spanning a proposed range, then the closest approximation with columns in that range in Frobenius norm is \(QQ^TA\): each snapshot is independently orthogonally projected. Store \(B=Q^TA\); its singular-value decomposition is small when \(Q\) has relatively few columns. The distinction between finding the subspace and factoring within it is important. A perfect small SVD cannot recover a spatial direction missing from \(Q\).
If \(A=U\Sigma V^T\) is exactly rank \(k\), choose \(n\times k\) test matrix \(\Omega\) and form \(Y=A\Omega=U_k\Sigma_k V_k^T\Omega\). If the last \(k\times k\) factor is invertible, \(Y\) spans exactly the range of \(A\). Independent Gaussian columns make singularity a zero-probability event in exact arithmetic, because the rotated coefficients are again a continuous Gaussian matrix. This statement does not imply every draw has a well-conditioned factor, nor that a single probe spans every near-rank-\(k\) matrix. Orthogonalising \(Y\) with a numerically reliable QR yields the candidate basis \(Q\).
Derive the effect of gap and starting alignment
Consider rank reduction of \(A=\operatorname{diag}(10,1)\) with one unit probe \(\omega=(\cos\theta,\sin\theta)\). Its image is \((10\cos\theta,\sin\theta)\), so the angle \(\phi\) between the sampled direction and dominant left singular vector obeys \(\tan\phi=\tan\theta/10\) whenever \(\cos\theta\ne0\). A typical mixed direction is pulled toward the dominant range. A nearly perpendicular probe can still give a poor direction even with a substantial singular gap. For \(\theta=45^\circ\), \(\tan\phi=0.1\). The residual \((I-qq^T)A\) has only one nonzero singular value because its left range is one-dimensional. With \(q=(\cos\phi,\sin\phi)\), its norm squared is \(100\sin^2\phi+\cos^2\phi\), giving \(\sqrt{200/101}=1.407\). The optimal rank-one error is the discarded singular value 1.
One power step forms \(Y=(AA^T)A\Omega\), raising singular values to the third power in the sampled direction while the approximation is still formed for the original \(A\). The angle ratio shrinks to \(\tan\theta/1000\); the residual norm is then about 1.00005 for the same \(45^\circ\) probe. Additional steps require more passes over data. In finite precision reorthogonalise between multiplications so weak required directions are not erased by a large gap. If the target includes both leading and moderate directions, blindly powering a block without intermediate QR can make the very reduced subspace one wants numerically rank deficient.
Independently test an approximation after building it
Add \(p\) extra columns to \(\Omega\) to reduce the chance of poorly exciting a dominant combination. An oversampled \(Q\) has \(k+p\) columns; project to \(B=Q^TA\), take its dominant \(k\) small left singular vectors and map them back through \(Q\). For an exactly rank-\(k\) input the extra columns need appropriate numerical rank handling. In the nearly low-rank case they provide room to represent part of the tail and improve the final cut. Cost depends on access: computing \(A^TQ\) or performing every additional power pass can dominate on streamed or distributed data, even though the final dense SVD is tiny.
Freeze the fitted approximation \(\tilde A\) and consider an independent random sign vector \(g\) with entries equally likely \(\pm1\). Write \(R=A-\tilde A\). Since \(\mathbb E[gg^T]=I\),
Multiple independent checks estimate residual energy and its sampling spread without explicitly assembling \(R\). This estimates Frobenius norm squared; the maximum directional error is a different objective. A single small response does not certify a small spectral norm or guarantee missed directions are unimportant to a particular downstream measurement. Test the physically relevant load or measurement directions as well.
Background · Why must the test vector be independent of the sketch?
Build the sampled range \(Q\) by orthogonalising \(A\Omega\). With exact arithmetic every sampled column already lies in the range of \(Q\). Applying the residual to those same vectors gives
For example, one column sampled from the two-dimensional identity spans only a line. It reconstructs its own training vector exactly while the unit vector perpendicular to it has error one. A fresh isotropic probe has, on average, nonzero energy in every missing direction. For a standard Gaussian vector \(g\) independent of \(Q\), the mean squared diagnostic is \(\mathbb E\|Rg\|^2=\|R\|_F^2\), with \(R=(I-QQ^T)A\). This identity follows by expanding \(g^TR^TRg\) and using \(\mathbb E[gg^T]=I\). One draw is still a noisy diagnostic, especially when only a single direction is missing.
Which starting direction defeats a random range probe?
For a diagonal matrix with singular values 1 and r, rotate a test vector through the dominant right singular direction. Each power iteration multiplies the tangent of its output angle by r². Set r to 0.45, compare zero and two iterations, then inspect the exactly orthogonal probe at 90°. Explain why its residual stays at one.
Tutorial · check an apparently good random approximation
Identify a failure when the test vector is reused
A matrix \(A\) is approximated by the orthogonal projection onto the range of \(A\Omega\). You test residuals only on the original columns of \(\Omega\) and find zeros. What does this certify?
Work through the solution
By construction \(QQ^TA\Omega=A\Omega\), up to roundoff if the full sampled range was kept. Thus the test is nearly tautological and does not measure error on independent directions. If \(\Omega\) has a missing dominant right singular direction, all these residuals can vanish while the leading reconstruction is poor. Use fresh random probes and targeted physical snapshots held out during fitting. If a final rank truncation is applied within \(Q\), the original probe residual need no longer vanish exactly but remains dependent on the fitted subspace.
Calculate a deliberately poor draw
Use \(A=\operatorname{diag}(10,1)\) and \(\tan\theta=100\). Compare the one-pass angle and residual with one power iteration.
Work through the solution
Initially \(\tan\phi=10\), so \(\sin^2\phi=100/101\) and the residual norm squared is \((10000+1)/101\), giving about 9.95. With one power step \(\tan\phi=0.10\), giving 1.407 instead. The bad starting direction had a small but nonzero overlap, so powering can recover it. An exactly perpendicular deterministic probe remains perpendicular after every power step. Oversampling adds independent opportunities to see a missed direction.
Design a stopping criterion for snapshot energies
Independent residual probes give squared norms \(1.0,1.4,0.8,1.6,1.2\) in scaled energy units, while independently known \(\|A\|_F^2=100\). Estimate the residual energy fraction and its sampling uncertainty. Does it imply a 1.2% relative error on every snapshot?
Work through the solution
The sample mean is 1.2 and sample standard deviation \(\sqrt{0.10}=0.316\), so the standard error is about 0.141 for independent probes. The estimated fraction of total squared Frobenius norm is \(1.20\%\), with approximate standard error 0.14 percentage points. The relative Frobenius norm itself is about \(\sqrt{0.012}=0.110\). Individual snapshots may fare much better or worse; the tests estimate a global aggregate. Five samples give only a rough uncertainty estimate, particularly if residual energy is concentrated in a few directions.