Structure, and the solver that cannot see it

A nearby problem of the wrong kind

A good algorithm returns the exact answer to a nearby problem. A hundred and eighteen essays have measured the distance and not one has asked what the nearby problem looks like. On a Toeplitz system it is a rank-one matrix that is constant along none of its diagonals — and the smallest one that is Toeplitz is two and a half million times larger.

Worth reading first: A limit the matrix never reaches · The exact answer to a nearby problem · The matrix that is one row.

The sentence this whole site is built on is that a good algorithm returns the exact answer to a nearby problem. Every essay here that reports an error reports which of the two factors it came from, and the backward error — the distance to the nearby problem — is the factor that belongs to the algorithm.

A hundred and eighteen essays have measured that distance. Not one of them has asked what the nearby problem is.

For a general matrix the question has no content: any matrix is a matrix, and a perturbation of A is a perturbation of A. For a matrix with structure it has a great deal, and this essay is about a case where the answer is uncomfortable.

The two perturbations that make one computed solution exact, on a 10×10 Toeplitz systemA Kac–Murdock–Szegő matrix at ρ = 0.95, solved by Levinson's recursion. Every backward-error claim on this site says the computed answer solves a nearby problem exactly, and the nearby problem is the top matrix: the smallest perturbation of any kind, 1.89·10⁻¹⁷ relative, rank one, and constant along 0.97 of the way to none of its diagonals. The bottom matrix is the smallest perturbation that is itself a symmetric Toeplitz matrix — the same kind of object the problem was posed with — and it is 2.65·10⁻¹³, larger by a factor of 1.41·10⁴. Both explain the same computed answer exactly. Only one of them is a problem anybody could have posed.the smallest perturbation of any kind — 1.89·10⁻¹⁷the smallest Toeplitz one — 2.65·10⁻¹³both exact for the same x̂smallest of any kind1.9·10⁻¹⁷smallest Toeplitz one2.7·10⁻¹³the price of the constraint1.4·10⁴diagonal defect, unconstrained0.97an exact answer to a nearby problemof a kind nobody posed
Fig. 1 The two perturbations that make one computed solution exact. The top one is the smallest of any kind. The bottom one is the smallest that is itself a Toeplitz matrix.

What a Toeplitz system is

A Toeplitz matrix is constant along its diagonals: T[i][j] depends only on i − j. An n×n one is therefore 2n − 1 numbers in an n² object, and it is what a stationary process, a convolution, a time-invariant filter or a discretised translation-invariant kernel produces.

A fast solver for it takes O(n²) operations instead of O(n³), and the reason is exactly the count above: Levinson’s recursion works on the 2n − 1 numbers and never touches an entry off the first row. It builds the solution of the k×k leading system from the (k−1)×(k−1) one using a single reflection coefficient, and it never forms a factor of anything.

That last clause is where this essay starts. There is no factorisation to be the exact factorisation of a nearby matrix, so the standard backward error analysis — the one that says LU with partial pivoting is stable because the computed factors are the exact factors of A + ΔA — has nothing to be about.

The diagonals of T, and what each circulant puts in their place (n = 16, ρ = 0.9)Entry value against the diagonal index. The Toeplitz matrix's own diagonals fall geometrically as ρ^k. The wrapped circulant follows them to the halfway point and then jumps to the far diagonal, discarding what it passed. The averaged one blends the two throughout, weighted by how many entries each contributes — and the result is nearer to T in the Frobenius norm, 0.2112 against 0.2877.0246810121400.250.50.751diagonal indexentryT's diagonalswrappedaveragedtwo routes to one circulantformula against the fit3.3·10⁻¹⁶‖C − T‖/‖T‖, averaged0.21‖C − T‖/‖T‖, wrapped0.29one discards a diagonalthe other weights both
Fig. 2 The structure’s simplest member from the field’s first essay, where n numbers describe the whole matrix and the eigenvalues are a transform of them.
The spectrum of C⁻¹T against T's own, n = 64, ρ = 0.8Two sorted spectra on a linear vertical axis. The unpreconditioned Toeplitz matrix spreads its eigenvalues across its whole range; the preconditioned operator puts 97% of them within a tenth of 1, with 0 below zero.08162432404856640123456789index, sortedeigenvalueT aloneC⁻¹Teigenvalues, not singular valuesfraction within 0.1 of 10.97eigenvalues below zero0λ_min of the preconditioner0.11the dashed line is 1, where the cluster formsthe solid line is zero
Fig. 3 And what a circulant preconditioner does to a Toeplitz spectrum, which is why the structure is worth having at all.

