What a singular value is telling you
The main thread reads two numbers off a decomposition, finds one direction that neither of them reaches, and concludes that two of its equations are one. This page explains what those numbers are, and why that direction, on its own, carries less information than it seems to.
A matrix stretches and turns
A matrix is a machine that takes an arrow and returns another arrow. Any such machine can be split into three steps, and that is what the singular value decomposition says:
Read it right to left: turns the input, stretches it along the axes, and turns the result. The singular values in are how much each direction is stretched. A direction that is stretched by zero is a direction the machine flattens to nothing.
Here takes two inputs (how far to move the ball joint, across and up) and returns three outputs (how much each equation changes). It has two singular values, 1.415 and 0.998. A matrix has as many as the smaller of its two sizes, so a matrix has two. Neither is zero, so no input is flattened. But two inputs cannot fill three dimensions, so one direction among the outputs is reached by no input at all. That direction is not a singular value. It is the left null space.
Two null spaces, and only one is about the equations
There are two null spaces, and they answer different questions because the matrix has different numbers of rows and columns.
- Nothing in the unknowns is free. A direction in the unknowns that changes no equation would be a right null vector. There is none here: both unknowns affect the residuals. This is the good case — the pose is determined.
- One combination of equations says nothing. A direction in the residual space that no move can reach is a left null vector. There is one here, and it is .
The second is the one that matters, because equations are rows. A redundancy is a row too many, so it lives in the left space. A program that reported only the singular values would know that something is degenerate and not what.
Why the left null space, on its own, is not evidence
Three rows and two columns always leave one direction of the outputs that no input reaches. Two rows and two columns would not. So that direction is a fact about the shape of the matrix, and it appears in every three-row model — including a model whose equations genuinely disagree.
What distinguishes the two situations is not the pattern of the null vector but the errors left at the answer. Let be how wrong each equation still is there, and form :
| at the answer | What it means | What to do |
|---|---|---|
| zero, to round-off | the rows in are a spare equation | delete one of them |
| not zero | the equations conflict, by | find the wrong equation |
Here touches two rows and is zero. A null vector that touches every row can still belong to rows that agree: its pattern says which rows depend on each other, not whether they can all hold at once.
A conflict is the more interesting situation and the more dangerous one. Least squares will split the difference and return an answer that looks like all the others.
The numbers in this chapter
| Quantity | Value | What it says |
|---|---|---|
| σ₁ | 1.415 | the strongest single combination of equations |
| σ₂ | 0.998 | the other one, nearly as strong |
| left null space | one direction | three outputs, and two inputs reach only two |
| σ₁ / σ₂ | 1.42 | well conditioned: no near-collapse |
| left null vector | (0.707, −0.707, 0) | rows 1 and 2 cancel |
The ratio is the number practitioners actually watch. If σ₂ had come out at 0.001 rather than 0.998, the model would be in trouble of a different kind. Two equations would be almost the same, so a small measurement error in one of them would swing the answer wildly. That is not redundancy, it is fragility, and the cure is different — measure better, or model differently.
How the figure computes it
Two unknowns means is a matrix, and the singular values are the square roots of its eigenvalues:
Here is the -th eigenvalue of the matrix , and is the singular value it gives. For the left null vector, the page's own code diagonalises the matrix by Jacobi rotations and takes the eigenvector of the smallest eigenvalue. That smallest eigenvalue is zero, and it is not a singular value of : it belongs to the matrix, not to the two unknowns. Twenty lines, no library — and the same definition the general solver uses, which is why the two agree rather than merely resemble each other.