Theme

The thread: Claims that can fail — page 11

Essays 241 to 268 of the 336 on this theme, in the same order.
11.524812Strakoš, five values of ρ24 bits16 bits11 bits8 bitsisolated at 0.0124 bits16 bits11 bits8 bitsisolated at 0.00124 bits16 bits11 bits8 bitsisolated at 0.000124 bits16 bits11 bits8 bitserror at window 5's stop over the least errorred: more than half again above the leastonly the isolated stall fools it The answer that depends on the machine

A bound on the fall, not the error

A five-step window in Hestenes and Stiefel's error clause stopped forty steady conjugate-gradient runs promptly and safely, and was predicted to stay safe through a stall, because a lower bound on the error should sit just below an error that is sitting still. On twenty runs that stall because rounding has made them repeat themselves, it does: the bound stays above half the error on every stalled step and window 5 stops within 1.12 of the least. On runs that stall in exact arithmetic — one eigenvalue far below the other forty-seven, carrying a share of the energy — it stops more than half again too high on six runs of twenty-four, and on two at nine and ten times the least. The window sum is the energy the error lost over the window, which is a lower bound only because what is left is not negative. On a stall the loss is the other eigenvalues' remainder; it falls geometrically while the error waits, by a factor of about the square root of the isolated eigenvalue, and at low precision it crosses the threshold first.

16243240485664728010⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³orderworst over the middleeigenvalue erroreigenvector, Schur routeeigenvector, inverse iterationmiddle eigenvalues, |λ| ≤ 5the route is the answer Two errors, and whose fault they are

The vector moves with its eigenvalue

The Sylvester–Kac matrix's middle eigenvectors came back exact to fourteen digits by inverse iteration while their eigenvalues lost eleven, and the route LAPACK uses — back substitution in the computed Schur form, then the accumulated orthogonal transformation — was predicted to lose them, at about the eigenvalue's error divided by the gap of two: 10⁻⁵ at order 80. It does, at 2.3·10⁻⁵, so the route is the whole of the difference: nine orders of magnitude between two ways of computing the same vectors from the same eigenvalues. The constant is not one over the gap. On all 274 eigenvectors whose eigenvalues are off by more than 10⁻¹¹, at every order from 40 to 80, the Schur route's error is 0.76 to 0.84 times its eigenvalue's error, and 0.79 is a number the exact vectors carry: how fast a unit Krawtchouk vector turns as its eigenvalue moves. The Schur route returns the right eigenvector of a wrong eigenvalue.

246810⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1decades between groupsmiddle group's backward errortrailing, root 2leading, root 4leading, root 3shifted, root 3filled: structured · open: genericthe prediction's pair never keeps it The eigenvalue problem that is not linear

The middle root has no neighbour to lean on

A quartic matrix polynomial's four groups of eigenvalues, up to eight decades apart, were all kept by two scaled reductions of its companion pencil — the trailing one at the second tropical root for the lower pair, the leading one at the third for the upper pair. For a quintic the same pair was predicted to keep the middle group as well up to six decades, and to fail at eight, making the quintic the first polynomial that needs three. The pair keeps the four outer groups to six decades on both families, as predicted, and never keeps the middle group at all — not at eight decades, six, four or even two. Scaled at the middle root, both end coefficients shrink together, as 10 to the minus three times the separation, so every reduction that inverts one end of the pencil is far from the middle. Where the middle group is kept, it is by a reduction centred on it: on the structured family the leading reduction at the third root keeps it at every separation, and with the scaled trailing one that makes two routes again — not the predicted two. On the generic family none of thirteen routes keeps it at four or six decades.

10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹110¹isotropic share εtread width over εseparable, 13.37mixture, 1.73dashed: first order · dots: measured, 10 × 10four digits from the symbols Structure, and the solver that cannot see it

The slopes were in the symbols

