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.

Worth reading first: The bound that is known in advance.

A condition number that is not the model’s took apart a reading of κ(P)\kappa(P) as a measure of reducibility. Its numerator does not move with the model’s degree. Its denominator is a rounding level. Its sweep wanders by a factor of thirty-five in no direction. So nothing about reducibility can be read from it, and that essay’s closing advice left it a single use: “Do report κ(P)κ(Q)\kappa(P)\kappa(Q), for the one thing it says. It decides between two routes to the σ\sigma, it is past 1/u1/u at every degree measured here, and that is the sentence it supports.”

All of that was measured in one set of state coordinates. A model’s Hankel singular values do not depend on coordinates at all; they are defined by its input-output behaviour. Its Gramians do depend on them. Under a change of state x=Tzx = Tz, PP becomes T−1PT−TT^{-1}PT^{-\mathsf T} and QQ becomes TTQTT^{\mathsf T}QT. So the essay’s phrase “one model, solved twice, has two condition numbers” is the small version of a much larger fact: one model has as many values of κ(P)κ(Q)\kappa(P)\kappa(Q) as it has coordinate systems, and the remaining use of this number needs checking against that.

A model whose answer is known

The test needs a model with known Hankel singular values, in coordinates that can be chosen. There is a simple form. Given values σi\sigma_i and a vector bb, set Aij=−bibj/(σi+σj)A_{ij} = -b_ib_j/(\sigma_i + \sigma_j) and C=BT=bTC = B^{\mathsf T} = b^{\mathsf T}. Then AΣ+ΣAT=−bbTA\Sigma + \Sigma A^{\mathsf T} = -bb^{\mathsf T} exactly, so P=Q=ΣP = Q = \Sigma, and the model is balanced by construction with its Hankel singular values given in advance. That is the first time a measurement of a Gramian’s digits has had a true answer available, rather than one route’s answer used as a stand-in for another’s.

Ten states are used, with values geometric from one down to 10−810^{-8} or to 10−1210^{-12}. A diagonal TT spreads the coordinates over between none and six decades, in a random order, and what a code receives is (T−1AT,T−1B,CT)(T^{-1}AT, T^{-1}B, CT). Both routes then start from Bartels–Stewart solutions of the two Lyapunov equations. One takes singular values of a product of Cholesky-like square roots. The other takes the square roots of eigenvalues of PQPQ.

As the state coordinates are spread over up to six decades, κ(P)κ(Q) and the largest error in any Hankel singular value, for one modelκ(P)κ(Q): 1e+16, 8e+16, 5e+18, 1e+21, 1e+24, 8e+26, 2e+30. Largest error: 4e-10, 2e-9, 1e-8, 1e-8, 4e-7, 1e-5, 2e-5, at spreads from none to six decades.012345610⁻¹²10⁻⁶110⁶10¹²10¹⁸10²⁴10³⁰decades of spread in the state coordinatesthe two numbersκ(P)κ(Q)largest errorone model · the Hankel values never changefourteen decades for five digits
Fig. 1 As the state coordinates are spread over up to six decades, κ(P)κ(Q)\kappa(P)\kappa(Q) and the largest error in any Hankel singular value, for one model.

In balanced coordinates κ(P)κ(Q)\kappa(P)\kappa(Q) is 101610^{16}, the square of the ratio of largest to smallest value, as it has to be there. Spreading the coordinates raises it by about two and a half decades for each decade of spread, to 8⋅10168 \cdot 10^{16}, 5⋅10185 \cdot 10^{18}, 102110^{21}, 102410^{24}, 8⋅10268 \cdot 10^{26} and 2⋅10302 \cdot 10^{30}. The model is the same throughout. So the number has a floor set by the Hankel values and no ceiling at all, and any statement about its size is a statement about whose coordinates they were.

The worst error does move with it, but at a very different rate. It goes from 4⋅10−104 \cdot 10^{-10} to 2⋅10−52 \cdot 10^{-5}, about five decades lost against fourteen decades of κ(P)κ(Q)\kappa(P)\kappa(Q). So a value of 2⋅10302 \cdot 10^{30}, which is fourteen decades past 1/u1/u and within two of 1/u21/u^2, has been accompanied by every Hankel value still having nearly five good digits. That number has not predicted the digits in any useful way.

