maths.freeNumerical Methods › Finding roots › Rate of convergence

Rate of convergence

In mathematical analysis, particularly numerical analysis, the rate of convergence and order of convergence of a sequence that converges to a limit are any of several characterizations of how quickly that sequence…

Rate of convergence

In mathematical analysis, particularly numerical analysis, the rate of convergence and order of convergence of a sequence that converges to a limit are any of several characterizations of how quickly that sequence approaches its limit. These are broadly divided into rates and orders of convergence that describe how quickly a sequence further approaches its limit once it is already close to it, called asymptotic rates and orders of convergence, and those that describe how quickly sequences approach their limits from starting points that are not necessarily close to their limits, called non-asymptotic rates and orders of convergence.

Asymptotic behavior is particularly useful for deciding when to stop a sequence of numerical computations, for instance once a target precision has been reached with an iterative root-finding algorithm, but pre-asymptotic behavior is often crucial for determining whether to begin a sequence of computations at all, since it may be impossible or impractical to ever reach a target precision with a poorly chosen approach. Asymptotic rates and orders of convergence are the focus of this article.

In practical numerical computations, asymptotic rates and orders of convergence follow two common conventions for two types of sequences: the first for sequences of iterations of an iterative numerical method and the second for sequences of successively more accurate numerical discretizations of a target. In formal mathematics, rates of convergence and orders of convergence are often described comparatively using asymptotic notation commonly called "big O notation," which can be used to encompass both of the prior conventions; this is an application of asymptotic analysis.

For iterative methods, a sequence \((x_k)\) that converges to \(L\) is said to have asymptotic order of convergence \(q \geq 1\) and asymptotic rate of convergence \(\mu\) if

\(\lim _{k \rightarrow \infty} \frac{\left|x_{k+1}-L\right|}{\left|x_{k}-L\right|^{q}}=\mu.\)

Where methodological precision is required, these rates and orders of convergence are known specifically as the rates and orders of Q-convergence, short for quotient-convergence, since the limit in question is a quotient of error terms. The rate of convergence \(\mu\) may also be called the asymptotic error constant, and some authors will use rate where this article uses order. Series acceleration methods are techniques for improving the rate of convergence of the sequence of partial sums of a series and possibly its order of convergence, also.

Similar concepts are used for sequences of discretizations. For instance, ideally the solution of a differential equation discretized via a regular grid will converge to the solution of the continuous equation as the grid spacing goes to zero, and if so the asymptotic rate and order of that convergence are important properties of the gridding method. A sequence of approximate grid solutions \((y_k)\) of some problem that converges to a true solution \(S\) with a corresponding sequence of regular grid spacings \((h_k)\) that converge to 0 is said to have asymptotic order of convergence \(q\) and asymptotic rate of convergence \(\mu\) if

Condensed: the full section is in Wikipedia.

Examples

The geometric progression \((a_k) = 1, \frac{1}{2}, \frac{1}{4}, \frac{1}{8}, \frac{1}{16}, \frac{1}{32}, \ldots, \bigl(\tfrac12\bigr)^k, \dots\) converges to \(L = 0\). Plugging the sequence into the definition of Q-linear convergence (i.e., order of convergence 1) shows that

\[\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}.\]

Thus \((a_k)\) converges Q-linearly with a convergence rate of \(\mu = 1/2\); see the first plot of the figure below.

More generally, for any initial value \(a\) in the real numbers and a real number common ratio \(r\) between -1 and 1, a geometric progression \((a r^k)\) converges linearly with rate \(|r|\) and the sequence of partial sums of a geometric series \(\bigl(\sum_{n=0}^k ar^n\bigr)\) also converges linearly with rate \(|r|\). The same holds also for geometric progressions and geometric series parameterized by any complex numbers \(a \in \mathbb{C}, r \in \mathbb{C}, |r| < 1.\)

The staggered geometric progression \((b_k) = 1, 1, \frac{1}{4}, \frac{1}{4}, \frac{1}{16}, \frac{1}{16}, \ldots, \bigl(\tfrac14\bigr)^{\left\lfloor k/2 \right\rfloor}, \ldots,\) using the floor function \(\lfloor x \rfloor\) that gives the largest integer that is less than or equal to \(x,\) converges R-linearly to 0 with rate 1/2, but it does not converge Q-linearly; see the second plot of the figure below. The defining Q-linear convergence limits do not exist for this sequence because one subsequence of error quotients starting from odd steps converges to 1 and another subsequence of quotients starting from even steps converges to 1/4. When two subsequences of a sequence converge to different limits, the sequence does not itself converge to a limit. Generally, for any staggered geometric progression \((a r^{\lfloor k / m \rfloor})\), the sequence will not converge Q-linearly but will converge R-linearly with rate \(\sqrt[m]{|r|};\) these examples demonstrate why the "R" in R-linear convergence is short for "root."