The measurement needs a known answer

The family here is the Kac–Murdock–Szegő matrix ρ^|i−j|, and it is used because this site already has its closed-form inverse. So the true solution of every system below is known in exact terms rather than computed, and every forward error is a measurement.

That matters more than usual, because the whole essay is about distinguishing between two kinds of smallness, and a comparison of two float computations could not.

κ of the ρ = 0.8 Toeplitz family, against the limit it never reachesThe condition number of the n×n section of the Kac–Murdock–Szegő matrix ρ^|i−j| at ρ = 0.8, plotted against the size on logarithmic axes, with Szegő's asymptotic value ((1+ρ)/(1−ρ))² = 81 drawn as a horizontal line. The measured curve climbs towards it from below and reaches 98.9% of it at n = 128.10¹10²10²size ncondition numberlimit 81measureda limit, as a fraction of itselfreached at n = 1280.99still to go0.011κ at n = 8, as a fraction0.52every point is below the line and none of them is on itthe limit is not a value
Fig. 4 The family’s other closed form, from the structure field: a condition number that is known in advance as a limit and is approached from below.

Levinson on this family agrees with elimination and with the closed-form inverse: relative forward error below 10⁻⁹ at ρ = 0.5, 0.9 and 0.99, on a 12×12 system, and the two solvers land in the same place. Nothing is wrong with the algorithm, which is the point.

The smallest perturbation of any kind

Rigal and Gaches settled this in 1967 and the answer is a formula rather than a search. The smallest ‖ΔA‖ with (A + ΔA)x̂ = b is exactly ‖r‖/‖x̂‖, and it is attained by

ΔA = r x̂ᵀ ⁄ ‖x̂‖²

which is rank one.

That is the object every backward-stability claim on this site has been about, and it has never been drawn. It is the top matrix in the hero: dense, every entry nonzero, and constant along none of its diagonals — the measured departure from being Toeplitz is 0.885, on a scale where one means the diagonals carry as much variation as the matrix itself.

So the reassurance in its usual form reads: the computed answer is the exact solution of a nearby problem, which is not a problem of the kind that was posed, and which has n² degrees of freedom where the original had 2n − 1.

Leverage and the deleted residual for 40 observations of a 6-column fitThe upper panel is the diagonal of the hat matrix, one bar per observation, with the average p/m = 0.150 drawn through it; the leverages sum to 6.000000000, which is exactly the number of columns. The lower panel is the leave-one-out residual, computed in closed form as eᵢ/(1 − hᵢ) and, separately, by refitting the model 40 times without each observation; the two agree to 1.3·10⁻¹². The first observation carries a leverage of 0.5000 by construction, and 1 − h is the number a hyperbolic downdate takes the square root of.the diagonal of the hat matrix, hᵢ = aᵢᵀ(AᵀA)⁻¹aᵢaverage p/m = 0.15010the leave-one-out residual: eᵢ/(1 − hᵢ), and forty refitsbars: closed form · dots: refitted without that pointone number, two fieldsΣ hᵢ, exactly p6largest leverage0.5closed form against refits1.3·10⁻¹²1 − h of the first row0.5y appears in the residualand nowhere in the leverage
Fig. 5 A rank-one matrix doing structural work elsewhere on this site, from the low-rank update essays: the shape appears whenever one vector explains a discrepancy.

The smallest perturbation of the right kind

The honest question is what the smallest perturbation that is Toeplitz costs, and it is a constrained least-squares problem rather than a formula.

Write ΔA as a combination of the basis matrices of the structure — one per constant diagonal — and the requirement ΔA·x̂ = r is linear in the coefficients. Weighting them by how many entries each diagonal has turns the whole thing into an ordinary minimum-norm problem, so the structured backward error is a least-squares answer rather than an estimate.

On the 40×40 system at ρ = 0.999:

  • smallest of any kind: 2.0·10⁻¹⁷;
  • smallest that is Toeplitz: 1.15·10⁻¹⁴;
  • smallest that is symmetric Toeplitz: 5.6·10⁻¹².

Insisting on the structure costs two and a half million at the worst point of the family, and insisting on the symmetry as well costs another factor of five hundred.

