Rate of convergence

From HandWiki
Revision as of 20:27, 6 February 2024 by LinuxGuru (talk | contribs) (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Speed of convergence of a mathematical sequence

In numerical analysis, the order of convergence and the rate of convergence of a convergent sequence are quantities that represent how quickly the sequence approaches its limit. A sequence [math]\displaystyle{ (x_n) }[/math] that converges to [math]\displaystyle{ x^* }[/math] is said to have order of convergence [math]\displaystyle{ q \geq 1 }[/math] and rate of convergence [math]\displaystyle{ \mu }[/math] if

[math]\displaystyle{ \lim _{n \rightarrow \infty} \frac{\left|x_{n+1}-x^{*}\right|}{\left|x_{n}-x^{*}\right|^{q}}=\mu. }[/math][1]

The rate of convergence [math]\displaystyle{ \mu }[/math] is also called the asymptotic error constant. Note that this terminology is not standardized and some authors will use rate where this article uses order (e.g., [2]).

In practice, the rate and order of convergence provide useful insights when using iterative methods for calculating numerical approximations. If the order of convergence is higher, then typically fewer iterations are necessary to yield a useful approximation. Strictly speaking, however, the asymptotic behavior of a sequence does not give conclusive information about any finite part of the sequence.

Similar concepts are used for discretization methods. The solution of the discretized problem converges to the solution of the continuous problem as the grid size goes to zero, and the speed of convergence is one of the factors of the efficiency of the method. However, the terminology, in this case, is different from the terminology for iterative methods.

Series acceleration is a collection of techniques for improving the rate of convergence of a series discretization. Such acceleration is commonly accomplished with sequence transformations.

Convergence speed for iterative methods

Convergence definitions

Suppose that the sequence [math]\displaystyle{ (x_k) }[/math] converges to the number [math]\displaystyle{ L }[/math]. The sequence is said to converge with order [math]\displaystyle{ q }[/math] to [math]\displaystyle{ L }[/math], and with a rate of convergence[3] of [math]\displaystyle{ \mu }[/math], if

[math]\displaystyle{ \lim_{k \to \infty} \frac{|x_{k+1} - L|}{|x_k - L|^q} = \mu }[/math]

 

 

 

 

(Definition 1)

for some positive constant [math]\displaystyle{ \mu \in (0, \infty) }[/math] if [math]\displaystyle{ q \gt 1 }[/math], and [math]\displaystyle{ \mu \in (0, 1) }[/math] if [math]\displaystyle{ q = 1 }[/math].[4][5] It is not necessary, however, that [math]\displaystyle{ q }[/math] be an integer. For example, the secant method, when converging to a regular, simple root, has an order of φ ≈ 1.618.[citation needed]

Convergence with order

  • [math]\displaystyle{ q = 1 }[/math] is called linear convergence if [math]\displaystyle{ \mu \in (0, 1) }[/math], and the sequence is said to converge Q-linearly to [math]\displaystyle{ L }[/math].
  • [math]\displaystyle{ q = 2 }[/math] is called quadratic convergence.
  • [math]\displaystyle{ q = 3 }[/math] is called cubic convergence.
  • etc.

Order estimation

A practical method to calculate the order of convergence for a sequence is to calculate the following sequence, which converges to [math]\displaystyle{ q }[/math]:[6] [math]\displaystyle{ q \approx \frac{\log \left|\frac{x_{k+1} - x_k}{x_k - x_{k-1}}\right|}{\log \left|\frac{x_k - x_{k-1}}{x_{k-1} - x_{k-2}}\right|}. }[/math]

Q-convergence definitions

In addition to the previously defined Q-linear convergence, a few other Q-convergence definitions exist. Given Definition 1 defined above, the sequence is said to converge Q-superlinearly to [math]\displaystyle{ L }[/math] (i.e. faster than linearly) in all the cases where [math]\displaystyle{ q \gt 1 }[/math] and also the case [math]\displaystyle{ q = 1, \mu = 0 }[/math].[7] Given Definition 1, the sequence is said to converge Q-sublinearly to [math]\displaystyle{ L }[/math] (i.e. slower than linearly) if [math]\displaystyle{ q = 1, \mu = 1 }[/math]. The sequence [math]\displaystyle{ (x_k) }[/math] converges logarithmically to [math]\displaystyle{ L }[/math] if the sequence converges sublinearly and additionally if[8] [math]\displaystyle{ \lim_{k \to \infty} \frac{|x_{k+2} - x_{k+1}|}{|x_{k+1} - x_k|} = 1. }[/math] Note that unlike previous definitions, logarithmic convergence is not called "Q-logarithmic."

In the definitions above, the "Q-" stands for "quotient" because the terms are defined using the quotient between two successive terms.[9]:619 Often, however, the "Q-" is dropped and a sequence is simply said to have linear convergence, quadratic convergence, etc.

R-convergence definition

The Q-convergence definitions have a shortcoming in that they do not include some sequences, such as the sequence [math]\displaystyle{ (b_k) }[/math] below, which converge reasonably fast, but whose rate is variable. Therefore, the definition of rate of convergence is extended as follows.

Suppose that [math]\displaystyle{ (x_k) }[/math] converges to [math]\displaystyle{ L }[/math]. The sequence is said to converge R-linearly to [math]\displaystyle{ L }[/math] if there exists a sequence [math]\displaystyle{ (\varepsilon_k) }[/math] such that [math]\displaystyle{ |x_k - L|\le\varepsilon_k\quad\text{for all }k \,, }[/math] and [math]\displaystyle{ (\varepsilon_k) }[/math] converges Q-linearly to zero.[3] The "R-" prefix stands for "root". [9]:620

Examples

Consider the sequence [math]\displaystyle{ (a_k) = \left\{1, \frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \frac{1}{16}, \frac{1}{32}, \ldots, \frac{1}{2^k}, \dots \right\}. }[/math] It can be shown that this sequence converges to [math]\displaystyle{ L = 0 }[/math]. To determine the type of convergence, we plug the sequence into the definition of Q-linear convergence, [math]\displaystyle{ \lim_{k \to \infty} \frac{\left| 1/2^{k+1} - 0\right|}{\left| 1/ 2^k - 0 \right|} = \lim_{k \to \infty} \frac{2^k}{2^{k+1}} = \frac{1}{2}. }[/math] Thus, we find that [math]\displaystyle{ (a_k) }[/math] converges Q-linearly and has a convergence rate of [math]\displaystyle{ \mu = 1/2 }[/math]. More generally, for any [math]\displaystyle{ c \in \mathbb{R}, \mu \in (-1, 1) }[/math], the sequence [math]\displaystyle{ (c\mu^k) }[/math] converges linearly with rate [math]\displaystyle{ |\mu| }[/math].

The sequence [math]\displaystyle{ (b_k) = \left\{1, 1, \frac{1}{4}, \frac{1}{4}, \frac{1}{16}, \frac{1}{16}, \ldots,\frac{1}{4^{\left\lfloor \frac{k}{2} \right\rfloor}} ,\, \ldots \right\} }[/math] also converges linearly to 0 with rate 1/2 under the R-convergence definition, but not under the Q-convergence definition. (Note that [math]\displaystyle{ \lfloor x \rfloor }[/math] is the floor function, which gives the largest integer that is less than or equal to [math]\displaystyle{ x }[/math].)

The sequence [math]\displaystyle{ (c_k) = \left\{ \frac{1}{2}, \frac{1}{4}, \frac{1}{16}, \frac{1}{256}, \frac{1}{65,\!536}, \ldots, \frac{1}{2^{2^k}}, \ldots \right\} }[/math] converges superlinearly. In fact, it is quadratically convergent.

Finally, the sequence [math]\displaystyle{ (d_k) = \left\{1, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \frac{1}{5}, \frac{1}{6}, \ldots, \frac{1}{k + 1}, \ldots \right\} }[/math] converges sublinearly and logarithmically.

Plot showing the different rates of convergence for the sequences ak, bk, ck and dk.
Linear, linear, superlinear (quadratic), and sublinear rates of convergence

Convergence speed for discretization methods

A similar situation exists for discretization methods designed to approximate a function [math]\displaystyle{ y = f(x) }[/math], which might be an integral being approximated by numerical quadrature, or the solution of an ordinary differential equation (see example below). The discretization method generates a sequence [math]\displaystyle{ {y_0,y_1,y_2,y_3,...} }[/math], where each successive [math]\displaystyle{ y_j }[/math] is a function of [math]\displaystyle{ y_{j-1},y_{j-2},... }[/math] along with the grid spacing [math]\displaystyle{ h }[/math] between successive values of the independent variable [math]\displaystyle{ x }[/math]. The important parameter here for the convergence speed to [math]\displaystyle{ y = f(x) }[/math] is the grid spacing [math]\displaystyle{ h }[/math], inversely proportional to the number of grid points, i.e. the number of points in the sequence required to reach a given value of [math]\displaystyle{ x }[/math].

In this case, the sequence [math]\displaystyle{ (y_n) }[/math] is said to converge to the sequence [math]\displaystyle{ f(x_n) }[/math] with order q if there exists a constant C such that

[math]\displaystyle{ |y_n - f(x_n)| \lt C h^{q} \text{ for all } n. }[/math]

This is written as [math]\displaystyle{ |y_n - f(x_n)| = \mathcal{O}(h^{q}) }[/math] using big O notation.

This is the relevant definition when discussing methods for numerical quadrature or the solution of ordinary differential equations (ODEs).[example needed]

A practical method to estimate the order of convergence for a discretization method is pick step sizes [math]\displaystyle{ h_\text{new} }[/math] and [math]\displaystyle{ h_\text{old} }[/math] and calculate the resulting errors [math]\displaystyle{ e_\text{new} }[/math] and [math]\displaystyle{ e_\text{old} }[/math]. The order of convergence is then approximated by the following formula:

[math]\displaystyle{ q \approx \frac{\log(e_\text{new}/e_\text{old})}{\log(h_\text{new}/h_\text{old})}, }[/math][citation needed]

which comes from writing the truncation error, at the old and new grid spacings, as

[math]\displaystyle{ e = |y_n - f(x_n)| = \mathcal{O}(h^{q}). }[/math]

The error [math]\displaystyle{ e }[/math] is, more specifically, a global truncation error (GTE), in that it represents a sum of errors accumulated over all [math]\displaystyle{ n }[/math] iterations, as opposed to a local truncation error (LTE) over just one iteration.

Example of discretization methods

Consider the ordinary differential equation

[math]\displaystyle{ \frac{dy}{dx} = -\kappa y }[/math]

with initial condition [math]\displaystyle{ y(0) = y_0 }[/math]. We can solve this equation using the Forward Euler scheme for numerical discretization:

[math]\displaystyle{ \frac{y_{n+1} - y_n}{h} = -\kappa y_{n}, }[/math]

which generates the sequence

[math]\displaystyle{ y_{n+1} = y_n(1 - h\kappa). }[/math]

In terms of [math]\displaystyle{ y(0) = y_0 }[/math], this sequence is as follows, from the Binomial theorem: [math]\displaystyle{ y_{n} = y_0(1 - h\kappa)^n = y_0\left(1 - nh\kappa + n(n-1)\frac{h^2\kappa^2}{2} + ....\right). }[/math]

The exact solution to this ODE is [math]\displaystyle{ y = f(x) = y_0\exp(-\kappa x) }[/math], corresponding to the following Taylor expansion in [math]\displaystyle{ h\kappa }[/math] for [math]\displaystyle{ h\kappa \ll 1 }[/math]: [math]\displaystyle{ f(x_n) = f(nh) = y_0\exp(-\kappa nh) = y_0\left[\exp(-\kappa h)\right]^n = y_0\left(1 - h\kappa + \frac{h^2\kappa^2}{2} + ....\right)^n = y_0\left(1 - nh\kappa + \frac{n^2h^2\kappa^2}{2} + ...\right). }[/math]

In this case, the truncation error is

[math]\displaystyle{ e = |y_n - f(x_n)| = \frac{nh^2\kappa^2}{2} = \mathcal{O}(h^{2}), }[/math]

so [math]\displaystyle{ (y_n) }[/math] converges to [math]\displaystyle{ f(x_n) }[/math] with a convergence rate [math]\displaystyle{ q = 2 }[/math].

Examples (continued)

The sequence [math]\displaystyle{ (d_k) }[/math] with [math]\displaystyle{ d_k = 1/(k+1) }[/math] was introduced above. This sequence converges with order 1 according to the convention for discretization methods.[why?]

The sequence [math]\displaystyle{ (a_k) }[/math] with [math]\displaystyle{ a_k = 2^{-k} }[/math], which was also introduced above, converges with order q for every number q. It is said to converge exponentially using the convention for discretization methods. However, it only converges linearly (that is, with order 1) using the convention for iterative methods.[why?]

Recurrent sequences and fixed points

The case of recurrent sequences [math]\displaystyle{ x_{n+1}:=f(x_n) }[/math] which occurs in dynamical systems and in the context of various fixed-point theorems is of particular interest. Assuming that the relevant derivatives of f are continuous, one can (easily) show that for a fixed point [math]\displaystyle{ f(p)=p }[/math] such that [math]\displaystyle{ |f'(p)| \lt 1 }[/math], one has at least linear convergence for any starting value [math]\displaystyle{ x_0 }[/math] sufficiently close to p. If [math]\displaystyle{ |f'(p)| = 0 }[/math] and [math]\displaystyle{ |f''(p)| \lt 1 }[/math], then one has at least quadratic convergence, and so on. If [math]\displaystyle{ |f'(p)| \gt 1 }[/math], then one has a repulsive fixed point and no starting value will produce a sequence converging to p (unless one directly jumps to the point p itself).

Acceleration of convergence

Many methods exist to increase the rate of convergence of a given sequence, i.e. to transform a given sequence into one converging faster to the same limit. Such techniques are in general known as "series acceleration". The goal of the transformed sequence is to reduce the computational cost of the calculation. One example of series acceleration is Aitken's delta-squared process. These methods in general (and in particular Aitken's method) do not increase the order of convergence, and are useful only if initially the convergence is not faster than linear: If [math]\displaystyle{ (x_n) }[/math] convergences linearly, one gets a sequence [math]\displaystyle{ (a_n) }[/math] that still converges linearly (except for pathologically designed special cases), but faster in the sense that [math]\displaystyle{ \lim (a_n-L)/(x_n-L)= 0 }[/math]. On the other hand, if the convergence is already of order ≥ 2, Aitken's method will bring no improvement.

References

Literature

The simple definition is used in

  • Michelle Schatzman (2002), Numerical analysis: a mathematical introduction, Clarendon Press, Oxford. ISBN 0-19-850279-6.

The extended definition is used in

  • Walter Gautschi (1997), Numerical analysis: an introduction, Birkhäuser, Boston. ISBN 0-8176-3895-4.
  • Endre Süli and David Mayers (2003), An introduction to numerical analysis, Cambridge University Press. ISBN 0-521-00794-1.

The Big O definition is used in

  • Richard L. Burden and J. Douglas Faires (2001), Numerical Analysis (7th ed.), Brooks/Cole. ISBN 0-534-38216-9

The terms Q-linear and R-linear are used in