A separable BTTB kernel with a small isotropic part ε, preconditioned by the separable part's symbol circulant alone, has sixty-four eigenvalues at one that spread as ε grows — 13 times ε wide and shifted 7.7 times ε — while the mixture's own symbol spreads them only 1.7 times ε. Both slopes were predicted to follow, to five per cent, from first-order perturbation of that sixty-four-dimensional eigenspace: the shift as the mean of the perturbation's eigenvalues on it, the width as their spread. The widths come out at 13.372 and 1.732, matching the measurements to four digits. The shift does not come out as the mean, which is 5.77; it comes out as the midpoint of the extremes, 7.671, because that is what the measurement reads. And the decomposition says what the cheap preconditioner costs: the circulant part of the isotropic correction, which the separable symbol leaves in, carries ninety-nine per cent of its width. What looked like first order failing at a hundredth was the tread's centre moving, not its eigenvalues.

0102030405060radius 0.11graph 1cliquegraph 2cliquegraph 3cliquegraph 4cliquegraph 5cliquegraph 6cliquegraph 7cliquegraph 8cliqueradius 0.13graph 1cliquegraph 2cliquegraph 3cliquegraph 4cliquegraph 5cliquegraph 6cliquegraph 7cliquegraph 8cliqueradius 0.16graph 1cliquegraph 2cliquegraph 3cliquegraph 4cliquegraph 5cliquegraph 6cliquegraph 7cliquegraph 8cliqueseparator vertices; dark: touching only one sideevery one a clique, at every densityspare vertices, no broken clique Sparsity, and what elimination costs

The spare vertices lean one way

Every separator a dissection drew on grids and sparse geometric graphs was a clique once its pieces were eliminated, so the order inside it changed nothing; only a separator two rows thick, built by hand, was not. On geometric graphs at twice the density, level-set separators were predicted to come out several vertices thick where the level crosses a dense patch, with vertices touching only one side — failing the clique condition, making their order matter by more than five per cent, and paying more for trimming than for any order. On twenty-four graphs at three densities the spare vertices are there: up to thirteen in one separator. Not one separator fails the clique condition, because on every graph the spare vertices all touch the same piece, and two vertices that share a piece are joined through it. No shuffle of any separator moves the fill or the work by a single entry. Trimming the spare vertices into the piece they touch shortens the critical path by up to 48 per cent — and denser graphs have fewer of them, not more.

03103010030012 vertices, degree 4, 1 insideoutward 3, divisible by 3403413 vertices, degree 4, 1 insideoutward 3, divisible by 33412 vertices, degree 5, 2 insideoutward 3, divisible by 315432214 vertices, degree 5, 1 insideoutward 406214 vertices, degree 5, 2 insideoutward 3, divisible by 302switches giving a new graph, logarithmicdark: heard · light: silent1,500 graphs a caseonly when divisible, not always then The matrix that is a graph

Three is where it can hear

A Godsil–McKay switch on four vertices conjugates by a matrix of halves, and the critical group hears it at the prime two exactly when the switching set's indicator is a Laplacian null vector modulo two. On six vertices the matrix is of thirds, and the switch was predicted to be heard only at three, only when every vertex of the set has an outward degree divisible by three — and, on cubic graphs, whenever the set has no edge inside. On 621 switches of random quartic and quintic graphs, the first two clauses hold on every one: 197 are heard, all at three alone, all with outward degree three. But divisibility is no longer enough — it is heard on 54 per cent of the quartic switches and 32 per cent of the quintic — and the rank of the Laplacian modulo three, not the outward degree, is what tells the heard from the silent, on all but two. The cubic clause has nothing to apply to: a six-vertex switching set on a cubic graph forces the graph's order to be 8, 10 or 12, and every one of 9,985 such switches gives back the graph it started from.

blocks of 232 states×40 states×48 states×56 states×64 states×blocks of 432 states×40 states×48 states×56 states×64 states×blocks of 832 states×40 states×48 states×56 states×64 states×020406080100120barrier depth, octaves×the predicted lineblock window under an octaveblock window emptyfirst stops being exactexacta stored rate is zeroE4M3, every depth from 2 to 120the block fails where its window empties The arithmetic underneath

Twice the block, half the depth