Backward error with and without the structure, for Levinson and for elimination, n = 12Both solvers are backward stable on this family by the usual measure: the smallest perturbation of any kind that explains either answer stays below 3.1·10⁻¹⁷ at every ρ, and the two curves are indistinguishable. Insisting the perturbation be a symmetric Toeplitz matrix — the kind of object the problem was posed with — lifts both by orders, and at ρ = 0.999 Levinson's rises by a factor of 2.48·10⁶. Neither number is alarming in absolute terms; what is worth carrying is that the reassuring one is the one that is reported, and the two are not measuring the same thing.10⁻³10⁻²10⁻¹110⁻¹⁹10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹1 − ρbackward errorLevinson, Toeplitzelimination, ToeplitzLevinson, any kindelimination, any kindat ρ = 0.999Levinson, any perturbation3.1·10⁻¹⁷Levinson, Toeplitz only7.6·10⁻¹¹the ratio between them2.5·10⁶diagonal defect of the first0.97the number that is reportedand the number that is asked about
Fig. 6 Both quantities along the family, for two solvers. The lower pair is the number everybody reports; the upper pair is the number the question is about.

Two things about that figure are worth separating.

Neither number is alarming. 5.6·10⁻¹² is a small perturbation of a matrix by any standard, and the computed solution really is the exact solution of a genuine symmetric Toeplitz system a hair away from the one posed. The reassurance survives; it is merely worth orders less than the number that is printed.

And the two solvers are indistinguishable on the reported number. Levinson’s normwise backward error and Gaussian elimination’s are within a factor of two at every ρ, which is what “both are backward stable” means and is what a library would report. On the structured quantity they separate. The number that can tell them apart is the one nobody computes.

Backward error with and without the structure, for Levinson and for elimination, n = 20Both solvers are backward stable on this family by the usual measure: the smallest perturbation of any kind that explains either answer stays below 4.2·10⁻¹⁷ at every ρ, and the two curves are indistinguishable. Insisting the perturbation be a symmetric Toeplitz matrix — the kind of object the problem was posed with — lifts both by orders, and at ρ = 0.999 Levinson's rises by a factor of 3.059·10⁶. Neither number is alarming in absolute terms; what is worth carrying is that the reassuring one is the one that is reported, and the two are not measuring the same thing.10⁻³10⁻²10⁻¹110⁻¹⁹10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹1 − ρbackward errorLevinson, Toeplitzelimination, ToeplitzLevinson, any kindelimination, any kindat ρ = 0.999Levinson, any perturbation3.3·10⁻¹⁷Levinson, Toeplitz only10⁻¹⁰the ratio between them3.1·10⁶diagonal defect of the first0.97the number that is reportedand the number that is asked about
Fig. 7 At twenty the gap is wider: the unconstrained perturbation has n² entries to work with and the constrained one has 2n − 1, so the ratio between them grows with the problem.

Why the constrained problem is a least-squares problem

The construction is worth a paragraph, because it is the reason the number above is a minimum rather than an example.

A symmetric Toeplitz perturbation is a sum over its n constant diagonals: ΔA = Σ t_k E_k, where E_k has ones on the k-th diagonal and its mirror and zeros elsewhere. The requirement is ΔA·x̂ = r, which is n equations linear in the n unknowns t. And the size of the perturbation is

‖ΔA‖²_F = Σ_k m_k t_k²

where m_k is how many entries the k-th diagonal has, which is a weighted sum of squares. Substituting u_k = √m_k·t_k turns it into an ordinary minimum-norm problem — minimise ‖u‖ subject to Gu = r — whose answer is the pseudoinverse applied to r.

Two things fall out of writing it that way and both are used above.

The minimum is attained, so the number reported is the smallest structured perturbation and not one somebody found. A larger one would prove nothing; a smaller one does not exist.

And feasibility is checkable. If Gu = r has no solution — if the residual is not in the range of the map from structured perturbations to their action on x̂ — then no perturbation of that kind explains the answer at all, and the routine reports so rather than returning the least-squares approximation as though it were a perturbation. That is what happens at the last rung of the ladder, and it is why the number there is absent rather than large.

