![]()
MATH566 Lesson 2: Approximation assessment
|
Mathematical problems: condition number
Mathematical algorithms: absolute, relative errors and residuals
Rate of convergence
![]()
Mathematical problem
|
A mathematical problem is a mapping from input set to output set
Often the mapping is a function: a single output for given input
Examples:
Compute the square of a real:
Find solution of for given , .
Compute the innner product of two vectors :
![]()
Mathematical problem: more examples
|
For continuous functions , compute definite integral
Compute the derivative of a function
Find roots of polynomial . Input: polynomial coefficients , . Output: , . . The function cannot be written explicitly (corollary of Abel-Ruffini theorem), but there are approximations of the root-finding function that can be implemented such .
![]()
Mathematical problems: formalism for assessing intrinsic
difficulty
|
How hard is it to solve a mathematical problem? Idea: a problem is difficult to solve if small changes in inputs produce large changes in output. “Small” and “large” require definition of a way to measure mathematical objects including numbers, vectors, functions.
Organize mathematical objects as a vector space
Addition rules for | |
Closure | |
Associativity | |
Commutativity | |
Zero vector | |
Additive inverse | |
Scaling rules for | , |
Closure | |
Distributivity | |
Distributivity | |
Composition | |
Scalar identity |
Examples:
![]()
Mathematical problems: norms
|
Definition. A norm on vector space is a function , that for any , satisfies the properties:
if and only if x=0.
In ,
In , ,
In , ,
In , ,
In , ,
![]()
Condition number of a mathematical problem
|
With an appropriate formalism now defined (vector space, norm), quantify the idea of “large output change for small input change”
Definition. The problem has absolute condition number
For differentiable, the absolute condition number is norm of the Jacobian
Definition. The problem has relative condition number
![]()
Condition number examples
|
Condition number of the identity mapping, ,
Change in output is as large as that in input: the problem is well conditioned.
Condition number of subtraction: ,
Problem is well conditioned in absolute terms, ill conditioned in relative terms for .
![]()
Mathematical algorithms: errors and accuracy
|
For that cannot be solved analytically, devise an algorithm to furnish an approximate solution.
Assume and , no error in representation of domain, codomain.
Definition. The absolute error of algorithm that approximates the problem is
Definition. The relative error of algorithm that approximates the problem is
Definition. An algorithm is accurate if there exists finite such that
![]()
Approximation sequence convergence
|
Let be a sequence of approximations of ,
Recall definition of limit: , such that for ,
Difficulty: is not known! (that's the whole point of a numerical algorithm that constructs approximations of )
Two approaches:
Adopt Cauchy sequence criterion: , such that for , . This means successive terms are getting closer to one another. Most often . In complete metric spaces (, ) Cauchy sequences converge.
Estimate approximation convergence through residual. For mathematical problem , formulate . The residual at step of the approximation sequence is . Estimate convergence in terms of , .
![]()
Rate of convergence
|
Practical computation is concerned not only with accuracy, but also with minimizing computational effort.
Definition. converges to with rate and order if
(1) |
The above definition requires knowledge of the exact solution . Replace with a Cauchy-type definition
are known as linear, quadratic, cubic convergence, respectively.