An eight-bit chain kept exact by a window per step was predicted to keep exactness with one exponent shared by two states, and to lose it with four from the depth where four of its steepest steps span more than the narrowest window, 4.8 octaves. Blocks of two fail on four chains of five, at 66 to 114 octaves. Blocks of four fail at 35 to 66, two to three times deeper than the predicted 13 to 26. Every block size fails within three octaves of the depth where its block's window empties, and that depth is 4.0 to 4.6 octaves for each state a block holds.

110¹110¹the order cut's needfirst-level readingthe kept pairings' ratiodearest kept overcheapest of alldashed: equaldotted: a factor 1.5seven tensors, sixty networksthe offer does not show the need Where the flop count stopped predicting the time

The need is set further on

A beam over contraction orders needs a wide tolerance at its partial-order cut, a median factor of 2.33 at seven tensors, and the beam was predicted to see that need in its own first level — the ratio of the dearest prefix it is offered to the cheapest, within a factor of 1.5 on four networks in five. The best such ratio is within 1.5 on 32 of 60, and none ranks the networks better than chance. A beam that sets its tolerance from its first level lands on the line the fixed tolerances draw. The ratio is exact where the need is set at the first level, and 35 of 60 networks set it later.

24685055606570758085decay's fall a trace after the turn, hundredthsspread used, % of the truemeasuredthe last ratio, squaredlast ratio over the nextmedians over 400 sequencesthe square holds only when the turn is symmetric Randomised, and the guarantee that changes kind

The fall sets the undershoot

A trend-carried spread meets a turn sharper than the drift before it — the decay rising 0.02 a trace and then falling 0.06 — and the prediction was a spread about 0.6 of the truth on the trace after the turn, coverage under 55 per cent, a fresh pilot there restoring it, and the sequence's average within two points. All four hold: 0.617, 48.5 per cent, 71.0 per cent, and 67.7 against the table's 68.3. What fails is the rule the earlier essay gave for the error, the square of the last ratio. The undershoot is the last ratio over the next one, and the coverage it costs is the normal table's at that fraction.

the geometric rule: 61% of n²the best possible: 30% of n²kept wholerank up to 6up to 20above 20n = 256 · ε = 10⁻⁸ · the same treethe rule cannot see the kernel Neither sparse nor dense

A far pair is not a smooth pair

The admissibility test reads four numbers per pair of clusters and not one entry of the matrix, which was presented as its great economy. It is also an assumption: that distance from the diagonal is smoothness. On the kernel it was built for it lands within an eighth of the least storage any partition of the same tree has. Move the singularity onto a line off the diagonal and it stores twice the least, admitting blocks of rank 35 that cost more than their entries. Put no singularity anywhere and it stores nearly six times the least, carefully refusing pairs that needed no refusal. A random probe of a few entries finds the best partition, and a larger one can miss the singular line altogether and store the whole matrix as one block of rank 165, unless it checks the rank before believing it.

10⁻¹⁶10⁻¹²10⁻⁸10⁻⁴1aligned, floor 10⁻⁸, κ(P)κ(Q) 1e+16square-root routeproduct routerotated, floor 10⁻⁸, κ(P)κ(Q) 1e+16square-root routeproduct routealigned, floor 10⁻¹², κ(P)κ(Q) 1e+24square-root routeproduct routerotated, floor 10⁻¹², κ(P)κ(Q) 1e+24square-root routeproduct routerelative error in the smallest σone κ(P)κ(Q) on each pairthe rotation, not the number Reduction, and what a model is for

The coordinates set the number

κ(P)κ(Q) was read as useless for saying how reducible a model is, with one use left to it: it decides between two routes to the Hankel singular values, and past the square of one over the roundoff the route through the product has nothing left. Both halves depend on the state coordinates. Spread those coordinates over six decades and κ(P)κ(Q) moves from 10¹⁶ to 2·10³⁰ on a model whose Hankel values do not change, and every value is still read to five digits, by both routes, within a factor of a few of each other. Rotate the same model by an orthogonal matrix instead and κ(P)κ(Q) stays at 10¹⁶, while the product route's smallest value goes from thirteen digits to two. And one solve's own diagonals give the coordinates back: a second solve undoes the whole spread.

