TOPICS
Search

Condition Number


For a nonsingular square matrix A, its condition number with respect to a matrix norm is kappa(A)=||A||||A^(-1)||. The condition number of a singular matrix is taken to be infinite. For the spectral norm, this is the ratio of the largest to the smallest singular value. For an induced norm, log_bkappa(A) estimates the worst-case loss of base-b digits in solving a linear system with coefficient matrix A. A matrix with a large condition number is ill-conditioned.

Multiplying A by any nonzero scalar leaves its condition number invariant while generally changing the magnitudes of its entries and its determinant. These magnitudes alone therefore do not determine how well-conditioned a matrix is.

For example, the diagonal matrix with diagonal t,1/t has determinant 1 and spectral-norm condition number t^2 for t>=1.

Condition estimators can approximate ||A^(-1)|| using linear solves with A and its conjugate transpose, without forming the inverse explicitly. Hager (1984) gives a 1-norm estimator, and Higham (1987) surveys estimators for triangular matrices.

An estimate of the p-norm condition number of a matrix can be computed in the Wolfram Language prior to Version 11.2 using LinearAlgebra`MatrixConditionNumber[m, p] for p=1, 2, or infty, where omitting the p is equivalent to specifying Infinity. A similar approximation for the L^infty condition number can be computed using LUDecomposition[mat][[-1]].

Computation of the condition number of a matrix may be implemented in a future version of the Wolfram Language using MatrixConditionNumber.

LAPACK's DGECON estimates the norm of the inverse using DLACN2, a variant of Higham's (1988) 1-norm estimator.

Individual eigenvalues have their own condition numbers. For a simple eigenvalue lambda with right and left eigenvectors x and y, respectively, the absolute condition number for perturbations measured in the spectral norm is

 kappa(lambda)=(||x||_2||y||_2)/(|y^*x|).

The first-order change under a perturbation E is y^*Ex/(y^*x) (Smith 1967). For a normal matrix, each simple eigenvalue has condition number 1.


See also

Ill-Conditioned Matrix, Singular Matrix, Singular Value, Singular Value Decomposition

Portions of this entry contributed by Daniel Lichtblau

Explore with Wolfram|Alpha

References

Hager, W. W. "Condition Estimates." SIAM J. Sci. Statist. Comput. 5, 311-316, 1984. https://doi.org/10.1137/0905023.Higham, N. J. "FORTRAN Codes for Estimating the One-Norm of a Real or Complex Matrix, with Applications to Condition Estimation." ACM Trans. Math. Software 14, 381-396, 1988. https://doi.org/10.1145/50063.214386.Higham, N. J. "A Survey of Condition Number Estimation for Triangular Matrices." SIAM Rev. 29, 575-596, 1987. https://doi.org/10.1137/1029112.Higham, N. J. "Norms." Ch. 6 in Accuracy and Stability of Numerical Algorithms, 2nd ed. Philadelphia, PA: SIAM, pp. 105-117, 2002. https://doi.org/10.1137/1.9780898718027.ch6.LAPACK. "DGECON and DLACN2." https://www.netlib.org/lapack/lapack_routine/dgecon.f. https://www.netlib.org/lapack/lapack_routine/dlacn2.f.Smith, R. A. "The Condition Numbers of the Matrix Eigenvalue Problem." Numer. Math. 10, 232-240, 1967. https://doi.org/10.1007/BF02162166.

Referenced on Wolfram|Alpha

Condition Number

Cite this as:

Weisstein, Eric W., with contributions by Daniel Lichtblau. "Condition Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/ConditionNumber.html

Subject classifications