Numerical stability

In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms. The precise definition of stability depends on the context. One is numerical linear algebra and the other is algorithms for solving ordinary and partial differential equations by discrete approximation.

In numerical linear algebra, the principal concern is instabilities caused by proximity to singularities of various kinds, such as very small or nearly colliding eigenvalues. On the other hand, in numerical algorithms for differential equations the concern is the growth of round-off errors and/or small fluctuations in initial data which might cause a large deviation of final answer from the exact solution.[citation needed]

Some numerical algorithms may damp out the small fluctuations (errors) in the input data; others might magnify such errors. Calculations that can be proven not to magnify approximation errors are called numerically stable. One of the common tasks of numerical analysis is to try to select algorithms which are robust – that is to say, do not produce a wildly different result for very small change in the input data.

An opposite phenomenon is instability. Typically, an algorithm involves an approximative method, and in some cases one could prove that the algorithm would approach the right solution in some limit (when using actual real numbers, not floating point numbers). Even in this case, there is no guarantee that it would converge to the correct solution, because the floating-point round-off or truncation errors can be magnified, instead of damped, causing the deviation from the exact solution to grow exponentially.[1]

Stability in numerical linear algebra

There are different ways to formalize the concept of stability. The following definitions of forward, backward, and mixed stability are often used in numerical linear algebra.

Diagram showing the forward error Δy and the backward error Δx, and their relation to the exact solution map f and the numerical solution f*.

Consider the problem to be solved by the numerical algorithm as a function f mapping the data x to the solution y. The result of the algorithm, say y*, will usually deviate from the "true" solution y. The main causes of error are round-off error and truncation error. The forward error of the algorithm is the difference between the result and the solution; in this case, Δy = y* − y. The backward error is the smallest Δx such that f (x + Δx) = y*; in other words, the backward error tells us what problem the algorithm actually solved. The forward and backward error are related by the condition number: the forward error is at most as big in magnitude as the condition number multiplied by the magnitude of the backward error.

In many cases, it is more natural to consider the relative error instead of the absolute error Δx.

The algorithm is said to be backward stable if the backward error is small for all inputs x. Of course, "small" is a relative term and its definition will depend on the context. Often, we want the error to be of the same order as, or perhaps only a few orders of magnitude bigger than, the unit round-off.

Mixed stability combines the concepts of forward error and backward error.

The usual definition of numerical stability uses a more general concept, called mixed stability, which combines the forward error and the backward error. An algorithm is stable in this sense if it solves a nearby problem approximately, i.e., if there exists a Δx such that both Δx is small and f (x + Δx) − y* is small. Hence, a backward stable algorithm is always stable.

An algorithm is forward stable if its forward error divided by the condition number of the problem is small. This means that an algorithm is forward stable if it has a forward error of magnitude similar to some backward stable algorithm.

Stability in numerical differential equations

The above definitions are particularly relevant in situations where truncation errors are not important. In other contexts, for instance when solving differential equations, a different definition of numerical stability is used.

In numerical ordinary differential equations, various concepts of numerical stability exist, for instance A-stability. They are related to some concept of stability in the dynamical systems sense, often Lyapunov stability. It is important to use a stable method when solving a stiff equation.

Yet another definition is used in numerical partial differential equations. An algorithm for solving a linear evolutionary partial differential equation is stable if the total variation of the numerical solution at a fixed time remains bounded as the step size goes to zero. The Lax equivalence theorem states that an algorithm converges if it is consistent and stable (in this sense). Stability is sometimes achieved by including numerical diffusion. Numerical diffusion is a mathematical term which ensures that roundoff and other errors in the calculation get spread out and do not add up to cause the calculation to "blow up". Von Neumann stability analysis is a commonly used procedure for the stability analysis of finite difference schemes as applied to linear partial differential equations. These results do not hold for nonlinear PDEs, where a general, consistent definition of stability is complicated by many properties absent in linear equations.

Example