How far the coefficients can move without changing the fit, degree 10Relative increase in the residual against relative change in the coefficients, along the least determined direction. The residual does not move measurably until the coefficients have changed by more than a factor of one.10⁻⁴10⁻³10⁻²10⁻¹110¹10²10³10⁻¹⁶10⁻¹³10⁻¹⁰10⁻⁷10⁻⁴10⁻¹relative change in the coefficients, along the worst directionrelative increase in the residualcoefficients doubled245% change, fit unmoved in the sixth digit308×: the third digit movesκ(A) = 2.2·10⁷. Exact arithmetic would pick one point on this floor. It would not raise it.24 points, degree 10, monomial basisthe data leaves them free
Fig. 8 The least-squares object underneath it, from the field that owns it: a minimum that exists and a valley around it that is flat enough for the location to be a choice.
The least-squares solution as a projection, with the right angle measuredThe column space drawn edge-on as a plane, the data vector above it, and the perpendicular dropped to the plane, with the residual marked at a right angle to it.everything Ax can reachb = (1.4, 0.3, 1.2)Ax, the closest reachable pointr = b − Ax‖Aᵀr‖ / (‖A‖‖r‖)3.3·10⁻¹⁶‖b‖² − ‖Ax‖² − ‖r‖²1.6·10⁻¹⁵‖r‖1200 random nearby points of the plane were tried; none is closer.a 3×2 system, Householder QRperpendicularity is checked
Fig. 9 And the right angle that makes a minimum-norm solution the one it is.

Which is the reassurance getting weaker with size

That last observation is the one worth carrying out of this essay, because it runs against how a backward error is usually read.

A backward-stable algorithm’s error bound grows slowly with n — a modest polynomial, usually — and that is taken to mean the reassurance holds up as problems get larger. For the structured question it does the opposite. The constrained perturbation is choosing among 2n − 1 numbers to explain a residual that lives in n dimensions, while the unconstrained one chooses among n². The gap between what they can achieve widens as n grows, so the distance from the posed problem to the nearest problem of the same kind grows faster than the reported distance does.

Large structured problems are exactly the ones where the fast algorithm is worth having, which is to say: the reassurance is weakest where the algorithm is most necessary.

The same preconditioner in one dimension and in two (ρ = 0.9)Iteration count against the number of unknowns, on a logarithmic size axis. In one dimension the preconditioned count is 7, 10, 10, 10 — flat across a factor of six in size. On square grids with the same unknown counts it is 10, 18, 20, 21, climbing, against an unpreconditioned 14, 37, 73, 115. Nothing about the construction changed.10²020406080100120unknownsiterations2D, no preconditioner2D, preconditioned1D, preconditionedone construction, two dimensions2D steps at 16 unknowns102D steps at 100 unknowns211D steps at 100 unknowns10the same averaging, the same transformand a count that no longer stops growing
Fig. 10 Why the fast algorithm is necessary, from the two-dimensional structure essay: what the cost is when the structure is not used.
κ of the 0.9 kernel on m×m grids, against its two-dimensional limitCondition number against the grid side on a logarithmic vertical axis, with the asymptotic value ((1+ρ)/(1−ρ))⁴ = 130321 drawn as a horizontal line. The measured values are 3303, 7725, 12869, 18357, reaching 14.1% of the limit on the largest grid — where the one-dimensional section of the same length reaches far more.4681010⁴10⁵grid side mκlimit 130321measured κthe symbol multipliesthe limit, from the symbol1.3·10⁵κ at 10×101.8·10⁴share of the limit reached0.14the limit is the square of the one-dimensional oneand it is further away
Fig. 11 And the family in two dimensions, where the same trade is made at a larger size.

And at the tightest description there is none

There is one more rung and it is the one that changes the shape of the argument.

The Kac–Murdock–Szegő matrix holds one number. Not 2n − 1 and not n — the whole matrix is ρ^|i−j|, and ρ is what the model contains. Ask for the smallest perturbation of the model that makes the computed solution exact, and the answer is that there is none.

No value of ρ whatever has the computed x̂ as its exact solution. The closest one leaves a large share of the residual unexplained, and the structured backward error at that rung is not a large number, it is infinite.

