Post · 4 min read· pp. 504–506

What Is Backward Error?

Backward error is a measure of error associated with an approximate solution to a problem. Whereas the forward error is the distance between the approximate and true solutions, the backward error is how much the data must be perturbed to produce the approximate solution.

For a function ff from Rn\mathbb{R}^n to Rn\mathbb{R}^n and an approximation yy to f(x)f(x), the backward error in yy is the smallest Δx\Delta x such that y=f(x+Δx)y = f(x+\Delta x), for some appropriate measure of size. There can be many Δx\Delta x satisfying this equation, so the backward error is the solution to a minimization problem. Using a vector norm and measuring perturbations in a relative sense, we can define the backward error in yy as

η(y)=min⁡{ ϵ:y=f(x+Δx),  ∥Δx∥≤ϵ∥x∥ }.\eta(y) = \min\{ \, \epsilon: y = f(x+\Delta x), \; \|\Delta x\| \le \epsilon \|x\| \,\}.

In the following figure the solid lines denote exact mappings and the dashed line shows the mapping that was actually computed.

berr-fig.jpg

Usually, but not always, the errors in question are rounding errors, but backward error can also be a useful way to characterize truncation errors (for example in deriving algorithms based on Padé approximation for computing matrix functions).

As an example, for the inner product uTvu^Tv of two vectors the backward error of an approximation ww can be defined as

η(w)=min⁡{ ϵ:w=(u+Δu)Tv,  ∥Δu∥2≤ϵ∥u∥2 },\eta(w) = \min \{\, \epsilon: w = (u + \Delta u)^Tv,\; \|\Delta u\|_2 \le \epsilon \|u\|_2 \,\},

where ∥u∥2=(uTu)1/2\|u\|_2 = (u^Tu)^{1/2}. It can be shown that

η(w)=∣w−uTv∣∥u∥2∥v∥2.\eta(w) = \displaystyle\frac{ |w - u^Tv| }{ \|u\|_2 \|v\|_2 }.

The definition of η(w)\eta(w) is clearly unsymmetric in that uu is perturbed but vv is not. If vv is perturbed instead of uu then the same formula is obtained. If both uu and vv are perturbed then the constraint in the definition of η(w)\eta(w) becomes nonlinear in Δu\Delta u and Δv\Delta v and no explicit formula is available for η(w)\eta(w).

For some problems a backward error may not exist. An example is computation of the outer product A=uvTA = uv^T of two nn-vectors, which has rank 1. In floating-point arithmetic the computed matrix A^\widehat{A} is unlikely to be of rank 1, so A^=(u+Δu)(v+Δv)T\widehat{A} = (u + \Delta u)(v + \Delta v)^T is not in general possible for any Δu\Delta u and Δv\Delta v. In this situation one can consider a mixed backward–forward error that perturbs A^\widehat{A} as well as uu and vv.

Backward error analysis refers to rounding error analysis in which a bound is obtained for a suitably defined backward error. If the backward error can be shown to be small then yy is the solution to a nearby problem. Indeed, if the backward error can be shown to be of the same size as any uncertainties in the data then yy is as good a solution as can be expected.

Backward error analysis was developed and popularized by James Wilkinson in the 1950s and 1960s. He first used it in the context of computing zeros of polynomials, but the method’s biggest successes came when he applied it to linear algebra computations.

Backward error analysis has also been used in the context of the numerical solution of differential equations, where it is used in different forms known as defect control and shadowing.

The forward error of y≈f(x)y\approx f(x) is bounded in terms of the backward error η(y)\eta(y) by

∥y−f(x)∥∥f∥≤cond(f,x)η(y)+O(η(y))2,\displaystyle\frac{\|y - f(x)\|}{\|f\|} \le \mathrm{cond}(f,x) \eta(y) + O(\eta(y))^2,

in view of the definition of condition number. Consequently, we have the rule of thumb that

\mboxforwarderror≲\mboxconditionnumber×\mboxbackwarderror.\mbox{forward error} \lesssim \mbox{condition number}\times \mbox{backward error}.

References

This is a minimal set of references, which contain further useful references within.

This article is part of the “What Is” series, available from https://nhigham.com/category/what-is and in PDF form from the GitHub repository https://github.com/higham/what-is.