In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the input, and how much error in the output results from an error in the input. Very frequently, one is solving the inverse problem: given one is solving for x, and thus the condition number of the (local) inverse must be used.[1][2]
The condition number is derived from the theory of propagation of uncertainty, and is formally defined as the value of the asymptotic worst-case relative change in output for a relative change in input. The "function" is the solution of a problem and the "arguments" are the data in the problem. The condition number is frequently applied to questions in linear algebra, in which case the derivative is straightforward but the error could be in many different directions, and is thus computed from the geometry of the matrix. More generally, condition numbers can be defined for non-linear functions in several variables.
A problem with a low condition number is said to be well-conditioned, while a problem with a high condition number is said to be ill-conditioned. In non-mathematical terms, an ill-conditioned problem is one where, for a small change in the inputs (the independent variables) there is a large change in the answer or dependent variable. This means that the correct solution/answer to the equation becomes hard to find. The condition number is a property of the problem. Paired with the problem are any number of algorithms that can be used to solve the problem, that is, to calculate the solution. Some algorithms have a property called backward stability; in general, a backward stable algorithm can be expected to accurately solve well-conditioned problems. Numerical analysis textbooks give formulas for the condition numbers of problems and identify known backward stable algorithms.
As a rule of thumb, if the condition number , then you may lose up to digits of accuracy on top of what would be lost to the numerical method due to loss of precision from arithmetic methods.[3] However, the condition number does not give the exact value of the maximum inaccuracy that may occur in the algorithm. It generally just bounds it with an estimate (whose computed value depends on the choice of the norm to measure the inaccuracy).
General definition in the context of error analysis
Given a problem and an algorithm with an input and output the error is the absolute error is and the relative error is
In this context, the absolute condition number of a problem is[clarification needed]
For example, the condition number associated with the linear equationAx = b gives a bound on how inaccurate the solution x will be after approximation. Note that this is before the effects of round-off error are taken into account; conditioning is a property of the matrix, not the algorithm or floating-point accuracy of the computer used to solve the corresponding system. In particular, one should think of the condition number as being (very roughly) the rate at which the solution x will change with respect to a change in b. Thus, if the condition number is large, even a small error in b may cause a large error in x. On the other hand, if the condition number is small, then the error in x will not be much bigger than the error in b.
The condition number is defined more precisely to be the maximum ratio of the relative error in x to the relative error in b.
Let e be the error in b. Assuming that A is a nonsingular matrix, the error in the solution A−1b is A−1e. The ratio of the relative error in the solution to the relative error in b is
The maximum value (for nonzero b and e) is then seen to be the product of the two operator norms as follows:
The same definition is used for any consistent norm, i.e. one that satisfies
When the condition number is exactly one (which can only happen if A is a scalar multiple of a linear isometry), then a solution algorithm can find (in principle, meaning if the algorithm introduces no errors of its own) an approximation of the solution whose precision is no worse than that of the data.
However, it does not mean that the algorithm will converge rapidly to this solution, just that it will not diverge arbitrarily because of inaccuracy on the source data (backward error), provided that the forward error introduced by the algorithm does not diverge as well because of accumulating intermediate rounding errors.[clarification needed]
The condition number may also be infinite, but this implies that the problem is ill-posed (does not possess a unique, well-defined solution for each choice of data; that is, the matrix is not invertible), and no algorithm can be expected to reliably find a solution.
The definition of the condition number depends on the choice of norm, as can be illustrated by two examples.
recalling that the eigenvalues of any triangular matrix are simply the diagonal entries.
The condition number computed with this norm is generally larger than the condition number computed relative to the Euclidean norm, but it can be evaluated more easily (and this is often the only practicably computable condition number, when the problem to solve involves a non-linear algebra[clarification needed], for example when approximating irrational and transcendental functions or numbers with numerical methods).
If the condition number is not significantly larger than one, the matrix is well-conditioned, which means that its inverse can be computed with good accuracy. If the condition number is very large, then the matrix is said to be ill-conditioned. Practically, such a matrix is almost singular, and the computation of its inverse, or solution of a linear system of equations is prone to large numerical errors.
A matrix that is not invertible is often said to have a condition number equal to infinity. Alternatively, it can be defined as , where is the Moore-Penrose pseudoinverse. For square matrices, this unfortunately makes the condition number discontinuous, but it is a useful definition for rectangular matrices, which are never invertible but are still used to define systems of equations.
Nonlinear
Condition numbers can also be defined for nonlinear functions, and can be computed using calculus. The condition number varies with the point; in some cases one can use the maximum (or supremum) condition number over the domain of the function or domain of the question as an overall condition number, while in other cases the condition number at a particular point is of more interest.
The relative condition number of as a function is . Evaluated at a point , this is
Note that this is the absolute value of the elasticity of a function in economics.
Most elegantly, this can be understood as (the absolute value of) the ratio of the logarithmic derivative of , which is , and the logarithmic derivative of , which is , yielding a ratio of . This is because the logarithmic derivative is the infinitesimal rate of relative change in a function: it is the derivative scaled by the value of . Note that if a function has a zero at a point, its condition number at the point is infinite, as infinitesimal changes in the input can change the output from zero to positive or negative, yielding a ratio with zero in the denominator, hence infinite relative change.
More directly, given a small change in , the relative change in is , while the relative change in is . Taking the ratio yields
Condition numbers of common elementary functions are particularly important in computing significant figures and can be computed immediately from the derivative. A few important ones are given below:
Condition numbers can be defined for any function mapping its data from some domain (e.g. an -tuple of real numbers) into some codomain (e.g. an -tuple of real numbers ), where both the domain and codomain are Banach spaces. They express how sensitive that function is to small changes (or small errors) in its arguments. This is crucial in assessing the sensitivity and potential accuracy difficulties of numerous computational problems, for example, polynomial root finding or computing eigenvalues.
The condition number of at a point (specifically, its relative condition number[4]) is then defined to be the maximum ratio of the fractional change in to any fractional change in , in the limit where the change in becomes infinitesimally small:[4]
^Belsley, David A.; Kuh, Edwin; Welsch, Roy E. (1980). "The Condition Number". Regression Diagnostics: Identifying Influential Data and Sources of Collinearity. New York: John Wiley & Sons. pp. 100–104. ISBN0-471-05856-4.
Demmel, James (1990). "Nearest Defective Matrices and the Geometry of Ill-conditioning". In Cox, M. G.; Hammarling, S. (eds.). Reliable Numerical Computation. Oxford: Clarendon Press. pp. 35–55. ISBN0-19-853564-3.
Fill Me InLagu oleh Craig Daviddari album Born to Do ItDirilis3 April 2000FormatCD, vinyl, kasetDirekam1999GenreR&BDurasi4:16 (album) 3:53 (radio edit)LabelWildstar Records / Edel Germany / Atlantic RecordsPenciptaCraig David, Mark HillProduserMark Hill]Sampul alternatifSampul alternatif Fill Me In adalah singel pertama dari album perdana penyanyi berkebangsaan Britania Raya, Craig David, Born to Do It, yang dirilis pada tahun 2000. Album ini menempati posisi ke 15 pada Billboard Hot 100....
Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Januari 2023. Batai Klasifikasi ilmiah Kerajaan: Plantae (tanpa takson): Angiospermae (tanpa takson): Eudikotil (tanpa takson): Rosidae Ordo: Fabales Famili: Fabaceae Genus: Falcataria Spesies: F Paraserianthes Nama binomial Paraserianthes falcataria(Schumach.) W.F....
Embryonic precursor structures in vertebrates Pharyngeal archSchematic of developing human fetus with first, second and third arches labelledDetailsCarnegie stage10IdentifiersLatinarcus pharyngeiMeSHD001934TEarch_by_E5.4.2.0.0.0.2 E5.4.2.0.0.0.2 Anatomical terminology[edit on Wikidata] Floor of the pharynx of human embryo at about 26 days oldScheme of the pharyngeal archesScheme of the pharyngeal archesI–IV: pharyngeal arches1–4: pharyngeal pouches (inside) and/or pharyngeal grooves (...
Bendera Republik Islam Afganistan Bendera Republik Islam Afganistan[Catatan 1] Pemakaian Bendera dan bendera kapal nasional Perbandingan 1:2 Dipakai 27 Oktober 1997; 26 tahun lalu (1997-10-27)15 Agustus 2021; 2 tahun lalu (2021-08-15)[Catatan 2][1] Rancangan Syahadat berlatar putih. Variasi Bendera Keamiran Islam Afganistan Pemakaian Bendera dan bendera kapal nasional Perbandingan 1:2 Dipakai 15 Agustus 2021; 2 tahun lalu (2021-08-15)[Catatan 3]...
Brunei association football player In this Malay name, there is no surname or family name. The name Suhaimi is a patronymic, and the person should be referred to by their given name, Khairil Shahme. Khairil Shahme Khairil with Kasuka in 2023Personal informationFull name Mohammad Khairil Shahme bin SuhaimiDate of birth (1993-04-16) 16 April 1993 (age 30)Place of birth BruneiPosition(s) Defender, Holding midfielderTeam informationCurrent team Kasuka FCNumber 21Senior career*Years Team Apps...
Systematic dispossession, deportation and murder of Jews in the Kingdom of Romania Bodies being thrown down from a train carrying deported Jews from Iași The Holocaust in Romania was the development of the Holocaust in the Kingdom of Romania. 380,000–400,000 Jews died in Romanian-controlled areas, including Bessarabia, Bukovina and Transnistria.[1] Romania ranks first among Holocaust perpetrator countries other than Nazi Germany.[2][3][4] Background Further ...
« Alle Wege des Marxismus führen nach Moskau! (de) » (« Tous les chemins du marxisme mènent à Moscou ! ») : affiche de la CDU en Allemagne de l'Ouest (1953). Le terme d'anticommunisme englobe, au sens large, l'ensemble des attitudes d'opposition ou d'hostilité envers les aspects théoriques ou pratiques du communisme : l'anticommunisme peut se traduire sous forme de simple prise de position, de discours politique structuré, d'action ou de propa...
Adelantado(penguasa militer)Pedro de Valdivia Gubernur Kerajaan ke-1 di ChiliMasa jabatan1540–1547Penguasa monarkiCharles I dari SpanyolPendahuluTidak adaPenggantiFrancisco de VillagraMasa jabatan1549–1553Penguasa monarkiCharles I dari SpanyolPerdana MenteriPedro de la GascaPendahuluFrancisco de VillagraPenggantiFrancisco de Villagra Informasi pribadiLahirk. 1500Castuera de la Serena, Extremadura, SpanyolMeninggal25 Desember 1553(1553-12-25) (umur 53) invalid month invalid da...
Франц Саксен-Кобург-Заальфельдскийнем. Franz von Sachsen-Coburg-Saalfeld герцог Саксен-Кобург-Заальфельдский 8 сентября 1800 — 9 декабря 1806 Предшественник Эрнст Фридрих Саксен-Кобург-Заальфельдский Преемник Эрнст I Саксен-Кобург-Заальфельдский Рождение 15 июля 1750(1750-07-15)Кобург, Сакс...
American basketball player and coach Stacey AugmonAugmon in 2009Sacramento KingsPositionPlayer developmentLeagueNBAPersonal informationBorn (1968-08-01) August 1, 1968 (age 55)Pasadena, California, U.S.Listed height6 ft 8 in (2.03 m)Listed weight213 lb (97 kg)Career informationHigh schoolJohn Muir (Pasadena, California)CollegeUNLV (1987–1991)NBA draft1991: 1st round, 9th overall pickSelected by the Atlanta HawksPlaying career1991–2006PositionSmall forward / s...
Cet article est une ébauche concernant une localité anglaise. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. BarthomleyGéographiePays Royaume-UniNation constitutive AngleterreRégion Angleterre du Nord-OuestComté cérémonial CheshireBorough Cheshire EastCoordonnées 53° 04′ 05″ N, 2° 20′ 55″ OFonctionnementStatut Paroisse civileIdentifiantsCode postal CW2Indica...
Russian opposition politician (born 1981) In this name that follows Eastern Slavic naming customs, the patronymic is Vladimirovich and the family name is Kara-Murza. Vladimir Kara-MurzaВладимир Кара-МурзаKara-Murza in 2017Vice-Chairman of Open RussiaIncumbentAssumed office 12 November 2016Deputy Leader of the People's Freedom PartyIn office5 July 2015 – 17 December 2016LeaderMikhail Kasyanov Personal detailsBorn (1981-09-07) 7 September 1981 (age 42)Mo...
Connected input and output streams for computer programs This article is about standard I/O file descriptors. For System V streams, see STREAMS. In computer programming, standard streams are preconnected input and output communication channels[1] between a computer program and its environment when it begins execution. The three input/output (I/O) connections are called standard input (stdin), standard output (stdout) and standard error (stderr). Originally I/O happened via a physicall...
Київський князь Володимир Великий УкраїнаНомінал 20 гривеньМаса 62,2 / 67,25[1] гДіаметр 50 ммГурт гладкий із заглибленим написомМетал срібло 925 проби з локальною позолотоюРоки карбування 2015Аверс Реверс Не плутати зі срібною монетою «Володимир Великий» — пам'я�...
Casa ManzoniCasa ManzoniLocalizzazioneStato Italia RegioneLombardia LocalitàMilano Indirizzovia Morone, 1 Coordinate45°28′04.36″N 9°11′31.4″E45°28′04.36″N, 9°11′31.4″E Informazioni generaliCondizioniIn uso Costruzione1864 (rifacimento) Stileneorinascimentale Usoabitazione, ora museo RealizzazioneAppaltatoreAlessandro Manzoni (rifacimento) CostruttoreAndrea Boni (decorazioni) ProprietarioRegione Lombardia CommittenteAlessandro Manzoni Modifica dati su Wikidata ·...
The absolute Galois group of the real numbers is a cyclic group of order 2 generated by complex conjugation, since C is the separable closure of R and [C:R] = 2. In mathematics, the absolute Galois group GK of a field K is the Galois group of Ksep over K, where Ksep is a separable closure of K. Alternatively it is the group of all automorphisms of the algebraic closure of K that fix K. The absolute Galois group is well-defined up to inner automorphism. It is a profinite group. (When...
American politician This biography of a living person needs additional citations for verification. Please help by adding reliable sources. Contentious material about living persons that is unsourced or poorly sourced must be removed immediately from the article and its talk page, especially if potentially libelous.Find sources: Bonnie Lowenthal – news · newspapers · books · scholar · JSTOR (August 2019) (Learn how and when to remove this message) Bonni...