Computing the square root of 2 (which is roughly 1.41421) is a well-posed problem. Many algorithms solve this problem by starting with an initial approximation x0 to , for instance x0 = 1.4, and then computing improved guesses x1, x2, etc. One such method is the famous Babylonian method, which is given by xk+1 = (xk+ 2/xk)/2. Another method, called "method X", is given by xk+1 = (xk2 − 2)2 + xk.[note 1] A few iterations of each scheme are calculated in table form below, with initial guesses x0 = 1.4 and x0 = 1.42.

Babylonian Babylonian Method X Method X
x0 = 1.4 x0 = 1.42 x0 = 1.4 x0 = 1.42
x1 = 1.4142857... x1 = 1.41422535... x1 = 1.4016 x1 = 1.42026896
x2 = 1.414213564... x2 = 1.41421356242... x2 = 1.4028614... x2 = 1.42056...
... ...
x1000000 = 1.41421... x27 = 7280.2284...

Observe that the Babylonian method converges quickly regardless of the initial guess, whereas Method X converges extremely slowly with initial guess x0 = 1.4 and diverges for initial guess x0 = 1.42. Hence, the Babylonian method is numerically stable, while Method X is numerically unstable.

Numerical stability is affected by the number of the significant digits the machine keeps. If a machine is used that keeps only the four most significant decimal digits, a good example on loss of significance can be given by the two equivalent functions

and
Comparing the results of
and

by comparing the two results above, it is clear that loss of significance (caused here by catastrophic cancellation from subtracting approximations to the nearby numbers and , despite the subtraction being computed exactly) has a huge effect on the results, even though both functions are equivalent, as shown below

The desired value, computed using infinite precision, is 11.174755...[note 2]

See also

Notes

  1. ^ This is a fixed point iteration for the equation , whose solutions include . The iterates always move to the right since . Hence converges and diverges.
  2. ^ The example is a modification of one taken from Mathews & Fink (1999).[2]

References

  1. ^ Giesela Engeln-Müllges; Frank Uhlig (2 July 1996). Numerical Algorithms with C. M. Schon (Translator), F. Uhlig (Translator) (1 ed.). Springer. p. 10. ISBN 978-3-540-60530-0.
  2. ^ Mathews, John H.; Fink, Kurtis D. (1999). "Example 1.17". Numerical Methods Using MATLAB (3rd ed.). Prentice Hall. p. 28.

Read other articles:

London in the reign of the Tudor monarchs of England Tudor London1485–1603Map of London prior to 1561 by Georg Braun and Frans Hogenberg in Civitates Orbis TerrarumLocationLondonMonarch(s)Henry VII, Henry VIII, Edward VI, Lady Jane Grey, Mary I, Elizabeth IKey eventsEnglish Reformation, English Renaissance theatreChronology Norman and medieval London Stuart London Part of a series on the History of London Roman London Anglo-Saxon London Norman and Medieval London Tudor London Stuart London 18t…

Disambiguazione – Se stai cercando altri significati, vedi Brondi (disambigua). Questa voce o sezione sull'argomento aziende italiane non cita le fonti necessarie o quelle presenti sono insufficienti. Commento: troppi commenti non neutri poggiati su due fonti, di cui una è l'azienda stessa e l'altra un sito non utile se non a fontare solo un dettaglio Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti d…

Private liberal arts college in Vermont, United States Goddard CollegeFormer namesGreen Mountain Central Institute & Goddard SeminaryTypePrivate online collegeEstablished1863; 161 years ago (1863)PresidentDan Hocoy[1]Academic staff64Administrative staff50Students220 (Spring 2024)Undergraduates112Postgraduates208LocationPlainfield, Vermont, United States44°16′44″N 72°26′22″W / 44.2789°N 72.4394°W / 44.2789; -72.4394CampusRural 175 …

This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Electricity Act 1947 – news · newspapers · books · scholar · JSTOR (January 2009) (Learn how and when to remove this message) United Kingdom legislationElectricity Act 1947Act of ParliamentParliament of the United KingdomLong titleAn Act to provide for the establishment of a British Electricity Authority and …