110¹10²110¹10²root of the pointwise ratio's spreaditerationsbump, fit in the normbump, in the logarithmridge, in the normridge, in the logarithmthe spread bounds κ, on any gridthe number the preconditioner reads When the index is a tuple

The nearest product is not the nearest operator

A Kronecker sum is solved by one eigendecomposition per axis, and a variable-coefficient operator almost never is one. So the natural move is to solve the nearest separable problem instead and use it as a preconditioner, with the coefficient's first singular value saying how near. That number predicts nothing. A bump at contrast six has 99.9 per cent of its norm in its first singular value and takes 123 iterations, seven times what it takes at a share of 95 per cent, because a fit in the norm chases the peak and leaves the rest of the domain wrong by a factor of 167. Fit the logarithm instead and the misfit is a ratio, the iterations fall by more than half, and one number accounts for them on every case tried: the root of the spread of the pointwise ratio.

02468101210⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1inner steprelative energy error12 unknowns, κ(H) 10⁴9 unknowns, κ(H) 10²12 unknowns, κ(H) 10²conjugate gradients from zerothe accuracy arrives in the last step The matrix a constraint makes

The step was coarser than the test

Conjugate gradients stopped at a residual tolerance hands back energy errors far below what was asked, and that was read as the fault of the test. So the inner solve here stops on an estimate of the error itself, which was predicted to make the outer step rule count within one on 180 of 198 runs. It counts 154, against 156 for the residual. The estimate is honest: with two steps of look-ahead no run overshoots tenfold. But on 82 of 132 runs the two tests land on the same iterate to within a factor of two, because on these blocks the error falls gently for nine or eleven steps and then drops by orders in the last. A second prediction fails too: a fixed perturbation on the three smallest eigenvectors matches the real solve on four systems of twelve, no more than one spread evenly, and under two per cent of the real error lies on them.

040801201602002400.60.70.80.911.11.21.31.41.5draws, in order of the first estimateestimate over the true noisecorrected onceread again1.25 samples per unknown · 240 drawsthe bottom lifts, the middle rises Regularisation, and the answer that is chosen

The share read twice moves the middle

Leave-one-out's noise estimate, with the fit's degrees of freedom taken out, was nearly unbiased in the median and low on a third of 960 draws, down to 0.645 of the noise. The prediction was that the low draws are those whose leave-one-out λ sat furthest left of the oracle's, so that the degrees of freedom were read too high, and that reading them again at the discrepancy principle's own λ would lift every one above 0.85 without moving the median by more than two per cent. Nine of the twelve lowest draws do sit far left; three sit six decades to the right. One more reading lifts the lowest to 0.783 and leaves seven draws under 0.85, not none. And it moves the median by up to 6.2 per cent, because it lowers the share it takes out from every draw, not only the low ones. The rule told the new estimate is no better on any cell.

units of the roundoffat k = 110.002at k = 122047compensated at 120.620481216202410⁻³10⁻²10⁻¹110¹10²10³10⁴k, the small entries are two to the minus kerror in units of the roundoffeither scale, largest firstsum compensatedbinary32 · length 4,096 · floored at 10⁻³a square half an ulp below the running sum The arithmetic underneath

The division the norm did not need

Dividing by the largest entry is the standard repair for a Euclidean norm that overflows, and it was said to make about the same rounding errors as the expression it replaces. It is about a third worse on short vectors, up to 1.74 times, and it misses 801 of 4,518 integer norms the plain expression returns exactly, because a power of two buys the same range with no rounding at all. But the scale was never the main liability. One entry of size one and 4,095 entries of two to the minus twelve lose 2,047 units of roundoff in every route alike, from a sum that throws each small square away on arrival.

110¹05101520253035largest singular value over the secondstep, medianholding one vector, partssecond value convergesshort recurrence, partsfirst value convergessix problems, 72 draws · this blur, 24the repair goes back to the blur's own step Methods that were designed apart

The hold ends where the blur parted