The routes lie on one another

Then there is the use it was left with.

The relative error in each Hankel singular value by both routes, on one ten-state model whose state coordinates are spread over 4 decades, against the known valuesWith coordinates spread over 4 decades, κ(P)κ(Q) is 1.0e+24. The square-root route's errors from the largest value to the smallest: 4e-7, 2e-7, 1e-8, 1e-9, 1e-11, 1e-11, 1e-11, 8e-12, 5e-12, 7e-12. The product route's: 4e-7, 2e-7, 1e-8, 1e-9, 1e-11, 1e-11, 1e-11, 8e-12, 5e-12, 7e-12.1234567891010⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³index of the Hankel singular value, largest firstrelative errorsquare-root routeproduct routeten states · σ from 1 to 10⁻⁸ · κ(P)κ(Q) about 10²⁴the routes lie on one another
Fig. 2 The relative error in each Hankel singular value by both routes, on one ten-state model. The dial sets the spread of the state coordinates.

Each route’s error is drawn for each of the ten values, and the two curves cannot be separated. Turn the dial: at every spread, from balanced coordinates up to six decades, the two routes agree value by value to the digits printed. In balanced coordinates the largest value is wrong by 4⋅10−104 \cdot 10^{-10} on each and the smallest by 6⋅10−156 \cdot 10^{-15} on the square-root route and 2⋅10−132 \cdot 10^{-13} on the product, and those are the largest differences anywhere. At a spread of four decades, with κ(P)κ(Q)\kappa(P)\kappa(Q) at 102410^{24}, every value agrees to one significant figure across the two routes. With values down to 10−1210^{-12} and six decades of spread, where κ(P)κ(Q)\kappa(P)\kappa(Q) reaches 9⋅10359 \cdot 10^{35}, the product route’s smallest value still has a relative error of 4⋅10−114 \cdot 10^{-11}.

The expectation was that the product route would have nothing left. Eigenvalues of PQPQ are computed relative to its largest, so a value σn2\sigma_n^2 below uσ12u\sigma_1^2 is lost, and σn=10−12\sigma_n = 10^{-12} has σn2/σ12=10−24\sigma_n^2/\sigma_1^2 = 10^{-24}. It is not lost here. The reason is that a diagonal change of coordinates leaves PP and QQ strongly graded, with a structure in which the small values live in identifiable small entries. An eigenvalue routine preserves a good deal of a graded matrix’s small eigenvalues to high relative accuracy, as accurate is not a property of a method measures in another setting. So the bound in terms of κ(P)κ(Q)\kappa(P)\kappa(Q) is a true worst case, and this model is nowhere near it.

What actually separates the routes

So the fact that a product route fails on other models needs another explanation. What separates them is a rotation.

On the same ten-state model rotated by a random orthogonal matrix, the relative error in each Hankel singular value by both routesκ(P)κ(Q) is 1.0e+16. The square-root route: 2e-9, 2e-10, 5e-11, 5e-12, 9e-13, 1e-13, 1e-12, 2e-11, 3e-10, 4e-10. The product route: 2e-9, 2e-10, 5e-11, 5e-12, 2e-10, 6e-9, 5e-8, 2e-5, 2e-3, 1e-2.1234567891010⁻¹⁴10⁻¹²10⁻¹⁰10⁻⁸10⁻⁶10⁻⁴10⁻²1index of the Hankel singular value, largest firstrelative errorproduct routesquare-root routeten states · rotated, no spreadnow the routes part where the story said
Fig. 3 On the same ten-state model rotated by a random orthogonal matrix, the relative error in each Hankel singular value by both routes.

