How Can We Reduce a Matrix to Fewer Components While Knowing Exactly What We Have Lost? A matrix can be decomposed into singular components. Retaining the strongest components can create a lower-rank approximation, but a compact representation is not automatically a lossless one. Learners should reconstruct the original from the complete decomposition, calculate the residual after removing a component, and justify the error criterion.
This international lab extends Eigenvectors and Iterated Transformations, Matrix Transformations, Discrete Fourier and Residual and Model Fit. All matrices are exact fictional classroom constructions. Vocabulary Coding and Engineering (VCE) and EnDist are proposed frameworks, not validated interventions. No actual data compression benchmark or future superintelligence capability is assumed.
- Distinguish singular values from eigenvalues and rank.
- Derive right singular directions from AᵀA.
- Reconstruct a rectangular matrix using two components.
- Calculate Frobenius and spectral reconstruction errors.
- Prove a rank-one optimum for the worked model.
- Independently verify a fresh matrix and an information-loss counterexample.
Choose your reading route
Coursework series: Eigenvectors and Iterated Transformations Lab · Matrix Transformations Lab · Discrete Fourier and Frequency Components Lab · Residual and Model Fit Lab · Vocabulary Coding and Engineering
Continue this coursework series: Singular Values and Low-Rank Reconstruction Lab (this article) · Reproducible Research Capsule Lab · Coupled Simulation and Variance Reduction Lab · Modal Scope and Evidence Studio
Full chapter index
Chapters 1–5
Chapters 6–10
Chapters 11–15
Chapters 16–20
Chapters 21–25
Chapter 26
CHAPTER 1 OF 26 · Understand the capability
1. The capability: know what a compact representation retains
An assistant may turn a table into a smaller representation. That can be useful, but the recipient needs to know whether the original entries can be recovered and which distinctions disappear. A visually convincing approximation is not a certificate of accuracy.
The coursework builds a small matrix, derives orthogonal components, reconstructs the entries and computes a residual. A second case tests transfer. The objective is exact mathematical reasoning under declared rules, not an evaluation of real data or an AI system.
CHAPTER 2 OF 26 · Understand the capability
2. Define singular values and singular directions
For a real matrix A, a full singular value decomposition has the form UΣVᵀ, with orthonormal columns in the square factors U and V and nonnegative diagonal entries in the rectangular factor Σ. For our three-by-two matrix, its two singular values are square roots of the two eigenvalues of AᵀA.
Unlike ordinary eigenvalue decomposition, SVD can be applied to rectangular matrices. For a positive singular value σ, corresponding unit vectors satisfy Av=σu. The cited NumPy documentation gives the reconstruction convention; the following computations are self-contained.
Background reading: NumPy: singular value decomposition · UNICAMP: Singular Value Decomposition and Low-Rank Approximations.
CHAPTER 3 OF 26 · Understand the capability
3. Vocabulary Coding and Engineering for approximation
Distinguish rank, basis, singular value, component, residual, norm and reconstruction. Rank is the dimension of the column space, not the count of nonzero entries. A singular component is an outer product scaled by a singular value.
Under proposed VCE, preserve row and column order, units, chosen rank and error norm. If a handover says eighty percent retained, the reader must know eighty percent of what. A fraction of squared entries is not a fraction of semantic meaning or evidence.
Related framework: Vocabulary Coding and Engineering.
CHAPTER 4 OF 26 · Work through the example
4. Read the original rectangular model
Let A be the three-by-two matrix with rows (3,1),(1,3),(0,0). Its two columns are independent, so its rank is two. Interpret it as a map from two-dimensional column vectors to three-dimensional outputs.
The third output is always zero in this model. The values are invented abstract quantities, not measurements about a sensor or population. Keep the exact matrix and coordinate convention visible throughout the calculation.
CHAPTER 5 OF 26 · Work through the example
5. Derive right singular directions
The Gram matrix AᵀA has rows (10,6),(6,10). Multiplying it by (1,1) gives (16,16), and by (1,−1) gives (4,−4). The corresponding eigenvalues are sixteen and four.
Normalise the directions to v₁=(1,1)/√2 and v₂=(1,−1)/√2. Their dot product is zero and both lengths are one. The singular values are σ₁=4 and σ₂=2. Verify the matrix-vector products rather than accepting a reported factorisation.
| Right direction | Eigenvalue of AᵀA | Singular value |
|---|---|---|
| (1,1)/√2 | 16 | 4 |
| (1,−1)/√2 | 4 | 2 |
CHAPTER 6 OF 26 · Work through the example
6. Construct the left singular directions
Av₁=(4,4,0)/√2, giving u₁=(1,1,0)/√2. Av₂=(2,−2,0)/√2, giving u₂=(1,−1,0)/√2. The two left vectors are orthogonal and have unit length.
A third left basis vector can be (0,0,1). The two nonzero components suffice for the reduced decomposition. The third left direction is not another input coordinate. Inspect factor shapes before multiplying: the original map must still send two coordinates to three.
CHAPTER 7 OF 26 · Work through the example
7. Build the scaled outer products
The first component 4u₁v₁ᵀ has rows (2,2),(2,2),(0,0). Call it A₁. The second component 2u₂v₂ᵀ has rows (1,−1),(−1,1),(0,0). Call it R. Each has rank one.
Add A₁ and R entry by entry to recover (3,1),(1,3),(0,0), exactly the original A. This is a reconstruction certificate. The signs in the second component matter even though its singular value is positive.
| Row | A | Rank-one A₁ | Residual R |
|---|---|---|---|
| 1 | (3,1) | (2,2) | (1,−1) |
| 2 | (1,3) | (2,2) | (−1,1) |
| 3 | (0,0) | (0,0) | (0,0) |
CHAPTER 8 OF 26 · Work through the example
8. Calculate residual after truncation
Keeping only A₁ yields a rank-one approximation. The residual A−A₁ is R; the Frobenius norm is the square root of the sum of squared entries, while the spectral norm is the largest output length over unit input vectors. Its squared Frobenius norm is 1²+(−1)²+(−1)²+1²=4, so the Frobenius norm is two.
The original squared Frobenius norm is twenty and the retained squared norm is sixteen. The two components are orthogonal in the entrywise inner product, so sixteen plus four equals twenty. The retained fraction is 0.8 under this specific measure, not a measurement of knowledge.
CHAPTER 9 OF 26 · Work through the example
9. Certify optimality for this model
Any three-by-two matrix B of rank at most one has a unit input w in its kernel. Writing w in the orthonormal v₁,v₂ basis shows that the length of Aw is at least two, because the two orthogonal output directions are scaled by four and two.
Hence the length of (A−B)w is at least two. Its spectral norm is at least that length; its Frobenius norm is at least its spectral norm. A₁ attains error two in both norms because R has just one nonzero singular value, two. The matching bounds certify optimality.
CHAPTER 10 OF 26 · Identify failure modes
10. Detect a misleading retention claim
A generated report says that eighty percent of squared Frobenius norm proves eighty percent of the original information survives. The arithmetic is correct but the interpretation is not. The retained matrix has identical first and second rows, so their contrast is lost.
Name the measure and check the receiving task. A feature with a small numerical norm may still carry a decisive distinction. The low-rank proof addresses a specified mathematical error, not every use of the original matrix.
CHAPTER 11 OF 26 · Identify failure modes
11. Test a particular input
For input v₁, A₁ agrees exactly with A. For v₂, A₁ returns zero while A returns 2u₂. The global residual is one number, but the error depends on which input direction a recipient uses.
A task requiring the second direction cannot be satisfied by this reduction alone. A task using only the first direction may be. State the intended use and what was removed; do not label the representation accurate without a criterion.
CHAPTER 12 OF 26 · Identify failure modes
12. Distinguish eigenvalues from singular values
For the separate diagonal matrix with entries three and minus two, the eigenvalues are three and minus two, while the singular values are three and two. The negative sign is represented by a direction rather than a negative singular value.
Ordinary matrix eigenvalues concern a square endomorphism. Our rectangular A has no such eigenvalues, although AᵀA does. This distinction prevents a learner from copying the eigenvalue reasoning into an incompatible problem.
CHAPTER 13 OF 26 · Identify failure modes
13. Test nonuniqueness when singular values tie
The two-dimensional identity matrix has two singular values equal to one. Any orthonormal pair used consistently on both sides reconstructs it. There is no uniquely distinguished largest direction based on these tied values.
A rank-one approximation retaining any one unit direction has Frobenius error one. Valid solvers can produce different directions or sign conventions. Compare reconstruction and the criterion, not arbitrary choices within a tied subspace.
CHAPTER 14 OF 26 · Identify failure modes
14. Check whether rank reduction saves storage
A rank-one representation of our three-by-two matrix could store three left-vector entries, two right-vector entries and one scalar. That is six values before metadata, equal to the original entry count.
Larger matrices may benefit from low-rank factors, but actual storage and runtime depend on format, implementation and verification costs. A rank reduction proves a structural property, not a compression benchmark.
CHAPTER 15 OF 26 · Identify failure modes
15. Inspect changing units
Multiplying every entry by the same positive c multiplies singular values and absolute error norms by c, while the retained squared-norm fraction stays unchanged. Rescaling just one column can change the relative directions and optimal approximation.
Consequently the units and scaling contract matter. An objective based on raw squared errors can emphasise a numerically larger scale. The receiver should be able to distinguish an intended normalisation from an accidental change of data.
CHAPTER 16 OF 26 · Identify failure modes
16. Separate numerical computation from proof
A floating-point SVD may return slightly different printed numbers or simultaneous sign flips of paired vectors. Check orthonormality, shape, reconstruction and a declared tolerance. The exact example provides an independent reference.
Do not insist that every valid numerical solution use our chosen signs. Conversely, do not round a nonzero residual to zero and claim exact reconstruction. In an empirical problem, measurement and modelling uncertainties need additional treatment.
CHAPTER 17 OF 26 · Identify failure modes
17. Audit an AI-generated reduction
Ask an assistant to show AᵀA, unit directions, singular values and both outer products. Independently verify the matrix-vector products and reconstructed rows. Reject a result using sixteen and four as singular values.
Then inspect the discarded input direction and require the chosen norm. A report claiming lossless reconstruction after truncating R contradicts the source. The audit should locate the first mismatch rather than just request a prettier decomposition.
CHAPTER 18 OF 26 · Identify failure modes
18. A prompt for reproducible singular components
Try: Use the matrix A with rows (3,1),(1,3),(0,0). Derive its Gram matrix, right and left singular directions and singular values. Reconstruct the matrix from the scaled outer products and calculate both residual norms after retaining the first component.
Continue: use a kernel vector of an arbitrary rank-at-most-one approximation to prove the lower bound. Test the discarded direction and explain why a squared-norm fraction is not a universal information measure. Have the learner reproduce one outer product independently.
CHAPTER 19 OF 26 · Identify failure modes
19. A proposed assessment rubric
Score five dimensions from zero to three: shape and definitions; orthonormal directions; exact reconstruction; residual and optimality certificate; independent transfer and limits. Zero indicates absent evidence, one major error, two mostly correct with a gap, three reproducible reasoning.
Record assisted output, independent learner explanation and recipient reconstruction separately. Retain ordinary access and calculation supports. The fifteen-point rubric is a proposed classroom instrument, not a validated measure of intelligence or mathematical proficiency.
CHAPTER 20 OF 26 · Test independent transfer
20. Independent transfer: a new rectangular matrix
Let B have rows (3,3),(2,−2),(0,0). Derive its singular values and unit directions, then find the best rank-one approximation in Frobenius norm. Calculate the retained squared-norm fraction before reading the check.
Worked check: BᵀB has rows (13,5),(5,13), eigenvalues eighteen and eight. The singular values are 3√2 and 2√2. The same v₁,v₂ apply with left vectors (1,0,0),(0,1,0). The rank-one approximation has rows (3,3),(0,0),(0,0). The discarded component has rows (0,0),(2,−2),(0,0), so the Frobenius and spectral errors both equal 2√2. The retained squared-norm fraction is 18/26=9/13.
| Component | Singular value | Squared singular value |
|---|---|---|
| 1 | 3√2 | 18 |
| 2 | 2√2 | 8 |
CHAPTER 21 OF 26 · Test independent transfer
21. Primary learning: reconstruct a small pattern
Use adult-prepared number cards to build two rows from a common layer and a contrasting layer. Remove one layer and ask which differences disappear. Use simple addition and subtraction rather than formal SVD.
Offer tactile or spoken labels. Adults can prepare checked materials with AI without direct child access. The foundation is noticing that a shorter representation can omit a meaningful distinction, even if most numbers look similar.
CHAPTER 22 OF 26 · Test independent transfer
22. Secondary learning: connect vectors and error
Students ready for matrix work can verify the supplied orthogonal directions, derive the two components and compare squared entrywise errors. Learners not yet ready for eigenvectors can begin with the outer-product reconstruction.
Provide the fresh case before its solution and ask which input the approximation loses. Accessible tables or verbal reasoning can replace graphical representations. Assess the mathematical explanation rather than advanced notation alone.
CHAPTER 23 OF 26 · Test independent transfer
23. University, institutions and EnDist
Advanced study can examine the Eckart–Young–Mirsky theorem, numerical rank and task-specific approximations. Real applications need defensible units, error objectives and checks of consequential discarded features. This toy model is not a benchmark.
Under proposed EnDist, transfer the reconstruction contract or explicitly document the loss. A recipient should independently verify the approximation and decide whether it suffices for a new task. This is proposed capability transfer, not a measured intelligence law.
CHAPTER 24 OF 26 · Four-week coursework plan
24. A four-week coursework sequence
Week one: define matrix shape, rank and orthogonal directions. Week two: derive singular components and reconstruct the source, preserving the exact trace and residual.
Week three: prove the small-model optimum, test discarded inputs, ties and units. Week four: release the new matrix before its answer and let a recipient verify it. Adapt pacing and supports; the sequence is proposed instruction.
CHAPTER 25 OF 26 · Four-week coursework plan
25. Questions about singular values
Does a small singular value prove that the corresponding feature is unimportant? No. Are singular values eigenvalues? Not generally. Can the complete factorisation reconstruct the source? Yes, using compatible factors and conventions.
Does truncating a nonzero component preserve the source exactly? No. Does optimality for one norm prove adequacy for every task? No. Retain the declared objective and independently check the receiving task.
CHAPTER 26 OF 26 · Four-week coursework plan
26. Sources, boundaries and next steps
NumPy supplies the factorisation convention; the UNICAMP lesson discusses low-rank approximation. The matrices, explicit proof, transfer and rubric are original classroom constructions, not evidence of actual educational or AI performance.
Construct another two-column matrix with known orthogonal right directions. Ask a receiver to reconstruct it and remove one component, documenting the error and a question the reduced version cannot answer. The enduring capability is reducing complexity without hiding loss.
References: NumPy: singular value decomposition · UNICAMP: Singular Value Decomposition and Low-Rank Approximations.
Related coursework: Eigenvectors and Iterated Transformations Lab · Matrix Transformations Lab · Discrete Fourier and Frequency Components Lab · Residual and Model Fit Lab.