The coordinates set the number
Worth reading first: The bound that is known in advance.
A condition number that is not the model’s took apart a reading of 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 , for the one thing it says. It decides between two routes to the , it is past 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 , becomes and becomes . 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 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 and a vector , set and . Then exactly, so , 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 or to . A diagonal spreads the coordinates over between none and six decades, in a random order, and what a code receives is . 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 .
In balanced coordinates is , 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 , , , , and . 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 to , about five decades lost against fourteen decades of . So a value of , which is fourteen decades past and within two of , 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.
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 on each and the smallest by on the square-root route and on the product, and those are the largest differences anywhere. At a spread of four decades, with at , every value agrees to one significant figure across the two routes. With values down to and six decades of spread, where reaches , the product route’s smallest value still has a relative error of .
The expectation was that the product route would have nothing left. Eigenvalues of are computed relative to its largest, so a value below is lost, and has . It is not lost here. The reason is that a diagonal change of coordinates leaves and 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 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.
Rotate the balanced model by a random orthogonal . This changes no singular value of or , and so is unchanged at . But it destroys the grading: 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: , , , , and at the smallest. The square-root route holds there.
The pair of bars at each floor makes the point in one picture. With the floor at the aligned and rotated models have the same of , and the product route’s smallest value has an error of on one and on the other, eleven decades apart. With the floor at , both have , and that error is 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 above 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 in balanced coordinates the largest value’s relative error is and the smallest’s is . 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.
Lowering the floor makes it worse at the top and leaves the bottom alone. At a floor of the largest value’s error is . That is plausibly because of the size of . Its entries are , so a small pair of values gives an entry of about , a huge number beside the entries belonging to the large values. The Lyapunov solve’s backward error is relative to , and in absolute terms it lands equally everywhere. A value of size one and a perturbation of size give a relative error of about , and is about , an order or two above what is measured here. The small values sit in small entries of a graded , 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 , and the smallest’s has risen by a factor of about a thousand as well, from to . So the profile keeps its shape and moves up as a whole, with a flat stretch of about below the fourth value. At six decades the flat stretch reaches . A spread therefore lifts every error by roughly a common factor, and the factor is about the square root of how far has moved. A common factor would be exactly what a single perturbation of 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 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 and are the diagonals in the given coordinates, then in a diagonal change of they scale by and , and 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 second solve’s is back at at every spread. Its worst error is at about or below at every spread, against the first solve’s 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: is 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 back to and that worst error to , 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 symmetric and , equals 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 , 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 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 here is symmetric and , the model is of a very special class, and a nonsymmetric model has a separate and 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 and symmetric. The prediction with a sign is that on a nonsymmetric stable with distinct and , 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 with a random skew matrix. The prediction is that the product route’s smallest value holds its digits until is about , and that the failure then grows as 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.
- A mode that rings is counted twice — both name balanced truncation, gramian, hankel singular values, lyapunov equation
- The state that is removed is not a mode — both name balanced truncation, gramian, hankel singular values, lyapunov equation
- Where a ringing mode stops being a pair — both name balanced truncation, gramian, hankel singular values, lyapunov equation
- A tie is a gap smaller than its neighbours — both name balanced truncation, hankel singular values, lyapunov equation
- Bracketing an error nobody can measure — both name condition number, gramian, lyapunov equation
- A backward-stable answer to a problem nobody asked — both name condition number, exact ground truth
Named objects
A flat tag is an object no other essay names yet.
Balanced truncationCondition numberExact ground truthGramianHankel singular valuesLyapunov equation