Rotate the balanced model by a random orthogonal VV. This changes no singular value of PP or QQ, and so κ(P)κ(Q)\kappa(P)\kappa(Q) is unchanged at 101610^{16}. But it destroys the grading: PP is now a full matrix with no small entries to mark its small eigenvalues. And here the two routes part just as the original story said they would. The largest values are still right. From the fifth value on, the product route falls away: 2⋅10−102 \cdot 10^{-10}, 6⋅10−96 \cdot 10^{-9}, 5⋅10−85 \cdot 10^{-8}, 2⋅10−52 \cdot 10^{-5}, 2⋅10−32 \cdot 10^{-3} and 10−210^{-2} at the smallest. The square-root route holds 4⋅10−104 \cdot 10^{-10} there.

The relative error in the smallest Hankel singular value by each route, for one model in balanced coordinates and rotated by an orthogonal matrix, which leave κ(P)κ(Q) the same, at two floorsaligned, floor 10⁻⁸: κ(P)κ(Q) 1.0e+16, square-root 6e-15, product 2e-13; rotated, floor 10⁻⁸: κ(P)κ(Q) 1.0e+16, square-root 4e-10, product 1e-2; aligned, floor 10⁻¹²: κ(P)κ(Q) 1.0e+24, square-root 4e-15, product 5e-13; rotated, floor 10⁻¹²: κ(P)κ(Q) 1.0e+24, square-root 1e-5, product 1e+0.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
Fig. 4 The relative error in the smallest Hankel singular value by each route, for one model in balanced coordinates and rotated, which leave κ(P)κ(Q)\kappa(P)\kappa(Q) the same, at two floors.

The pair of bars at each floor makes the point in one picture. With the floor at 10−810^{-8} the aligned and rotated models have the same κ(P)κ(Q)\kappa(P)\kappa(Q) of 101610^{16}, and the product route’s smallest value has an error of 2⋅10−132 \cdot 10^{-13} on one and 10−210^{-2} on the other, eleven decades apart. With the floor at 10−1210^{-12}, both have 102410^{24}, and that error is 5⋅10−135 \cdot 10^{-13} on the aligned model while on the rotated one it is 100 per cent, the value being gone entirely. The number that was supposed to decide this is equal on each pair.

So the correct reading is narrower than either the earlier essay or the textbooks give. On the twenty-two-state models the earlier essay measured, which were not close to any alignment, the product route’s failure at κ(P)κ(Q)\kappa(P)\kappa(Q) above 1/u1/u was real. It remains real in general: a rotated model is what a discretised operator and most physically derived models look like. The product nobody had to form measures that case. The number is a valid upper bound on the damage and a poor predictor of it. Alignment of the Gramians with the coordinate axes is the property a route can exploit, and alignment is invisible in a condition number, because a condition number is exactly what rotation leaves alone. The two are independent, and the phrase “a certificate written in coordinates” could describe what a Gramian’s grading does for its small values.

The largest value pays

There is a further surprise in the first figure, and it runs against a settled expectation. On these models the errors are largest at the top. With a floor of 10−810^{-8} in balanced coordinates the largest value’s relative error is 4⋅10−104 \cdot 10^{-10} and the smallest’s is 6⋅10−156 \cdot 10^{-15}. The largest value, the one that is usually taken as safe, is wrong by more than the smallest by a factor of nearly a hundred thousand.

In balanced coordinates, the relative error in each Hankel singular value by the square-root route, for models whose values fall to ten to the minus eight and to ten to the minus twelveFloor ten to the minus eight: 4e-10, 1e-10, 6e-11, 3e-11, 8e-12, 5e-13, 6e-14, 1e-14, 9e-16, 6e-15. Floor ten to the minus twelve: 1e-6, 3e-7, 6e-8, 4e-9, 2e-11, 2e-12, 3e-15, 1e-14, 2e-15, 4e-15.1234567891010⁻¹⁷10⁻¹⁵10⁻¹³10⁻¹¹10⁻⁹10⁻⁷10⁻⁵10⁻³index of the Hankel singular value, largest firstrelative errorfloor 10⁻¹²floor 10⁻⁸no spread · balanced coordinatesthe top pays for the size of A
Fig. 5 In balanced coordinates, the relative error in each Hankel singular value by the square-root route, for models whose values fall to 10−810^{-8} and to 10−1210^{-12}.