The sequence \[(c_k) = \frac{1}{2}, \frac{1}{4}, \frac{1}{16}, \frac{1}{256}, \frac{1}{65,\!536}, \ldots, \frac{1}{2^{2^k}}, \ldots\] converges to zero Q-superlinearly. In fact, it is quadratically convergent with a quadratic convergence rate of 1. It is shown in the third plot of the figure below.

Finally, the sequence \[(d_k) = 1, \frac{1}{2}, \frac{1}{3}, \frac{1}{4}, \frac{1}{5}, \frac{1}{6}, \ldots, \frac{1}{k + 1}, \ldots\] converges to zero Q-sublinearly and logarithmically and its convergence is shown as the fourth plot of the figure below.

Convergence rates to fixed points of recurrent sequences

Recurrent sequences \(x_{k+1}:=f(x_k)\), called fixed point iterations, define discrete time autonomous dynamical systems and have important general applications in mathematics through various fixed-point theorems about their convergence behavior. When f is continuously differentiable, given a fixed point p, \(f(p)=p,\) such that \(|f'(p)| < 1\), the fixed point is an attractive fixed point and the recurrent sequence will converge at least linearly to p for any starting value \(x_0\) sufficiently close to p. If \(|f'(p)| = 0\) and \(|f''(p)| < 1\), then the recurrent sequence will converge at least quadratically, and so on. If \(|f'(p)| > 1\), then the fixed point is a repulsive fixed point and sequences cannot converge to p from its immediate neighborhoods, though they may still jump to p directly from outside of its local neighborhoods.

Order estimation

A practical method to calculate the order of convergence for a sequence generated by a fixed point iteration is to calculate the following sequence, which converges to the order \(q\): \[q \approx \frac{\log \left|\displaystyle\frac{x_{k+1} - x_k}{x_k - x_{k-1}}\right|}{\log \left|\displaystyle\frac{x_k - x_{k-1}}{x_{k-1} - x_{k-2}}\right|}.\]

For numerical approximation of an exact value through a numerical method of order \(q\) see.

Accelerating convergence rates

Many methods exist to accelerate the convergence of a given sequence, i.e., to transform one sequence into a second sequence that converges more quickly to the same limit. Such techniques are in general known as "series acceleration" methods. These may reduce the computational costs of approximating the limits of the original sequences. One example of series acceleration by sequence transformation is Aitken's delta-squared process. These methods in general, and in particular Aitken's method, do not typically increase the order of convergence and thus they are useful only if initially the convergence is not faster than linear: if \((x_k)\) converges linearly, Aitken's method transforms it into a sequence \((a_k)\) that still converges linearly (except for pathologically designed special cases), but faster in the sense that \(\lim_{k \rightarrow \infty} (a_k-L)/(x_k-L)= 0\). On the other hand, if the convergence is already of order ≥ 2, Aitken's method will bring no improvement.

Definitions

A sequence of discretized approximations \((y_k)\) of some continuous-domain function \(S\) that converges to this target, together with a corresponding sequence of discretization scale parameters \((h_k)\) that converge to 0, is said to have asymptotic order of convergence \(q\) and asymptotic rate of convergence \(\mu\) if

\[\lim _{k \rightarrow \infty} \frac{\left|y_k - S\right|}{h_k^{q}}=\mu,\]

for some positive constants \(\mu\) and \(q\) and using \(|x|\) to stand for an appropriate distance metric on the space of solutions, most often either the uniform norm, the absolute difference, or the Euclidean distance. Discretization scale parameters may be spacings of a regular grid in space or in time, the inverse of the number of points of a grid in one dimension, an average or maximum distance between points in a polygon mesh, the single-dimension spacings of an irregular sparse grid, or a characteristic quantum of energy or momentum in a quantum mechanical basis set.

When all the discretizations are generated using a single common method, it is common to discuss the asymptotic rate and order of convergence for the method itself rather than any particular discrete sequences of discretized solutions. In these cases one considers a single abstract discretized solution \(y_h\) generated using the method with a scale parameter \(h\) and then the method is said to have asymptotic order of convergence \(q\) and asymptotic rate of convergence \(\mu\) if

\[\lim _{h \rightarrow 0} \frac{\left|y_h - S\right|}{h^{q}}=\mu,\]

again for some positive constants \(\mu\) and \(q\) and an appropriate metric \(|x|.\) This implies that the error of a discretization asymptotically scales like the discretization's scale parameter to the \(q\) power, or \(\left|y_h - S \right| = O(h^{q})\) using asymptotic big O notation. More precisely, it implies the leading order error is \(\mu h^{q},\) which can be expressed using asymptotic small o notation as\(\left|y_h - S\right| = \mu h^{q} + o(h^{q}).\)

In some cases multiple rates and orders for the same method but with different choices of scale parameter may be important, for instance for finite difference methods based on multidimensional grids where the different dimensions have different grid spacings or for finite element methods based on polygon meshes where choosing either average distance between mesh points or maximum distance between mesh points as scale parameters may imply different orders of convergence. In some especially technical contexts, discretization methods' asymptotic rates and orders of convergence will be characterized by several scale parameters at once with the value of each scale parameter possibly affecting the asymptotic rate and order of convergence of the method with respect to the other scale parameters.

Example

Consider the ordinary differential equation

\(\frac{dy}{dx} = -\kappa y\)

with initial condition \(y(0) = y_0\). We can approximate a solution to this one-dimensional equation using a sequence \((y_n)\) applying the forward Euler method for numerical discretization using any regular grid spacing \(h\) and grid points indexed by \(n\) as follows:

\(\frac{y_{n+1} - y_n}{h} = -\kappa y_{n},\)

which implies the first-order linear recurrence with constant coefficients

\(y_{n+1} = y_n(1 - h\kappa).\)

Given \(y(0) = y_0\), the sequence satisfying that recurrence is the geometric progression

\[y_{n} = y_0(1 - h\kappa)^n = y_0\left(1 - nh\kappa + \frac{n(n-1)}{2}h^2\kappa^2 + ....\right).\]

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

Therefore the error of the discrete approximation at each discrete point is

\[|y_n - f(x_n)| = \frac{nh^2\kappa^2}{2} + \ldots\]

Condensed: the full section is in Wikipedia.

Definitions

In asymptotic analysis in general, one sequence \((a_k)_{k \in \mathbb{N}}\) that converges to a limit \(L\) is said to asymptotically converge to \(L\) with a faster order of convergence than another sequence \((b_k)_{k \in \mathbb{N}}\) that converges to \(L\) in a shared metric space with distance metric \(|\cdot|,\) such as the real numbers or complex numbers with the ordinary absolute difference metrics, if

\[\lim _{k \rightarrow \infty} \frac{\left|a_k - L\right|}{|b_k - L|} = 0,\]

the two are said to asymptotically converge to \(L\) with the same order of convergence if

\[\lim_{k \rightarrow \infty} \frac{\left|a_k - L\right|}{|b_k - L|} = \mu\]

for some positive finite constant \(\mu,\) and the two are said to asymptotically converge to \(L\) with the same rate and order of convergence if

\[\lim_{k \rightarrow \infty} \frac{\left|a_k - L\right|}{|b_k - L|} = 1.\]

These comparative definitions of rate and order of asymptotic convergence are fundamental in asymptotic analysis. For the first two of these there are associated expressions in asymptotic O notation: the first is that \(a_k - L = o(b_k - L)\) in small o notation and the second is that \(a_k - L = \Theta(b_k - L)\) in Knuth notation. The third is also called asymptotic equivalence, expressed \(a_k - L \sim b_k - L.\)

Examples

For any two geometric progressions \((a r^k)_{k \in \mathbb{N}}\) and \((b s^k)_{k \in \mathbb{N}},\) with shared limit zero, the two sequences are asymptotically equivalent if and only if both \(a = b\) and \(r = s.\) They converge with the same order if and only if \(r = s.\) \((a r^k)\) converges with a faster order than \((b s^k)\) if and only if \(r < s.\) The convergence of any geometric series to its limit has error terms that are equal to a geometric progression, so similar relationships hold among geometric series as well. Any sequence that is asymptotically equivalent to a convergent geometric sequence may be either be said to "converge geometrically" or "converge exponentially" with respect to the absolute difference from its limit, or it may be said to "converge linearly" relative to a logarithm of the absolute difference such as the "number of decimals of precision." The latter is standard in numerical analysis.

For any two sequences of elements proportional to an inverse power of \(k,\) \((a k^{-n})_{k \in \mathbb{N}}\) and \((b k^{-m})_{k \in \mathbb{N}},\) with shared limit zero, the two sequences are asymptotically equivalent if and only if both \(a = b\) and \(n = m.\) They converge with the same order if and only if \(n = m.\) \((a k^{-n})\) converges with a faster order than \((b k^{-m})\) if and only if \(n > m.\)

For any sequence \((a_k)_{k \in \mathbb{N}}\) with a limit of zero, its convergence can be compared to the convergence of the shifted sequence \((a_{k-1})_{k \in \mathbb{N}},\) rescalings of the shifted sequence by a constant \(\mu,\) \((\mu a_{k-1})_{k \in \mathbb{N}},\) and scaled \(q\)-powers of the shifted sequence, \((\mu a_{k-1}^q)_{k \in \mathbb{N}}.\) These comparisons are the basis for the Q-convergence classifications for iterative numerical methods as described above: when a sequence of iterate errors from a numerical method \((|x_k - L|)_{k \in \mathbb{N}}\) is asymptotically equivalent to the shifted, exponentiated, and rescaled sequence of iterate errors \((\mu |x_{k-1} - L|^q)_{k \in \mathbb{N}},\) it is said to converge with order \(q\) and rate \(\mu.\)

Non-asymptotic rates of convergence

Non-asymptotic rates of convergence do not have the common, standard definitions that asymptotic rates of convergence have. Among formal techniques, Lyapunov theory is one of the most powerful and widely applied frameworks for characterizing and analyzing non-asymptotic convergence behavior.

For iterative methods, one common practical approach is to discuss these rates in terms of the number of iterates or the computer time required to reach close neighborhoods of a limit from starting points far from the limit. The non-asymptotic rate is then an inverse of that number of iterates or computer time. In practical applications, an iterative method that required fewer steps or less computer time than another to reach target accuracy will be said to have converged faster than the other, even if its asymptotic convergence is slower. These rates will generally be different for different starting points and different error thresholds for defining the neighborhoods. It is most common to discuss summaries of statistical distributions of these single point rates corresponding to distributions of possible starting points, such as the "average non-asymptotic rate," the "median non-asymptotic rate," or the "worst-case non-asymptotic rate" for some method applied to some problem with some fixed error threshold. These ensembles of starting points can be chosen according to parameters like initial distance from the eventual limit in order to define quantities like "average non-asymptotic rate of convergence from a given distance."

For discretized approximation methods, similar approaches can be used with a discretization scale parameter such as an inverse of a number of grid or mesh points or a Fourier series cutoff frequency playing the role of inverse iterate number, though it is not especially common. For any problem, there is a greatest discretization scale parameter compatible with a desired accuracy of approximation, and it may not be as small as required for the asymptotic rate and order of convergence to provide accurate estimates of the error. In practical applications, when one discretization method gives a desired accuracy with a larger discretization scale parameter than another it will often be said to converge faster than the other, even if its eventual asymptotic convergence is slower.

Tani ti. Asnjë kalkulator nuk e zgjidh këtë, por pjesët e saj janë të llogaritura. Provo një më poshtë, ose shkruaj tënde.

Mbaje punën tënde

Një llogari e lirë shtohet shënime në çdo mësim, një regjistrim të asaj që ju keni përfunduar, problemet tuaja të zgjidhura në një vend, dhe një mësues që ju mund të pyesni rreth kësaj faqeje. Matematika vetë është e hapur për të gjithë, të regjistruar apo jo.

Regjistrohu Hyr

Simbolet e përdorura këtu

Prek çdo simbol për përkufizimin e plotë, një fotografi dhe se çfarë do të thotë çdo shkronjë në të.

Pyetja që bëjnë njerëzit

Why not just solve exactly?

Most equations have no closed-form solution at all, and many that do are unusable in practice. A numerical method delivers as many correct digits as you need, and a good one tells you how many that is.

Why can Newton's method fail?

If it starts where the tangent is nearly flat it shoots far away; near a repeated root it slows to a crawl; and with several roots it may land on the wrong one. A bracketing method like bisection is slower but cannot fail.

Pjesa e kësaj faqeje është adaptuar nga Wikipedia (CC BY-SA 4.0). E përmbledhur dhe ri-shkruar këtu; gabimet janë tona.

Më shumë në Numerical Methods