Maths Applied1.4 The redundancy was ours

All books

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:

J=U Σ VT.J = U\,\Sigma\,V^{\mathsf{T}}.

Read it right to left: VTV^{\mathsf{T}} turns the input, Σ\Sigma stretches it along the axes, and UU turns the result. The singular values in Σ\Sigma are how much each direction is stretched. A direction that is stretched by zero is a direction the machine flattens to nothing.

Here JJ 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 3×23 \times 2 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.

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 rr be how wrong each equation still is there, and form wTrw^{\mathsf{T}} r:

wTrw^{\mathsf{T}} r at the answer What it means What to do
zero, to round-off the rows in ww are a spare equation delete one of them
not zero the equations conflict, by ∣wTr∣\lvert w^{\mathsf{T}} r \rvert find the wrong equation

Here ww touches two rows and wTrw^{\mathsf{T}} r 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 JTJJ^{\mathsf{T}}J is a 2×22\times2 matrix, and the singular values are the square roots of its eigenvalues:

σi=λi(JTJ).\sigma_i = \sqrt{\lambda_i\left(J^{\mathsf{T}}J\right)}.

Here λi\lambda_i is the ii-th eigenvalue of the 2×22 \times 2 matrix JTJJ^{\mathsf{T}}J, and σi\sigma_i is the singular value it gives. For the left null vector, the page's own code diagonalises the 3×33\times3 matrix JJTJJ^{\mathsf{T}} by Jacobi rotations and takes the eigenvector of the smallest eigenvalue. That smallest eigenvalue is zero, and it is not a singular value of JJ: it belongs to the 3×33\times3 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.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Reading offline

Keep this book on this device and read it offline.