One 40×40 matrix described four ways, with its condition number and its backward error at eachThe matrix is ρ^|i−j| at ρ = 0.999, where κ = 7.878·10⁴. Described as n² entries its condition number is that; as 79 constant diagonals it is 3.301·10⁴; as the 40 a symmetric Toeplitz matrix has, 3.178·10⁴; and as the one number ρ that the matrix actually holds, 61.88. The backward error of the same computed solution runs the other way — 2.01·10⁻¹⁷, 1.15·10⁻¹⁴, 5.62·10⁻¹² — and at the last rung there is none: no ρ whatever has the computed answer as its exact solution, and the closest one leaves 99 per cent of the residual unexplained. The drop that matters is the last one, and it is not a linear-algebra structure at all.110¹10²10³10⁻¹⁸10⁻¹⁴10⁻¹⁰10⁻⁶10⁻²10²10⁶numbers that describe the matrixcondition number, and backward errordensetoeplitzsymmetricρ aloneno such problemcondition numberbackward errorone matrix, four descriptionsκ, all n² entries7.9·10⁴as one number, ρ62backward error, unconstrained2·10⁻¹⁷as a symmetric Toeplitz matrix5.6·10⁻¹²fewer numbers, better conditionedand no nearby problem left
Fig. 12 The four descriptions of one matrix, with the condition number falling and the backward error rising, and the last rung’s backward error absent rather than large.

That is not a defect of the solver and it is not a surprise once stated: a one-parameter family is a curve in the space of matrices, and a computed solution generically corresponds to no point on a curve. What is worth noticing is that the sentence — the exact answer to a nearby problem — has quietly stopped being true, at the description of the problem that the person who posed it would recognise.

What a caller could actually do

The structured backward error costs a least-squares solve with 2n − 1 unknowns and n equations, which is O(n³) if done naively and is therefore more expensive than the O(n²) solve it is auditing. Nobody is going to compute it routinely.

Two cheaper things are available and neither is standard.

Compare the two solvers. Elimination and the fast algorithm on the same system give two answers, and the difference between them is a lower bound on how far either is from the truth. It costs a slow solve, so it is a check for the first run rather than for every run — which is exactly how a reference implementation is normally used, and this collection’s habit of two routes to a number applied to a case where the second route is merely the expensive one.

Or check the residual against the structure. The residual r and the computed x̂ are both to hand, and whether r lies in the range of the structured perturbation map is a rank question about an n×(2n−1) matrix — cheaper than the minimisation and enough to distinguish “there is a nearby problem of the right kind” from “there is not”. On the last rung of the ladder that check is what says the answer is absent.

The general point is the one this site keeps arriving at: the diagnostic quantity exists, is computable, and is not what gets printed. What is printed is the normwise number, because it has a closed form and costs nothing, and the closed form is available precisely because the question it answers is the unconstrained one.

How close Hager's estimate is to the true κ₁, over 200 seeded 10×10 matricesFive bars. The estimate is exactly the true condition number on 88% of the sample and inside ten per cent on 93%; the worst underestimate in the whole sample returns 45% of the truth. The last bar is the matrix built to defeat it, at 7.7%, well below anything the random sample reached.each bar is a percentage — of the sample, or of the true condition numberexactly right87.5%inside 10%93.0%inside a factor of 293.0%worst in the sample, ×10044.6%the constructed matrix, ×1007.7%usually exactexact share0.88worst of the sample0.45the constructed matrix0.077a routine that is right most of the timeand never wrong in the safe direction
Fig. 13 The same trade in the field where it is most familiar: a cheap estimate that is printed everywhere and a true value that is not, with the gap measured.

What this does not say

Three limits, because the finding is easy to over-read.

It is not that Levinson is unstable. It is backward stable in the normwise sense, its forward error tracks the closed-form answer, and on this family it is as accurate as elimination. Every claim about it in this collection stands.

It is not that structured backward errors are always large. They are bounded below by the unconstrained one and above by nothing in general, and on this family they stay at 10⁻¹² — small. There are algorithms and structures where the structured quantity is enormous or infinite, and there are pairs where it is barely larger; measuring is the only way to know which.

And it is not an argument for the slow method. Elimination’s structured backward error is also orders above its normwise one — the shape belongs to the question, not to the fast algorithm. Whatever is being given up here was given up by asking a normwise question about a structured problem, and no choice of solver recovers it.