Holding conjugate gradients' basis off its first converged Ritz vector failed on the blurs because their second value converges a step or two behind the first, and it was predicted to work on an operator whose top singular value stands at twice the second. At twice the second it fails on all seventy-two draws: the delay is eight steps against a gap of ten. It starts to succeed only near four times, and it does so without the repaired run going one step further. The repaired run parts at about step 30, 20 and 14 on the three blurs at every ratio from 1.25 to 32, within two steps of where the unaltered blur parted to begin with. Pulling the top value away moves the failure earlier; the repair only takes it back.

110¹10²10⁶10⁷10⁸10⁹right-hand sidesmultiplications in totaldense factorisationconjugate gradientspreconditioned at ε = 10⁻²hierarchical, ε = 10⁻⁸n = 512 · the same counter throughoutdirect passes the coarse iteration near 21 Where the flop count stopped predicting the time

The second right-hand side

A hierarchical solve was priced at 0.16 of a dense factorisation at 512 unknowns, for one right-hand side. The second right-hand side costs one fifty-eighth of the first, and against the iteration the same format makes possible that is what decides everything. Plain conjugate gradients is overtaken after three right-hand sides on the easiest matrix and at the first on the harder ones. A coarse format inside the iteration holds out for twenty-one, at the same accuracy, and for one or two when the kernel is soft enough. The count was never a property of the method: it runs from under one to twenty-one on one size of matrix and depends on the conditioning.

110100entries below 9budgeted by the bound7enough for the determinant6used, stopping on one repeat7entries below 999budgeted by the bound15enough for the determinant14used, stopping on one repeat15Hadamardbudgeted by the bound4enough for the determinant4used, stopping on one repeat5Pascalbudgeted by the bound46enough for the determinant1used, stopping on one repeat2unit triangularbudgeted by the bound3enough for the determinant1used, stopping on one repeat2scaled Hilbertbudgeted by the bound107enough for the determinant34used, stopping on one repeat35primes of about twenty-six bitsorder 32 · every stop was checked exactlya bound is not a measurement Exact arithmetic, and what it costs instead

The budget was a worst case

The number of primes a modular determinant needs was said to have to be fixed in advance by a theorem, not by trying more until the answer settles. Hadamard's bound is that theorem, and it is tight on a Hadamard matrix and within one prime on random entries. On a Pascal matrix of order 32 it budgets forty-six primes for a determinant of one, and on a scaled Hilbert matrix three times what is needed. Stopping when the value repeats finds the right determinant on all eighteen matrices tried, at one prime more than needed. It can be fooled: a determinant built on the first six primes of an ordered list is reported as seven by every stop asking fewer than six repeats. Draw the primes at random from a pool and the same matrix fools it at the rate chance predicts.

10²10³06121824samplesdraws of 24 still connectedexact resistancesketched, 8 solvessketched, 2 solvesdegrees onlyuniformtwo cliques of 20, one bridgeonly resistance sees the bridge The matrix that is a graph

What the resistance was for

Sampling edges by effective resistance kept every eigenvalue of a complete graph's Laplacian within a factor of 1.7, and that was credited to the probability. On a complete graph every edge has the same resistance, so the probability was uniform. On a grid, uniform sampling gives the same band at 480 samples within one per cent. What separates the rules is the edge nothing else can see. On two cliques joined by one bridge, resistance keeps the graph connected on every draw from 240 samples, and uniform and degree-based sampling lose it on 14 and 15 draws of 24, and still on two or three at 960. The resistance is a cut's survival rate. And a crude one will do: two solves find the bridge, at a band nearly twice as wide.

04812162024283210⁻¹10¹10³10⁵10⁷10⁹10¹¹10¹³10¹⁵power iterationsdraws' spread over partitionings' spreaddecay 0.7decay 0.78decay 0.82decay 0.88decay 0.94floored at a tentha factor of 10¹⁴ is one setting The answer that depends on the machine

The seed stops mattering first