Lowering the floor makes it worse at the top and leaves the bottom alone. At a floor of 10−1210^{-12} the largest value’s error is 10−610^{-6}. That is plausibly because of the size of AA. Its entries are −bibj/(σi+σj)-b_ib_j/(\sigma_i + \sigma_j), so a small pair of values gives an entry of about 1/σn1/\sigma_n, a huge number beside the entries belonging to the large values. The Lyapunov solve’s backward error is relative to ∥A∥\|A\|, and in absolute terms it lands equally everywhere. A value of size one and a perturbation of size u∥A∥u\|A\| give a relative error of about u/σnu/\sigma_n, and 1.1⋅10−16/10−81.1 \cdot 10^{-16}/10^{-8} is about 10−810^{-8}, an order or two above what is measured here. The small values sit in small entries of a graded AA, where this absolute size is not what they see.

A spread adds to this at both ends, in a shape the dial shows. At four decades the largest value’s error has risen by about a factor of a thousand, to 4⋅10−74 \cdot 10^{-7}, and the smallest’s has risen by a factor of about a thousand as well, from 6⋅10−156 \cdot 10^{-15} to 7⋅10−127 \cdot 10^{-12}. So the profile keeps its shape and moves up as a whole, with a flat stretch of about 10−1110^{-11} below the fourth value. At six decades the flat stretch reaches 10−910^{-9}. A spread therefore lifts every error by roughly a common factor, and the factor is about the square root of how far κ(P)κ(Q)\kappa(P)\kappa(Q) has moved. A common factor would be exactly what a single perturbation of AA produces if all of the values felt it alike, which is another reason to think the damage is done in the solve.

That would make these digits belong to the arithmetic on AA and not to any step afterwards. If so, no route after the Lyapunov solve could recover them, which fits the two routes’ agreement in the first figure, and it also shows what to try instead.

One solve tells where to go

Since the spread comes from the coordinates, and since the Gramians’ diagonals carry the coordinates’ effects, the obvious move costs one further solve. If PiiP_{ii} and QiiQ_{ii} are the diagonals in the given coordinates, then in a diagonal change of TT they scale by ti−2t_i^{-2} and ti2t_i^2, and (Pii/Qii)1/4(P_{ii}/Q_{ii})^{1/4} is exactly the diagonal scaling that makes them equal. In a balanced model, it undoes a diagonal spread entirely, and since the diagonals need only be right to a few digits to do so, even a poor first solve serves.

The largest error in any Hankel singular value against the spread in the coordinates: from one solve, and from a second solve in coordinates read off the first one's diagonalsOne solve: 4e-10, 2e-9, 1e-8, 1e-8, 4e-7, 1e-5, 2e-5. A second solve: 4e-10, 9e-10, 9e-10, 3e-10, 1e-10, 1e-9, 6e-11.012345610⁻¹²10⁻¹¹10⁻¹⁰10⁻⁹10⁻⁸10⁻⁷10⁻⁶10⁻⁵10⁻⁴10⁻³decades of spread in the state coordinateslargest error in any σone solvea second solvethe diagonals carry the coordinatesone extra solve undoes the spread
Fig. 6 The largest error in any Hankel singular value against the spread in the coordinates: from one solve, and from a second solve in coordinates read off the first one’s diagonals.

The second solve’s κ(P)κ(Q)\kappa(P)\kappa(Q) is back at 101610^{16} at every spread. Its worst error is at about 10−910^{-9} or below at every spread, against the first solve’s 2⋅10−52 \cdot 10^{-5} at six decades, so five digits have been recovered for the price of one more pair of Lyapunov equations. This is a procedure with a familiar shape, a cheap estimate of a coordinate change that makes a second attempt better conditioned, and it is the same in spirit as choosing a scale that the matrix’s own units set.