Time zones used in Mexico Time in Mexico Mexican time zone Standard DST U.S. equivalent Zona Sureste UTC−05:00 Eastern Standard Time Zona Centro UTC−06:00 UTC−05:00 Central Time UTC−06:00 Central Standard Time Zona Pacífico UTC−07:00 UTC−06:00 Mountain Time UTC−07:00 Mountain Standard Time Zona Noroeste UTC−08:00 UTC−07:00 Pacific Time Mexico uses four time zones:[1][2] UTC−05:00: Zona Sureste (Southeast Zone), comprising the state of Quintana Roo; UTC−06:0…

Etenol beralih ke halaman ini, yang bukan mengenai Etanol. Vinil alkohol Rumus kimia etenol Model bola-dan-pasak etenol Nama Nama IUPAC (preferensi) Etenol Nama lain HidroksietenaHidroksietilena Penanda Nomor CAS 557-75-5 Y Model 3D (JSmol) Gambar interaktif 3DMet {{{3DMet}}} ChEMBL ChEMBL76101 Y ChemSpider 10726 Y Nomor EC PubChem CID 11199 Nomor RTECS {{{value}}} CompTox Dashboard (EPA) DTXSID8051467 InChI InChI=1S/C2H4O/c1-2-3/h2-3H,1H2 YKey: IMROMDMJAWUWLK-UHFFFAOYSA…

Economist, philosopher and historian (1886–1964) The native form of this personal name is Polányi Károly. This article uses Western name order when mentioning individuals. Karl PolanyiPolanyi, c. 1918Born25 October 1886Vienna, Austria-HungaryDied23 April 1964(1964-04-23) (aged 77)Pickering, Ontario, CanadaSpouse Ilona Duczynska ​(m. 1923)​ChildrenKari Polanyi LevittRelatives Michael Polanyi (brother) John Polanyi (nephew) Eva Zeisel (niece) Academic car…

Одеський регіональний інститут державного управління НАДУ при Президентові УкраїниОРИГУ НАГУ і ОРИГУ НАГУ|акредитація 46°26′17″ пн. ш. 30°45′21″ сх. д. / 46.43830000002777325° пн. ш. 30.75600000002777890° сх. д. / 46.43830000002777325; 30.75600000002777890Координати: 46°26′17″ п…

County in Nebraska, United States Not to be confused with Adams, Nebraska. County in NebraskaAdams CountyCountyAdams County Courthouse in HastingsLocation within the U.S. state of NebraskaNebraska's location within the U.S.Coordinates: 40°31′N 98°30′W / 40.52°N 98.5°W / 40.52; -98.5Country United StatesState NebraskaFounded1867 (authorized)1871 (organized)Named forJohn AdamsSeatHastingsLargest cityHastingsArea • Total564 sq mi (1,46…

George SilkBornArthur George Silk(1916-11-17)17 November 1916Levin, New ZealandDied23 October 2004(2004-10-23) (aged 87)Norwalk, Connecticut, USAOccupationPhotojournalistSpouseMargery Gray Schieber (1947–2004) George Silk (17 November 1916 – 23 October 2004) was a New Zealand-born Australian photojournalist. He served as a photojournalist for Life for 30 years.[1][2] Early life Silk was born in the New Zealand town of Levin, New Zealand, the fourth child of Arthur Silk a…

2026 Brazilian general election ← 2022 4 October 2026 (2026-10-04) (first round)25 October 2026 (2026-10-25) (second round, if necessary) 2030 → Presidential electionOpinion polls Incumbent President Luiz Inácio Lula da Silva PT Chamber of DeputiesAll 513 seats in the Chamber of Deputies257 seats needed for a majority Party Leader Current seats PL Altineu Côrtes 95 FE Brasil Odair Cunha 80 UNIÃO Elmar Nascimento 58 PP Luiz Teixeira Jr. …

COVID-19 pandemic in British ColumbiaDiseaseCOVID-19Virus strainSARS-CoV-2LocationBritish Columbia, CanadaFirst outbreakWuhan, Hubei, ChinaIndex caseVancouverArrival dateJanuary 28, 2020(4 years, 4 months, 2 weeks and 4 days)Confirmed cases341,532 (1,790 Epi-Linked)[1]Deaths2,766[1]Fatality rate0.81%Vaccinations1st doses: 4,477,487 (86.42%) 2nd doses: 4,225,154 (81.54%) 3rd+ doses: 2,455,419Government websiteBC Centre for Disease Control The COVID-19 pandemic …

