Chapter 11 solved the least-squares problem twice.
Section 4 of that chapter produced the normal equations
(Theorem 11.4.2),
and Section 8 rewrote them, once a factorization was
available, as the triangular system . It then recommended the second
route and postponed the reason: “forming squares the
sensitivity of the problem to rounding, while never forms
that product at all. Chapter 24 makes ‘sensitivity’
precise and proves the comparison; here we record only
the practice.”
Chapter 16 supplied half of the reason. Its Theorem 16.8.4 proved and then listed what was still
missing: the conditioning of the fitting problem itself,
which involves the residual; the arithmetic, which
needed a model; and the comparison of the two algorithms
in digits. Sections 1 and 2 of this chapter built the
model and the vocabulary. This section pays the three
debts, in that order, and ends with the reason the
reflections of Chapter 11 are the right way to produce
and .
Throughout, or , with and , and is nonzero. By Corollary 11.4.4
there is then exactly one least-squares solution , and is invertible.
All norms are unless a
subscript says otherwise.
How
sensitive is the problem?
Before any algorithm is judged, the problem has to be
measured. Write
the residual and the projection of Theorem 11.4.2 (b).
Since and ,
Pythagoras (Theorem 11.1.3)
gives . So
there is a unique with
(24.3.1)
the angle between and the column
space of . It is
exactly when the
system is consistent and exactly when , in which case and
no relative error can be spoken of. We assume
throughout, so .
One number is now missing from Chapter 16’s account,
and Eq. 24.3.1 supplies it.
Here is the sensitivity of to a
perturbation of the data.
Theorem
24.3.1 (Conditioning of the Least-Squares
Problem)
Let have rank , let , let be the
least-squares solution of ,
and let be as in Eq. 24.3.1. Let
and , and for real near let be the
least-squares solution of . Then is defined
and differentiable near , with , and
where and .
Idea. The least-squares solution is
with ,
which is a differentiable function of because is invertible.
Rather than differentiate that formula, differentiate
the equation it comes from: the product
rule gives three terms, two of them combine into , and the residual appears by
itself. Then read every norm off a singular value
decomposition: is where the square comes from,
and the only inequality used to finish is .
Proof. Write , , and .
Every entry of is a polynomial in
, so is differentiable in
the sense of Definition 16.6.1, and is
invertible by Corollary 11.4.4
(c). By Theorem 16.6.5, is invertible on an
open interval around and is
differentiable there. On that interval , again by
Corollary 11.4.4,
so Theorem 11.4.2 has
the unique solution differentiable by Lemma 16.6.4. (Conjugation
is applied entrywise and commutes with differentiation
in the real variable , so .)
Differentiate the identity at with Lemma 16.6.4. Since , Move the first bracket across and collect the
two terms carrying : Hence
Now the two norms. Write as
in Theorem 13.9.1, with
. As in the proof of Theorem 16.8.4, , so where is the matrix with
on its diagonal — the second
identity because . Unitary factors do not change
singular values, rectangular ones included: for unitary
of the
right sizes, is unitarily similar to
, so the
two have the same eigenvalues and Definition 13.9.1
reads the same singular values off them. Hence by Theorem 16.3.3 (c), Applying these to with Theorem 16.3.2 (a),
Divide by and use
(Theorem 16.3.3 (c)) and
(Definition 16.8.1). The
middle term becomes exactly. For the
other two, note that ,
so Therefore Adding the three estimates gives the stated
bound. This proves the theorem.
What is linearized, and what is not.
The theorem itself is exact: it bounds a derivative, and
no term has been discarded. What is an approximation is
the use one makes of it. Reading it as
(24.3.2)
for data perturbed by and drops a remainder of
size , exactly
as Theorem 16.8.3 (b) drops the
factor . For
the of the floating-point model that
remainder is invisible, and every statement below that
carries a
is a statement of this kind.
Two readings of the bound matter.
- When the residual is zero, and the bound
is :
the least-squares problem is exactly as sensitive as a
square linear system with the same condition number. A
square invertible is always this case,
and Theorem 16.8.3 is
recovered.
- When the residual is large, the
term
dominates the bound, and what it measures belongs to the
problem: no algorithm can return an answer more
accurate than data of that quality determine. This is
the sentence Chapter 16 §08 promised, where the
least-squares problem was said to have “a sensitivity
that depends on , on the
residual and on the angle between and ”. Exercise (C1: The squared term is attained)
exhibits data on which the
term is attained exactly, so it is not an artifact of
the estimates.
Solution. For an invertible square
the system is
consistent, so its least-squares solution has residual
and Eq. 24.3.1 gives , that is
. Then
and
, and
Eq. 24.3.2 reads . That is Theorem 16.8.3 (a) and (b)
added together, with the factor replaced by the
that the linearization discards. The square case carries
no at
all.
Two
routes, and the digits they lose
The problem is measured; now the two algorithms. Both
are run in the arithmetic of Definition 24.1.1, with
the unit roundoff
and the constant of Lemma 24.1.1.
The normal-equation route forms
and entry by entry as inner
products, then solves .
The matrix it hands to the solver need
not be positive definite. The exact
is: for ,
the columns of
being independent. The computed is Hermitian, only one
triangle of it being formed, but its eigenvalues are
those of
displaced by the rounding, and the smallest of them,
, can
be displaced past
— Example (A matrix where one route survives and the other does not)
below exhibits a
that comes out singular, on which the Cholesky
factorization of Theorem 13.2.3 fails
outright. When is positive
definite — which it is while the rounding stays
below —
Cholesky, and the analysis Section 2 gives it,
apply.
The cost is
flops to form the product — there are entries to
compute, each an inner product of length costing flops — plus for the
factorization (Proposition 24.2.3 (c))
and for the
two triangular solves. The route never
forms that product: it computes a factorization by reflections
(Theorem 11.8.4),
applies to
, and
solves the triangular system by back substitution, which Theorem 24.2.5 showed to
be backward stable. Its cost is
flops by a sum of the same kind as Proposition 24.2.3, which
we do not write out: about twice the first when .
The rule of thumb of Theorem 24.1.3 says:
forward relative error condition number
backward
relative error. The two routes solve different
problems, and that is the whole story. The first
solves a square linear system whose matrix is , of condition
number by Theorem 16.8.4. The second
solves the least-squares problem itself, of sensitivity
given by Theorem 24.3.1. Here is
the comparison. Part (a) is Theorem 24.1.3 applied to
the system , except that here the
right-hand side is perturbed as well, so we give the
short direct argument instead of appealing to it.
Theorem
24.3.2 (The Normal Equations Lose Twice the
Digits)
Let have rank , let , let be the
least-squares solution, and let be as
in Eq. 24.3.1. Work in the
model of Definition 24.1.1, and
suppose .
- (a) (Normal
equations.) Suppose and
are formed by inner
products, and that is
then solved by a method that is backward stable in the
sense of Definition 24.1.3, so that
the computed
satisfies with and . Then there is a constant
, depending only
on , , and and of size , such that if then The bound carries
even when the residual is zero.
- (b) (A
backward stable least-squares solver.) Suppose
instead that is the
exact least-squares solution of for some
with and . Then, to first order in
as in Eq. 24.3.2,
Idea. For (a), the two sources of
error — forming the product, and solving the system —
are both perturbations of the exact normal
equations, and both are bounded by a constant times
or
.
Subtract the exact equations from the perturbed ones and
multiply by , whose
norm is : the two
factors of appear
there and nowhere else. The one nuisance is that the
estimate produces
rather than ;
subadditivity of the norm (Corollary 11.1.6)
trades one for the other at the cost of the denominator,
exactly as in Theorem 16.8.3 (b). For (b)
there is nothing to do: the hypothesis says the computed
answer is the exact answer to perturbed data, which is
what Theorem 24.3.1
measures.
Proof. (a). We argue over
, the field in
which Theorem 24.1.2 is stated;
over each
complex multiplication and addition is a bounded number
of real ones, and the same argument gives the same bound
with a larger constant . Write for the columns of , so that and , each an inner product
of length . By Theorem 24.1.2,
with entrywise, so
the last step by Cauchy–Schwarz (Theorem 11.1.5).
Summing squares and using
— true because is the sum of the eigenvalues
of , hence
of the , while
by Theorem 16.3.3 (c) — The same argument on gives .
Now add the solver’s backward error. Put and . Since and , with serving, say, since the hypothesis
gives , and .
The exact solution satisfies and the computed one satisfies
. Subtracting, using from the proof of Theorem 24.3.1. Divide by
,
write , and use together with : Since we may collect the terms and divide,
which gives the stated bound. Nothing in the argument
used , so
it holds for as it stands.
(b). By hypothesis for the family of Theorem 24.3.1 with and , and . The stated
bound is Eq. 24.3.2 for that
family. This proves the theorem.
In digits. A relative error of means about correct
decimal digits, and an arithmetic with unit roundoff
offers about of
them. Part (a) says the normal-equation route returns an
answer with relative error about : it
loses about
digits, whatever the residual. Part (b) says a
backward stable least-squares solver returns an answer
with relative error about when the
residual is small, and so loses about
digits.
The comparison Chapter 16 §08 left open has two
halves, and only one of them is settled here. The half
that is proved is the implication:
a backward stable least-squares solver
loses about
digits, while forming loses about
twice that — and part (a), which carries no stability
hypothesis at all, is unconditional.
The half that is not proved is that
the reflection route of Chapter 11 §08 supplies such a
solver. That is the accumulated statement of the remark
after Theorem 24.3.3 below,
which this book records with credit and does not prove;
what Theorem 24.3.3 itself
proves is the backward stability of one
reflection. A further qualification is the content of
the next warning.
Warning. The two-versus-one
comparison is a small-residual statement, and the reason
is not symmetric. For a large residual the
bound in (b) also carries a , through
the term .
The difference is where that square comes from.
In (b) it is the sensitivity of the problem, certified
by Theorem 24.3.1, and no
method whatever can avoid it. In (a) it is manufactured
by the algorithm: it is there when , where the
problem’s own sensitivity is only . So the
honest form of the comparison is: a backward
stable method loses what the problem costs; forming
loses
times
more than that whenever , and never less.
Example
(A matrix where one route survives and the other does
not)
Let and Find , the exact
least-squares solution, and the residual. Then run both
routes in the model with , for and
for , and compare.
Solution. Exact data.
,
which sends
to
and to . So
its eigenvalues are and , the
singular values of are
and ,
and Also , so the system is
consistent: the least-squares solution
is exactly, the residual is , and
. By Theorem 24.3.1 the
problem’s sensitivity is exactly — there is
no in
the problem at all.
. Here , so and . Forming the product rounds
to ;
the last four digits are the rounding, and they are a
relative perturbation of about in the
difference that
carries the small eigenvalue. Cholesky and the two
triangular solves then return a relative error of —
about four correct digits out of sixteen, and within a
factor of of the
bound . (Entry by entry the relative
errors are and ; it is
the -norm figure
that the theorem bounds.) The reflection route returns
, every
digit correct.
. Now and , so
part (a) promises nothing at all — and nothing is what
it delivers. Since
is below , the
computed product is a singular matrix: its
Cholesky factorization (Theorem 13.2.3) fails
at the second pivot, and the route cannot even be run.
The reflection route again returns .
The bound is an upper bound. For the
reflection route is entitled to lose digits and in fact loses none: the answer is
exactly representable and the arithmetic happens to
reach it. Part (b) is a worst case over perturbations,
as Theorem 16.8.3 was. Part (a)
is an upper bound too, and it is not attained exactly
either; what this example shows is that it is not a
pessimistic one — the normal-equation route does lose
its
digits here, to within a factor of in the error.
Warning. Forming is not
forbidden, it is limited. If
then , and the normal equations return ten
correct digits for half the arithmetic. The rule is
quantitative, not moral: the route is safe exactly while
is
small enough for the purpose, and it collapses — as Example (A matrix where one route survives and the other does not)
shows — once approaches
. What is never acceptable is forming the
product without knowing which side of that threshold one
is on.
Why the
reflection route is the stable one
Part (b) above assumed a backward stable
least-squares solver. That hypothesis has to be earned,
and earning it is what Chapter 11 §08’s reflections are
for. The claim to be supported is: applying a
Householder reflection by the formula
(24.3.3)
of Chapter 11 §08 — applying it, never
forming the matrix — commits a backward error
of size , with no
dependence on the conditioning of anything. Here is that
statement, proved.
Theorem
24.3.3 (Backward Stability of One
Reflection)
Work in the model of Definition 24.1.1 over
, and suppose
. Let be
nonzero and let be the reflection of Definition 11.8.1,
and suppose and the input
are stored exactly.
- (a) For , let
be the vector computed from and by Eq. 24.3.3. Then
- (b) For , let be the
matrix whose columns are computed from those of in this way. Then
Idea. Three quantities are computed
before anything is subtracted: , the
inner product ,
and their quotient . Each is an inner
product or a division, so Theorem 24.1.2 and Lemma 24.1.1 bound them at
once, and the crude estimate — which is
Cauchy–Schwarz and nothing more — keeps every error
proportional to , not to
.
Then the forward error is converted into a backward error
for free, because is an isometry and its
own inverse: has
exactly the same length. Part (b) is part (a) column by
column, since the Frobenius norm adds the columns in
squares.
Proof. (a). Write ,
, so that
, and abbreviate . The
hypothesis gives in particular , so
for every .
Step 1: the two inner products. The
computed is a sum of nonnegative terms , each carrying at
most rounding
factors, so by Lemma 24.1.1 with ; as every this gives
with . By Theorem 24.1.2 the
computed satisfies with by Cauchy–Schwarz (Theorem 11.1.5).
Step 2: the coefficient. The
computed is times two rounding
factors, so with , by Lemma 24.1.1. Writing
with and
, using and ;
in particular the factor itself has modulus at most
. Since by Cauchy–Schwarz, with . In particular , since .
Step 3: the subtraction. Entry is computed as
with . Subtracting
and regrouping, Take -norms over , one term at a time.
The first is at most ; the second is ;
the third is at most . Hence
Step 4: forward to backward. Put
. Then by Proposition 11.8.2
(b), and
because is
unitary (Proposition 11.8.2
(c)). This is (a).
(b). Apply (a) to each column , obtaining
with , and let have these
columns. Then column by column, and
squaring and summing over gives . This proves the
theorem.
The constants are crude on purpose; what matters is
their shape. The bound is a multiple of and of , and of nothing
else. No condition number appears, and none
can: a reflection is an isometry, so it neither
stretches nor shrinks, and there is no small quantity
anywhere for a rounding error to be measured
against.
What goes
wrong with Gram–Schmidt
Chapter 11 §02 warned that “the classical process is
numerically fragile” and promised that this chapter
would say why the reflection route is the stable one.
Half of the answer is Theorem 24.3.3. The other
half is what the Gram–Schmidt recursion of Theorem 11.2.2 does
instead.
The recursion subtracts from its components
along the vectors already produced. When the columns are
nearly dependent, what is left is a small difference of
large quantities, and the leading digits cancel, exactly
as in the subtraction of nearly equal numbers examined
in Section 1. The computed is then a unit
vector in a noticeably wrong direction, and, worse, the
error is not random: it is inherited by every later
step. The measured consequence is a loss of
orthogonality: the computed satisfies
by an amount that grows with . The
classical analyses, which we state with credit and
do not prove here, say how fast:
- for the classical process, is of order
(Kielbasinski; Giraud, Langou, and Rozloznik);
- for the modified process, in which
each new vector is projected against the one at a time
as it is formed rather than all at once from the
original , it is of
order
(Bjorck);
- for the reflection route it is of order , independently of , which is
the content of Theorem 24.3.3.
Example
(Three columns and three answers)
Let and Show that , then run the classical and the
modified recursion in the model with and compare
the inner products of the computed vectors.
Solution. The condition
number. . Its characteristic
polynomial factors as as one checks by expanding both sides. The
quadratic has roots with
and , so and . Hence and , and So and .
The computed vectors. Both recursions
produce the same and , with : that is the unavoidable , and it is
already five to six digits worse than , being larger by a
factor of . The two
differ at the third step, which is where the
cancellation bites: The classical figure is within a factor of
of ; the modified figure is at the
level of or below.
Two vectors at inner product are at
about
degrees to each other, and a basis that is orthonormal
only to five digits is worth five digits in everything
computed from it.
The sign
in the reflection, quantified
Chapter 11 §08 chose rather than
, where is the phase of
, and said:
“Chapter 24 quantifies the loss; the summary here is
that both signs are correct mathematics and only one is
correct arithmetic.” Here is the quantity.
Take nonzero with , so , and write
. Expanding as in Theorem 11.8.3,
and . Both vectors
are built by the same two operations: compute , then add
it to or subtract it from . The computed norm
carries an error of absolute size about , and
every other entry is copied from exactly. So in
both cases the computed vector is
with — the same
absolute error. What differs is what that error is
measured against, because depends on
only
through the line it spans. Writing and ,
Definition 11.8.1
gives , and For the last step, abbreviate
and split The second piece has norm ,
and the first has norm ,
which is at most the same quantity by the reverse
triangle inequality (Lemma 16.1.1); and as soon as , which is certainly the case
here, being of
size . So the
computed reflection differs from the intended one by a
small multiple of
The safe sign therefore never amplifies: its
reflection is accurate to a small multiple of , no matter what is. The other
sign amplifies by the factor
which is unbounded: it blows up
precisely as approaches a
positive multiple of , where and .
Example
(The same vector, the two signs)
Let and . Predict the
amplification factor for each sign, then apply each
computed reflection to in the model
with
and measure how flat the answer is.
Solution. Prediction.
and
, so for the safe sign, while
The arithmetic. The computed is
exactly : the true
value exceeds by
, which is below the unit roundoff, so
the addition returns . Hence The first is right to full relative accuracy
in every entry. The second has lost its first entry
altogether: it should be and it is . Applying Eq. 24.3.3, The safe sign flattens exactly: the two
entries that were supposed to be annihilated are true
zeros. The other sign leaves behind entries of size
beside a
vector of norm —
a failure of where
was
available, and within a factor of of the estimate . Eight digits, thrown away by
a sign.
For and the
same computation leaves residues of and
,
against estimates and
.
The estimates fall by exactly each time, as
does; the residues fall by and then by , because a residue
depends on the actual rounding error committed in , which
varies with the binary expansion of and not
only with its size. Over four orders of magnitude the
estimate stays within a factor of of the measurement,
which is all an order-of-magnitude estimate
promises.
Nonexample by minimal change. Change
one character of Example (The same vector, the two signs):
take with .
The arithmetic is unaltered — the computed is again
exactly — and the
rule of Theorem 11.8.3
still works: the phase of is now , so , again with and again flattening to exactly. What
fails is the rule with the phase dropped, : it returns , and that reflection leaves with the same
residue as
before. So the clause carrying the weight is not the
plus sign but the phase : what the
rule requires is that be
added to so
that the first entry grows in modulus, never so that it
cancels. Reading the plus sign literally is correct
mathematics for every and correct
arithmetic only for .
Warning. The bad sign is
not merely inaccurate; on one input it does not
exist. If with , then
and Definition 11.8.1
does not apply at all. That is not an accident of the
arithmetic but the limit of the cancellation: the
quantity whose leading digits are being destroyed is
, and on that input it is zero. An algorithm
that is undefined at a point is inaccurate near it, and
the sign rule of Theorem 11.8.3 is
exactly the rule that keeps the point out of reach.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Define for a
least-squares problem with , and say what
means
about the system.
- (b) State Theorem 24.3.1, and say
which of its two terms survives when the residual is
zero.
- (c) Explain in one
sentence why appears in
the normal-equation route even for a consistent system,
and why it need not appear in the reflection route.
- (d) True or false:
“a matrix with should never be handled by the normal
equations”. Justify your answer.
- (e) What quantity
does Theorem 24.3.3 bound, and
which quantity does it not depend
on?
Solution.
(a) By Eq. 24.3.1, is
determined by with the residual, equivalently ; it is the
angle between and . Then says , that
is, the system is consistent.
(b) See Theorem 24.3.1: the
relative sensitivity is at most . With
we get , and only the term
survives, with .
(c) The
normal-equation route solves a different linear
system, the one with matrix , whose condition
number is by Theorem 16.8.4, and the
rounding committed in forming that matrix is magnified
by its condition number, not by ’s; the reflection
route never forms the product, and .
(d) False. By Theorem 24.3.2 (a) the
loss is about digits out of sixteen, which is usually
ample; the route costs about half the arithmetic. The
warning after Example (A matrix where one route survives and the other does not)
states the rule quantitatively: what matters is whether
is
small enough for the purpose.
(e) It bounds the
backward error of applying one
reflection by the formula Eq. 24.3.3: the computed
output is the exact output for an input perturbed by at
most
relatively. It does not depend on any condition number,
only on and .
B. Practice
Exercise
(B1: Reading the bound)
Let have ,
and suppose the data are accurate to
relatively. Using Eq. 24.3.2 with where
needed:
- (a) Bound the
relative error of the exact least-squares solution
caused by the data error, when the residual is
zero.
- (b) Do the same when
.
- (c) In case (b), how
many digits does the normal-equation route lose on top
of the data error, and how many does a backward stable
method lose?
Solution.
(a) With , Eq. 24.3.2 gives :
about five correct digits, and no algorithm can restore
them.
(b) With we have
, so the bracket is , and
the bound is .
The data alone determine nothing: the term
has swallowed the problem.
(c) The
arithmetic contributes for the normal
equations and for a
backward stable method as well, by Theorem 24.3.2. In this
case the two lose the same six digits — because the
is the
problem’s, not the algorithm’s. Both are far below the
already lost
to the data, so the choice of method is irrelevant here;
it is for small that it
decides everything.
Exercise
(B2: Where the product goes singular)
Let as in Example (A matrix where one route survives and the other does not),
in the model with .
- (a) For which does hold, and what is then?
- (b) Express the
threshold in (a) in terms of and .
- (c) Explain why the
reflection route is untroubled at that threshold.
Solution.
(a) By Definition 24.1.1, exactly
when is at
most the largest quantity that rounds away beside , which is . So
for , that is . Then every entry of is and the computed matrix
is ,
which is singular: the information distinguishing the
two columns has been rounded away.
(b) From Example (A matrix where one route survives and the other does not),
, so says
, that is .
The normal equations collapse exactly when the bound of
Theorem 24.3.2 (a) exceeds
, which is the
same as saying that the route promises no correct
digit.
(c) The
reflection route never computes . It
works with
itself, whose entries record and not , and by Theorem 24.3.3 each
reflection perturbs the data relatively by . A relative
perturbation of in
leaves
intact; a relative perturbation of in destroys .
Squaring is what moves the small quantity below the
rounding level.
Exercise
(B3: One reflection, by hand)
Let .
- (a) Compute and as in Theorem 11.8.3, and
the two amplification factors
and .
- (b) Verify the
identity
on this example.
- (c) Is the sign
choice important for this ? Justify your
answer.
Solution.
(a) and
, so
, , and
. Then
and , so Both are of order . (The general formulas
agree: and .)
(b) has , and . The
identity is .
(c) No. The
amplification factor of the bad sign is , so the two choices differ by a
factor of in
accuracy, which is nothing. The sign matters only when
is close
to a multiple of , that is when
; here is comparable with .
C. Going deeper
Exercise
(C1: The squared term is attained)
Let and take
- (a) Compute , the
least-squares solution , the residual
, and .
- (b) Using in the proof of Theorem 24.3.1, compute
exactly.
- (c) Hence show that
the squared term of Theorem 24.3.1 is
attained, in the sense that
equals
exactly, and explain what this says about any algorithm
for this problem.
Solution.
(a) , so the singular values are
and and by the rectangular clause of Definition 16.8.1. The
normal equations give . Then
, so and, by Eq. 24.3.1, Also , so , and
.
(b) The three
terms of .
First, , and , so the first term is .
Second,
because , so
the second term vanishes. Third, .
Hence
(c) and
, while The two agree exactly: the squared term is
attained. The bound as a whole is not,
and the reason is that the other two terms are
nonnegative — here the first of them contributes a
further , so the bound exceeds
by exactly that much. It is the squared term that
matters, and what it says is that the sensitivity is a
property of the data alone: a perturbation of of relative size really
does move the exact answer by
relatively, so no algorithm, however
stable, can return an answer better than that from data
known only to within . Compare
Theorem 24.3.2 (b): a
backward stable method achieves this and no
more.
Exercise
(C2: Why the residual has to appear)
Let have rank , and let be the least-squares solution,
where is the
pseudoinverse of Definition 13.12.1.
- (a) Prove that when , and deduce
.
- (b) Deduce from
in the proof
of Theorem 24.3.1 that if
— only
is
perturbed — then no term can
appear, whatever the residual.
- (c) Explain, in one
or two sentences, why perturbing is different: which
term of
carries the residual, and why it cannot be present when
.
Solution.
(a) Write (Theorem 13.9.1). Since
, , so of Definition 13.12.1 has
on
its diagonal and . On the other hand , so because
is the
matrix with entries on the diagonal and zeros
elsewhere. Unitary factors leave singular values alone —
is
unitarily similar to ,
so the two have the same eigenvalues and Definition 13.9.1
reads the same singular values off them — so by Theorem 16.3.3 (c).
(b) With , reduces to , so by (a) a single factor of however
large is. (The
residual enters only through , which is
bounded as long as is bounded away
from .)
(c) The residual
sits in the term ,
and that is the only term with
not paired with an — which is exactly
why it carries rather than
. It
is proportional to , so it vanishes when
. Perturbing
tilts the
target inside a fixed column space; perturbing tilts the column space
itself, and the residual is the lever arm by which that
tilt moves the answer.
Exercise
(C3: A reflection applied to a matrix)
Let be a Householder reflection in
and let .
- (a) Using Theorem 24.3.3 (b) and
for ,
show that the computed satisfies
.
- (b) Deduce that
differs from by at most
for every . Hint: Chapter 20
§10 or Chapter 17 §09 bounds the perturbation of
singular values by the norm of the
perturbation.
- (c) Explain why the
corresponding statement is false for the classical
Gram–Schmidt process, citing Example (Three columns and three answers).
Solution.
(a) By Theorem 24.3.3 (b), with . Since is unitary (Proposition 11.8.2
(c)) it leaves the -norm unchanged, so
(b) has the same
singular values as : , so Definition 13.9.1
reads the same list off the same matrix. Weyl’s
inequality for singular values (Theorem 17.9.4 with
, or Corollary 17.9.5
directly) gives for every , and the right-hand
side is bounded in (a).
(c) The
Gram–Schmidt recursion of Theorem 11.2.2 does
not apply a unitary matrix to ; it builds a
matrix
out of and hopes
it is unitary. Example (Three columns and three answers)
measures the damage: for the computed vectors have inner
products of size , so is unitary
only to five digits, and exceeds by eleven orders of
magnitude on that one example. (That it does so at the
rate in
general is the classical estimate quoted above, which
this book does not prove.) Any conclusion drawn from
“unitary factors leave singular values alone” then
inherits that error instead of none. The reflection
route wins because the unitary matrix is never in
question: it is exactly unitary by construction, and
only its input is perturbed.