A randomised low-rank approximation's error moved by 31 per cent between draws and by 10⁻¹⁵ between partitionings of one draw, so a seeded method was called reproducible in the term that matters by a factor of 10¹⁴. That is true at no power iterations. Each pass cuts the spread between draws by a fixed factor and leaves the partitioning's spread where it was, so the two lines cross: at two passes on a decay of 0.7, at sixteen on 0.94. Past that point a recorded seed settles nothing a recorded machine does not, and a bitwise test is the only thing left that can tell two runs apart. The vectors take longer: at sixteen passes the error has settled to rounding while the leading subspace still differs between draws by 3·10⁻⁵.

012310⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³the eigenvalue's angle, in radiansdistance from the unit circlegeneral, inside the circlegeneral, outsidestructuredorder 8 · κ(C) = 10³ · floored at 10⁻¹⁷a growing mode that is not there The eigenvalue problem that is not linear

The circle a general solver leaves

A palindromic quadratic's eigenvalues come in reciprocal pairs, and on a real chain that made the small half one division from being right. A pair on the unit circle is the other case, and there reciprocity is a statement that the mode neither grows nor decays. A general solver owes that nothing: it moves unit-modulus eigenvalues off the circle by 10⁻⁷ at a leading factor's condition number of a million, and at a thousand it puts six of sixteen outside by more than rounding, which is a growing mode that is not there. A route through the definite pencil in λ + 1/λ stays within 2·10⁻¹⁶ at every conditioning, and its angles are nine decades better. Where two eigenvalues collide at λ = 1 the structure protects nothing, and both routes fail together.

110¹110¹sketch width over dimensionκ(SQ), median of 16Gaussian4 nonzeros2 nonzeros1 nonzero (CountSketch)dimension 16 · 1,000 rows · cut at 40only leverage separates the sketches Randomised, and the guarantee that changes kind

One nonzero is a birthday problem

A sketched preconditioner's quality is one number, how well the sketch preserves one subspace, and the sketch that ships has one nonzero in each column. It was said to supply the needed distortion at its own width. On an incoherent basis its own width is everyone else's: at four times the dimension CountSketch, uniform sampling and a Gaussian all read κ of 2.6. Put each direction of the basis on a single row and CountSketch is singular on 14 draws of 16 at the same width, by the formula for shared birthdays, and needs the dimension squared to escape it. Two nonzeros reduce that to three draws in sixteen at twice the dimension and none at four. Four nonzeros are a Gaussian for this purpose, at about a sixteenth of its cost to apply.

110¹0510152025303540vectors kept; none is drawn at a halfiterations on the last memberrank 2rank 4rank 8rank 16rank 3280 unknowns · 24 membersr + 1, less one for each vector When the problem arrives again

A kept vector buys one iteration

A kept Cholesky factor with a drift of rank r in the matrix takes exactly r + 1 iterations at every member, at any drift rate, because the preconditioned matrix is the identity plus a rank-r term. The run has found those directions and throws them away. Keep some from one member to the next and each one removes exactly one iteration: keep sixteen on a drift of rank sixteen and every later member takes one. Each vector also costs half an iteration a member, so the saving is half what it looks like, and past the rank it is all cost. On a drift across half the spectrum there is no rank to reach: sixteen vectors halve the iterations and save a fifth of the work, and rebuilding the factor still wins until a rebuild costs more than a hundred iterations.

02000400060008000naturalthe graph's count8019kept at a hundredth, 8 iterations2898kept at a tenth, 15 iterations1466reverse Cuthill–McKeethe graph's count5910kept at a hundredth, 7 iterations2569kept at a tenth, 14 iterations1484minimum degreethe graph's count3729kept at a hundredth, 7 iterations2813kept at a tenth, 20 iterations1599nested dissectionthe graph's count5129kept at a hundredth, 8 iterations3554kept at a tenth, 26 iterations1242entries in the factor400 unknownsthe ranking does not survive Sparsity, and what elimination costs

A count of fill is not a size

The fill of a sparse factor can be counted from the graph alone, before any arithmetic runs, and the count is exact: on a grid Laplacian not one of the entries the graph marks is zero. But a count holds every entry at one number. In the natural order, three quarters of the fill of a 20-by-20 grid is below a hundredth of its column's diagonal, and fifteen per cent is below 10⁻⁴. The better orderings remove exactly that part: under nested dissection almost nothing is that small. So the count's ranking stops meaning what it says once a factor is dropped. Minimum degree has the least fill of the four orderings, and at a threshold of a tenth it takes 20 iterations on more kept entries than the reverse Cuthill–McKee factor takes 14.

