Lably
Skip to content

Iterative refinement

  • 2 min read
  • 2 chapters

Related on Lably

Through System of linear equations and Approximation error

When solving a linear system Ax=b, due to the compounded accumulation of rounding errors, the computed solution x^ may sometimes deviate from the exact solution x⋆. Starting with x1=x^, iterative refinement computes a sequence {x1,x2,x3,…} which converges to x⋆, when certain assumptions are met.

Description

For m=1,2,3,…, the mth iteration of iterative refinement consists of three steps:

  1. Compute the residual error rm rm=b−Axm.
  2. Solve the system for the correction, cm, that removes the residual error Acm=rm.
  3. Add the correction to get the revised next solution xm+1 xm+1=xm+cm.

The crucial reasoning for the refinement algorithm is that although the solution for cm in step (ii) may indeed be troubled by similar errors as the first solution, x^, the calculation of the residual rm in step (i), in comparison, is numerically nearly exact: You may not know the right answer very well, but you know quite accurately just how far the solution you have in hand is from producing the correct outcome (b). If the residual is small in some sense, then the correction must also be small, and should at the very least steer the current estimate of the answer, xm, closer to the desired one, x⋆.

The iterations will stop on their own when the residual rm is zero, or close enough to zero that the corresponding correction cm is too small to change the solution xm which produced it; alternatively, the algorithm stops when rm is too small to convince the linear algebraist monitoring the progress that it is worth continuing with any further refinements.

Note that the matrix equation solved in step (ii) uses the same matrix A for each iteration. If the matrix equation is solved using a direct method, such as Cholesky or LU decomposition, the numerically expensive factorization of A is done once and is reused for the relatively inexpensive forward and back substitution to solve for cm at each iteration.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Statistics and probability