An error estimate made of samples
Worth reading first: A model with no matrices behind it · A model that is a rational function.
A model with no matrices behind it built a reduced model out of nothing but values of a transfer function: two matrices of divided differences, the Loewner pencil, projected onto their leading singular subspaces. At the McMillan degree the model interpolated every sample and matched the function it never saw to . The essay ended on what the construction does not have. “There is no error bound. Balanced truncation comes with one — twice the sum of the discarded Hankel singular values, known before the reduction is performed. The Loewner construction has nothing comparable: the singular values of the pencil say what the degree is, and they do not bound the error of a model built below it.”
That sentence is careful, and practice is not. Every code that builds a Loewner model below its degree has to choose the order, and the number it reads to choose is the pencil’s singular values: keep when has fallen below the tolerance. That reads the singular value as an estimate of the error, which the first essay declined to claim. This essay measures how good an estimate it is, finds out where it fails, and finds one that does not.
Four systems, sampled where nothing is singular
The systems are two kinds. Three come from the earlier essays’ heat equation on forty states, driven and observed so that only twelve or eight of its modes appear in the transfer function: one with twelve modes of similar weight, one with twelve whose residues fall by a factor of three a mode, and one with eight. The fourth is a modal system with eight poles between and and residues of both signs. Each is sampled at 48 real points spaced geometrically along an interval to the left of its whole spectrum — for the twelve-mode systems, for the eight-mode one, for the eight-pole one — so that the function is smooth everywhere it is sampled and everywhere it is checked.
The true error of a model is read at 400 points spread over the same interval, as the largest difference from the transfer function divided by the largest value of there. Orders one to six are built on every system. Below about the error is the arithmetic’s rather than the order’s, and those orders are marked and left out of every comparison: on the falling-residue system that is from the fourth order on.
The singular value is the error, for two orders
The figure at the top of the page is the eight-pole system. At order one the true error is and is ; at order two, against . A code that read the singular values would choose the right order at these tolerances. At order three the error is and the singular value , four times too small. At order five, against : the singular value says the model is accurate to twelve digits and it is accurate to nine. At order six it says fifteen and the model has eleven.
The other systems do the same. Over the first two orders the error over is between 0.73 and 1.53 on all four. Then it climbs: on the twelve-mode system 1.81, 12.1, 109 and 937 at orders three to six; on the eight-mode system 2.55, 18.6 and 181 at orders three to five; on the eight-pole system 4.15, 30.1, 457 and 6,680. About a decade per order once it starts.
The climb is the difference of two rates. From the third order on, the eight-pole system’s singular values fall by 2.7 to 3.2 decades an order — is , is — while the true error falls by 1.6 to 2.2: from to to to . Each order the singular value gains about a decade on the error, and there is no constant that converts one into the other. That is the difference from the bound balanced truncation offers, which the bound that is known in advance found attained exactly on ordinary problems and loose by at most a factor of about two where the removals interact; a bound with a bounded slack can be trusted, and an estimate whose slack grows a decade an order cannot. The falling-residue system reaches the arithmetic floor at order four, still within a factor of 1.5, before the climb begins. The singular value is a good estimate exactly as long as nobody needs one, at the first orders where the error is large, and it is optimistic by orders of magnitude at the orders where a tolerance would stop.
A code that chose its order by on the eight-pole system would stop at five and deliver , eighty-five times its tolerance, with every number it computed saying it had succeeded.
Two fits, one error
There are two places the shortfall could come from. The singular values might be misreporting how well the samples can be fitted, or the Loewner model might be fitting them worse than the singular values say is possible, because projecting onto singular subspaces is one way of building a model and not necessarily the best. A second, independent fit separates them.
The points the algorithm chose introduced AAA: a rational approximant in barycentric form whose support points are chosen one at a time by its own residual and whose weights come from the null vector of a Loewner matrix over the other samples. It shares the samples and nothing else with the projected pencil. At every order above the floor on every system, its error is within a factor of six of the Loewner model’s, and within two on thirteen of the twenty cells: against on the twelve-mode system at order four, against on the eight-pole system at order five. Two methods that build their models differently reach the same error, and both are far above the singular value. The Loewner model is fitting about as well as these samples allow a rational function of that degree to be fitted; it is the singular value that is optimistic about what is possible.
The singular values are not empty, though. Built from random numbers at the same 48 points, the Loewner matrix’s singular values barely fall: 0.89, 0.74, 0.71 and still 0.36 by the eighth. Built from , which has no finite degree, they fall steadily, a little over a decade an index. Built from the twelve-mode system, they fall off a cliff to the rounding by the seventh. So their decay is information about the function and not an artefact of the divided differences; it is the wrong size, not the wrong shape. A singular value measures how far is from a matrix of lower rank in the Frobenius-type sense of its whole entries, while the model’s error is the worst point of a function between samples, and the two are not the same norm on the same object.
The samples flatter the model too
The quantity a code can compute without anything but its data is the model’s misfit at its own samples. Below the degree the model does not interpolate, so the misfit is not zero, and a reasonable guess is that a model that misses its samples by misses the function between them by about as much.
It does not. On the eight-pole system at order five the misfit at the samples is and the error between them , 182 times larger; at order six, 751 times. On the twelve-mode and eight-mode systems the ratio at order five is 40.7 and 64.2. The misfit follows the singular value down rather than the error, which is no surprise once it is said: the model is built from the samples, by a projection chosen to fit them, and a fit is always best where it was fitted. It is the residual of the model’s own construction, and a small residual is not a small error is the site’s oldest warning about reading one as the other.
The error along the interval shows where. Over most of it the model is accurate to between and , dipping to zero at points where its error changes sign. At the end nearest the poles, between and about 20, the error rises to , with its worst point at , between the first two samples. The samples there are fitted to or so; the function between them, which bends hardest because it is nearest the poles, is not. The largest error is never at a spurious pole: the reduced models’ poles were computed at every order on two of the systems, and none lies inside the sampled interval. It is simply where the function is hardest and the samples, spaced evenly in the logarithm, are no closer together than anywhere else. The same holds across the whole measurement: of the twenty orders above the floor on the four systems, eighteen have their worst error in the first gap, between the sample nearest the poles and the next one. The two exceptions are order three of the falling-residue system and order two of the eight-mode one, whose worst points sit well inside the interval, at and ; the midpoint estimate holds on both, at ratios of 1.00, because a midpoint sits in every gap and not only in the first.
Midpoints are an estimate
That picture suggests the estimate. If the error lives between the samples, check it between the samples: evaluate the transfer function at the geometric midpoint of each consecutive pair, 47 more values, and compare the model there.
At every order above the floor on every system, the true error is between 1.00 and 2.09 times the largest midpoint error. The estimate never overstates the error and never understates it by more than a factor of 2.1, across a range of errors from to , while the singular value’s understatement ran to 6,680. And most of its information is in four of the 47 points. Using only the four midpoints nearest the poles, the true error is within a factor of 2.72 at every order above the floor, and at fifteen of the twenty cells it is the same as using all 47, because the worst midpoint is one of those four.
The estimate costs four to forty-seven extra samples, and nothing else: no matrices, no Gramians, nothing the construction was invented to avoid. That is the honest replacement for the bound the first essay said the method lacks. It is not a bound — a function with a feature narrower than the spacing between a sample and its midpoint could hide from it — but it is a measurement of the right quantity, the error between the samples, where the singular value and the sample misfit are measurements of how well the samples themselves are fitted. Bracketing an error nobody can measure put two computable numbers either side of a Gramian’s error; here one computable number, bought with samples, sits within a factor of two below the model’s.
What this changes in practice
A code choosing a Loewner model’s order from data should not stop when passes the tolerance. On the eight-pole system at a tolerance of that stops at order five, eighty-five times over; on the twelve-mode system at it stops at five with the error at , thirty-eight times over. It should hold back some samples — a handful placed between the existing ones, densest where the function bends, which here is the end of the interval nearest the poles — and stop when the model’s error there passes the tolerance, with a safety factor of about two.
The same holds for the other reductions in this field that are built from values. Exact at the points that were named made the point for moment matching: a model that is exact at chosen points bounds nothing anywhere else. The cure is the same, and it is cheap. And where to put the poles of a rational function suggests where to spend it: geometric clustering toward the hard end, which is where every worst error measured here sat. A point that was not used to build the model is the only kind that can say how the model does where it was not built.
Why a ratio of two is enough
A factor of 2.1 is the whole of the midpoint estimate’s slack, and it has a reason that can be read off the error curve. The error between two samples rises from near the samples’ own misfit to a peak somewhere in the gap and falls again, and a geometric midpoint sits near that peak when the gap is small compared with the function’s scale of variation, as it is everywhere here: 48 samples over 1.7 to 2 decades put consecutive samples 9 to 10 per cent apart. The estimate misses the peak by however far the peak is from the midpoint, which for a smooth bump in a gap is a modest factor and nothing like the orders of magnitude separating the samples’ misfit from the peak. The same reasoning says when it will fail: when the gap is not small compared with the function’s variation, near a resonance on the imaginary axis or with too few samples, the peak need not be near any midpoint.
What four systems do not show
Four smooth functions, sampled on the real axis to the left of their spectra. A real system is sampled on the imaginary axis, where the transfer function’s peaks sit close to the samples and the error between them could be concentrated much more sharply than at the end of a real interval; there the midpoints might need to be denser than one per gap. No noise: the first essay found that noise of sets a floor on every quantity, and a midpoint estimate built from noisy midpoints would stop at that floor too. One construction, the projected pencil with its alternating split of the samples; a split into two contiguous halves gives a different pencil and could change where the error sits. And orders up to six, where the arithmetic floor ends every comparison: a system with a slower-falling error would test the estimate over more orders.
Still open: the imaginary axis, and a model that chooses its own checks
The imaginary axis. Sampled at frequencies , a lightly damped system has resonant peaks between the samples. The prediction with a sign is that on the eight-pole system with its poles moved off the real axis to damping ratios of 0.05, the midpoint estimate at one midpoint per gap understates the true error by more than a factor of ten at some order, and that two points per gap bring it back within a factor of three.
Checks the model chooses. AAA chooses its next support point where its residual is largest; a Loewner model could choose its next check point the same way, where the current model and a model one order lower disagree most. The prediction is that on these four systems four such points, chosen adaptively, estimate the error within a factor of two at every order — as well as the 47 midpoints, and better than the four nearest the poles chosen by hand.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The definition asks for more of what defeats it — both name mcmillan degree, transfer function
- The state that is removed is not a mode — both name mcmillan degree, transfer function
Named objects
A flat tag is an object no other essay names yet.
Data-driven realisationError estimateInterpolationLoewner matrixMcMillan degreeRational approximationSingular value decompositionTransfer function