Backward and forward error against the condition numberA log–log plot over twelve decades of condition number. The backward error is a flat line at ten to the minus sixteen; the forward error rises in proportion to the condition number.110²10⁴10⁶10⁸10¹⁰10¹²10¹⁴10⁻¹⁷10⁻¹⁴10⁻¹¹10⁻⁸10⁻⁵10⁻²10¹condition number κ(A)relative errorforward errorbackward errorpredicted: κ · u30×30, 20 seeds per κ; dashed is the worstthe problem worsens, not the method
Fig. 14 The identity all of this sits inside, and the reason a backward error is worth anything at all.
What the solver reported, and what it achievedFinal relative residual and final relative error against the working precision, on a logarithmic vertical axis. The residual sits at the stopping tolerance at every precision — the method converged, by every test available to it. The error runs from 9.06·10⁻¹³ at 53 bits to 0.0114 at 8, tracking the unit roundoff, which is drawn beside it.614223038465410⁻¹³10⁻¹⁰10⁻⁷10⁻⁴working significand bitsrelative sizeerrorresidualuthe gap the solver cannot seeerror ÷ residual at 24 bits5.9·10⁵error ÷ residual at 16 bits1.2·10⁸error ÷ residual at 8 bits2.7·10¹⁰every convergence test passesand the answer is wrong in proportion to u
Fig. 15 And the general form of a quantity that decides the outcome and is not among the ones reported.

The pattern across three fields

This collection has now measured three quantities that a summary number conceals, and they are the same shape in three different places.

A condition estimate is a lower bound that libraries print as though it were the value, and the matrices where it under-reports are the ones where the number mattered.

A residual is small on a computation that solved a different problem, and a small residual is not a small error.

And now a backward error is a distance to a problem of a kind nobody posed, and the distance to the nearest problem of the right kind is orders larger.

In all three the printed number is the one with a closed form, the useful one requires an extra computation, and the extra computation is skipped for a reason that is entirely defensible in isolation. What the three have in common is worth naming as a rule of thumb rather than a discovery: a quantity that is free to compute is answering the question that has a closed form, and that is rarely the question being asked.

Distance from the truth and residual, for both methods, with 0% of the noise in the matrixFour bars, medians over 40 seeds. The upper pair is how far each answer is from the coefficients the problem was built from; the lower pair is ‖Ax − b‖ on the problem as given. Ordinary least squares minimises the lower quantity by definition, so its bar is the shorter of the two whatever happens above — and at this share it is the less accurate answer.the upper pair is distance from the truth; the lower pair is ‖Ax − b‖least squares · error0.04439total least squares · error0.1565least squares · ‖Ax − b‖4.734total least squares · ‖Ax − b‖4.971two orderingserror ratio (ls ÷ tls)0.28residual ratio (tls ÷ ls)1.1seeds40no vector makes the residual smallernot even the one the problem was built from
Fig. 16 The second of the three at its sharpest, from the total-least-squares essay: the residual ordering two methods backwards.

The refusal

The assertion is fed a Levinson recursion on a Toeplitz matrix that is not positive definite.

The recursion divides by α, the residual variance of the order-k prediction problem, and on a positive definite matrix that quantity is positive and decreasing. On an indefinite one it goes negative, the next reflection coefficient is a ratio of two numbers whose signs mean nothing, and the recursion continues to the end and returns a vector.

The vector has the right length and the wrong everything else, and it comes back without a warning, because nothing in the loop tests a quantity that is positive on every matrix the method was designed for. It is the same shape as elimination without a pivot search: an algorithm that runs to completion on an input it was not written for and returns an answer of the correct type.