110¹10²10³10⁴10⁵10⁶110¹10²10³10⁴10⁵10⁶products‖QᵀQ − I‖ in units of the roundoffone factor repeateda pool of 4a pool of 64a pool of 1024a fresh factor each timebinary32 · order 3 · five drawsa fixed defect is a straight line Orthogonality, measured

A repeated rotation drifts in a straight line

Composing rotation matrices drifts away from orthogonality, which is why graphics and robotics code re-orthonormalises. Rounding errors have no preferred sign, so a product of k rotations should lose orthogonality like the root of k, and it does when every factor is new: slope 0.52 over a million products. Multiply by the same factor every step, as a fixed-step integrator does, and the slope is 1.00. The factor's own rounding is one defect met in the same direction every time. At a million products in binary32 that is 622,000 units of roundoff against 2,400, a loss of 3.7 per cent. One polar step removes it at any period from ten products to ten thousand, the error in the rotation falling twenty times and hardly moving with how often it is run. Gram–Schmidt every ten products is six times worse, and for a reason that is not rounding.

10¹10²10³10⁴10⁵10⁶10⁷10⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³10⁻¹condition numberrelative error of the solutionnormal equationsQRu·κtan θ = 1 · 24 × 6 · five drawsagainst exact arithmetic, on the stored data Least squares, and the road not to take

Where QR pays the square

The road through the normal equations squares the condition number, and the road through QR keeps every step orthogonal, so the condition number is untouched. That is true of the triangular system QR ends in, and it is not a statement about the answer. Measured against the exact solution of the stored data, QR's error in a least-squares solution goes as the square of the condition number too, once the data lie well away from the column space: 2·10⁻⁴ at κ = 10⁷ and a tangent of one, five orders above the condition number's own reading. The residual does not pay it. And the normal equations' famous disadvantage is seven decades on a consistent system, one decade at a tangent of one, and nothing at all at a thousand.

10²10⁴10⁶10⁸10¹⁰10¹²10¹⁴10⁻¹⁸10⁻¹⁶10⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²condition numberbackward error, median of twelveinverse, b = Axinverse, b randomLU, b = Axorder 30 · matrices with known singular valuesthe earlier sweep is the red line only Elimination, and the swap

The test that made the answer small

Solving by a computed inverse was measured twelve orders of magnitude less backward stable than solving by LU at a condition number of 10¹⁴, on a right-hand side built as b = Ax from a random x. That construction is how a known answer is arranged, and it makes the answer about as small as it can be. On a random right-hand side the inverse route's backward error is 2·10⁻¹⁷, the same as LU's, at every condition number measured. The backward error is about a tenth of the roundoff over ρ, the answer's size over its largest possible, and across 200 random right-hand sides ρ never falls below 0.016. The instability is real, and it belongs to right-hand sides whose answers are small, which is a class that includes most tests and many applications.

110²10⁴10⁶10⁸110¹10²10³10⁴10⁵10⁶κ(X)backward error over residualcommuting, Bartels–Stewartnot commuting, Kroneckernot commuting, Bartels–Stewartorder 8 · C at the scale of 10⁻⁶ · three seedsthe gap belonged to the commuting family Structure, and the solver that cannot see it

What the commuting family was hiding

A Sylvester solve's structured backward error climbed 26,000 times above its residual while its forward error did not move, on a family built so that X commutes with A and B. Replace X by a random matrix with the same singular values, and the backward error is within a factor of eleven of the residual at every setting, on both routes. The structured product and the residual's estimate agree too, within 45 and 9 times the forward error. So that gap, the prediction said, was the family's geometry, and it was. But the perturbation's share on C does not fall below a half as predicted: it rises to 88 and 99 per cent. And a residual in the Schur bases that costs nothing is not the residual: it is a twentieth of it, because what is left is the Schur factorisations' own rounding.

All themes