American judge (born 1951) Barry G. SilvermanSenior Judge of the United States Court of Appeals for the Ninth CircuitIncumbentAssumed office October 11, 2016Judge of the United States Court of Appeals for the Ninth CircuitIn officeFebruary 4, 1998 – October 11, 2016Appointed byBill ClintonPreceded byWilliam CanbySucceeded byBridget S. BadeMagistrate Judge of the United States District Court for the District of ArizonaIn office1995–1998 Personal detailsBorn (1951-10-11) October 1…

Hindu temple in Kerala, India This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Pulimukham Devi Temple – news · newspapers · books · scholar · JSTOR (April 2013) (Learn how and when to remove this message) Pulimughathu Sree Bhadra Bhagavathi TempleReligionAffiliationHinduismDistrictKollamDeityBhadra BhagavathiFes…

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Treasury Casino – news · newspapers · books · scholar · JSTOR (January 2009) (Learn how and when to remove this message) Treasury Casino Location Brisbane, Queensland Address Cnr George & Elizabeth Streets, BrisbaneOpening dateApril 1995Closing date2024 (plann…

Not to be confused with Atmospheric diffraction. Deviation of light as it moves through the atmosphere Diagram showing displacement of the Sun's image at sunrise and sunset Atmospheric refraction is the deviation of light or other electromagnetic wave from a straight line as it passes through the atmosphere due to the variation in air density as a function of height.[1] This refraction is due to the velocity of light through air decreasing (the refractive index increases) with increased …

Cargo aircraft crash in 2015 This article needs to be updated. The reason given is: Results of the official investigation became known in 2017 ([1], [2]) but haven't been used here. Please help update this article to reflect recent events or newly available information. (August 2018) 2015 Seville A400M crashThe second prototype of the Airbus A400M AtlasAccidentDate9 May 2015 (2015-05-09)SummaryMultiple engine failure during test flightSiteLa Rinconada, Spain 37°22′00″N 5°59…

Akashiyaki Menu rumah makan di kota Akashi yang menjual akashiyaki (tamagoyaki) sebagai set menu Akashiyaki (明石焼きcode: ja is deprecated ) adalah nama penganan asal kota Akashi di Prefektur Hyogo, Jepang dari adonan telur, tepung terigu, dashi dan berisi potongan gurita yang dicelup ke dalam kuah dashi sebelum dimakan. Akashiyaki sepintas lalu terlihat mirip takoyaki, berbentuk bola-bola lunak dengan diameter sekitar 3-5 cm yang sering tidak benar-benar bulat karena bagian bawah terdesak …

International sporting eventWomen's 100 metres hurdles at the 1979 Pan American GamesVenueEstadio Sixto EscobarDates12 & 13 JulyWinning time12.90Medalists Deby LaPlante  United States Sharon Lane  Canada Grisel Machado  Cuba«1975 1983» International sporting eventAthletics at the1979 Pan American GamesTrack events100 mmenwomen200 mmenwomen400 mmenwomen800 mmenwomen1500 mmenwomen3000 mwomen5000 mmen10,000 mmen100 m hurdleswomen110 m hurdlesmen400…

Pour les articles homonymes, voir Lūsis. Jānis Lūsis Jānis Lūsis en 2011. Informations Disciplines Lancer du javelot Période d'activité 1957-1976 Nationalité Union soviétique puis Letton Naissance 19 mai 1939 Jelgava (RSS de Lettonie, URSS) Décès 28 avril 2020 (à 80 ans) Riga (Lettonie) Taille 1,81 m Masse 91 kg Club A.S.C. Riga Entraîneur Valentin Mazzalatis Records Ancien détenteur du record du monde Distinctions Élu au Temple de la renommée de l'IAAF en 2014 Palmarès Mé…