Elimination with and without pivoting, ε = 10⁻¹²The same two-by-two system solved twice. With a row swap the answer is exact; without one the upper triangular factor contains an entry of order one over epsilon and the second component of the answer is wrong.[ ε 1 ; 1 1 ] x = [ 1 ; 2 ], exact answer (1.000000, 1.000000)with partial pivoting1101U after elimination1.0000001.000000computed xbackward error 0forward error 0without10⁻¹²10-10·10¹¹U after elimination0.9999781.000000computed xbackward error 5.5·10⁻⁶forward error 1.6·10⁻⁵no error is raisedgrowth 10·10¹¹
Fig. 17 That shape in its original setting on this site, from the elimination field.
Conjugate gradient steps either side of the preconditioner's sign change, ρ = 0.9Two step counts against the size, on logarithmic axes. Without a preconditioner the count climbs steadily. With Strang's circulant preconditioner it is worse than useless while the preconditioner is indefinite — its smallest eigenvalue is -0.4005 at n = 16 — and collapses once the sign changes, between n = 32 and n = 64.10²110¹10²size niterations to 10⁻¹⁰λ_min(C) changes signno preconditionerStrang's circulantthe preconditioner's own spectrumλ_min(C) at n = 16-0.4λ_min(C) at n = 32-0.14λ_min(C) at n = 640.016λ_min(C) at n = 1280.051λ_min(C) at n = 2560.053left of the line the repair costs stepsright of it, the count stops counting n
Fig. 18 And the same family’s other definiteness trap, from the structure essays: a preconditioner built from this matrix that stops being positive somewhere nobody was watching.
The two perturbations that make one computed solution exact, on a 10×10 Toeplitz systemA Kac–Murdock–Szegő matrix at ρ = 0.5, solved by Levinson's recursion. Every backward-error claim on this site says the computed answer solves a nearby problem exactly, and the nearby problem is the top matrix: the smallest perturbation of any kind, 2.17·10⁻¹⁷ relative, rank one, and constant along 0.93 of the way to none of its diagonals. The bottom matrix is the smallest perturbation that is itself a symmetric Toeplitz matrix — the same kind of object the problem was posed with — and it is 3.83·10⁻¹⁵, larger by a factor of 177. Both explain the same computed answer exactly. Only one of them is a problem anybody could have posed.the smallest perturbation of any kind — 2.17·10⁻¹⁷the smallest Toeplitz one — 3.83·10⁻¹⁵both exact for the same x̂smallest of any kind2.2·10⁻¹⁷smallest Toeplitz one3.8·10⁻¹⁵the price of the constraint177diagonal defect, unconstrained0.93an exact answer to a nearby problemof a kind nobody posed
Fig. 19 At ρ = 0.5 the system is well conditioned, the price of insisting on the structure is smaller, and the shapes are the same two shapes.
Backward error with and without the structure, for Levinson and for elimination, n = 8Both solvers are backward stable on this family by the usual measure: the smallest perturbation of any kind that explains either answer stays below 4.7·10⁻¹⁷ at every ρ, and the two curves are indistinguishable. Insisting the perturbation be a symmetric Toeplitz matrix — the kind of object the problem was posed with — lifts both by orders, and at ρ = 0.999 Levinson's rises by a factor of 9.478·10⁴. Neither number is alarming in absolute terms; what is worth carrying is that the reassuring one is the one that is reported, and the two are not measuring the same thing.10⁻³10⁻²10⁻¹110⁻¹⁹10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹1 − ρbackward errorLevinson, Toeplitzelimination, ToeplitzLevinson, any kindelimination, any kindat ρ = 0.999Levinson, any perturbation1.9·10⁻¹⁷Levinson, Toeplitz only1.8·10⁻¹²the ratio between them9.5·10⁴diagonal defect of the first0.89the number that is reportedand the number that is asked about
Fig. 20 And at eight unknowns, where the gap between the two pairs of curves is narrowest.
The two perturbations that make one computed solution exact, on a 12×12 Toeplitz systemA Kac–Murdock–Szegő matrix at ρ = 0.95, solved by Levinson's recursion. Every backward-error claim on this site says the computed answer solves a nearby problem exactly, and the nearby problem is the top matrix: the smallest perturbation of any kind, 2.18·10⁻¹⁷ relative, rank one, and constant along 0.98 of the way to none of its diagonals. The bottom matrix is the smallest perturbation that is itself a symmetric Toeplitz matrix — the same kind of object the problem was posed with — and it is 3.72·10⁻¹², larger by a factor of 1.71·10⁵. Both explain the same computed answer exactly. Only one of them is a problem anybody could have posed.the smallest perturbation of any kind — 2.18·10⁻¹⁷the smallest Toeplitz one — 3.72·10⁻¹²both exact for the same x̂smallest of any kind2.2·10⁻¹⁷smallest Toeplitz one3.7·10⁻¹²the price of the constraint1.7·10⁵diagonal defect, unconstrained0.98an exact answer to a nearby problemof a kind nobody posed
Fig. 21 At twelve rows the constrained perturbation has 2n − 1 numbers against n² for the unconstrained one, and the gap between what they can achieve is wider than at ten.

What is next

This essay measured what the structure costs when it is imposed on the perturbation. The next one measures what it buys when it is imposed on the problem — the condition number of a matrix described by fewer numbers, which falls as the description shrinks, and where the fall happens turns out not to be where the linear algebra is.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

Backward errorBackward stabilityCondition numberExact inverseFast algorithmLevinson recursionLow-rank updateStructured perturbationToeplitz matrix