It only undoes a diagonal, and the rotated model separates what that means. Spread the rotated model over six decades and the damage is far worse than on the aligned one: κ(P)κ(Q)\kappa(P)\kappa(Q) is 6⋅10356 \cdot 10^{35} and the square-root route’s worst error is 16 per cent, a loss the aligned model never approached. A second solve in diagonal coordinates brings κ(P)κ(Q)\kappa(P)\kappa(Q) back to 101610^{16} and that worst error to 2⋅10−92 \cdot 10^{-9}, eight decades recovered. The product route’s smallest value stays at about 5 per cent, because the rotation it is losing to has not been touched.

So a spread and a rotation do damage of different kinds, and they respond to different remedies. A spread hurts both routes and is removed by a diagonal, at the cost of one solve. A rotation hurts only the product route, and nothing short of the route change repairs it. Together they are worse than either, which is why a model with badly chosen units and no axis alignment, the ordinary case, can lose nearly everything in the first solve and almost nothing after the second. That recovery is at its most complete here, for a reason this model supplies: with AA symmetric and C=BTC = B^{\mathsf T}, PP equals QQ in the original coordinates, so that the diagonals’ ratio reads off the spread exactly.

The sensible order of operations is clear enough. Scale by the diagonals, which is cheap and can be worth a great deal, and then use the square-root route, which does not need any structure to be there.

What this asks of a report

The earlier essay’s last advice needs one revision. “Do report κ(P)κ(Q)\kappa(P)\kappa(Q), for the one thing it says”: it says that the product route has a worst-case bound, and that its worst case may not occur. A code using only the square-root route needs nothing from it. A code wanting to reason about a route choice needs a measure of grading as well, and none has been set out here. Reading reducibility off the Hankel values, as why a Gramian can be truncated at all does, is unaffected, because those values are the invariants, and this page confirms in a new way that they are.

The right habit for a person handed a state-space model is to treat its coordinates as data with no authority. Coordinates arrive from a modelling tool or from the units somebody chose. A model with states in pascals and metres is spread over several decades before anything has been done to it, and six decades is not an extreme: a modest mechanical model could easily exceed it. The digits a Lyapunov solve loses in such coordinates are lost to the units. Two condition numbers of one matrix reached a similar result about an ordinary linear system, and the conclusion has the same shape, though the mechanism here has a larger exponent, since each decade of spread costs two and a half decades of this particular number.

What was measured, and only that

There are ten states, one vector bb per model, one rotation, and a set of geometric Hankel values, a small size chosen so that a true answer is available everywhere. Geometric values are the shape the decay essays predict for a broad class, but a model with clusters would behave differently, and a tie in the values is another matter again. Because AA here is symmetric and C=BTC = B^{\mathsf T}, the model is of a very special class, and a nonsymmetric model has a separate PP and QQ without any such equality. Its diagonals will still give a scaling, but they will not give back a balanced model.

The rotation is a single draw as well, and a different one could shift the rotated model’s numbers by a factor of a few. The errors throughout are single draws and not medians. The account of why the largest value pays is a sketch, not a measurement, and the figure of an order or two between its prediction and the data is exactly the size of an unexamined constant.

Still open: the nonsymmetric case, a grading measure, and a mixed change of coordinates

A model that is not symmetric. The construction here has P=QP = Q and AA symmetric. The prediction with a sign is that on a nonsymmetric stable AA with distinct PP and QQ, a diagonal spread of six decades still leaves the two routes within a factor of ten on every Hankel value, and that a second solve still recovers at least three of the digits lost, since the diagonals carry the same scaling even if the balanced form is no longer reached.

How much of the rotation matters. Between a diagonal and a random orthogonal lies a one-parameter family: rotate by exp⁡(θK)\exp(\theta K) with KK a random skew matrix. The prediction is that the product route’s smallest value holds its digits until θ\theta is about σn/σ1\sigma_n/\sigma_1, and that the failure then grows as θ2\theta^2 until it reaches the fully rotated case’s error, so that the grading the route relies on has a width that can be stated in a single number.

What links here

Computed from the collection, not written here: the essays that point at this one.

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.

Balanced truncationCondition numberExact ground truthGramianHankel singular valuesLyapunov equation