L1 - Error Analysis
L1 - Error Analysis
L1 - Error Analysis
Mathematical model
A mathematical model can be broadly defined
as a formulation or equation that expresses
the essential features of a physical system or
process in mathematical terms.
5/20/2015
L1 - Error Analysis
Numerical Methods
Numerical methods are scientific in the sense that they
represent systematic techniques for solving mathematical
problems.
IMPORTANT They are approximations and hence involve errors
Out of several methods available choice of numerical
methods for solving a problem reduces to one of cost and
accuracy.
5/20/2015
L1 - Error Analysis
5/20/2015
L1 - Error Analysis
Lecture contents
1. Numerical Methods and Numerical Analysis
When they are methods of choice, objective
3. Approximation
4. Concept of convergence
Cauchy sequence
4. Error Type
5. Error Analysis
5/20/2015
Forward, Backward
Error propagation in a function
Condition number of a problem Cp
Norms of a vector
Round off error, Machine precision unit (u)
Condition number of an algorithm Ca
Floating Point error
Total Relative error
L1 - Error Analysis
Significant Figures
Basic rules for significant digits:1) All nonzero digits are significant.
2) All zeroes between significant
digits are significant.
3) All zeroes which are both
(a) to the right of the decimal point
and,
(b) to the right of all non-zero
significant digits are themselves
significant.
5/20/2015
L1 - Error Analysis
Example:
Number
1.234
0.001
0.100
0.00100
100
100.0
1.23
1.230
Significant
Digit
4
1
3
3
1
4
3
4
1.
L1 - Error Analysis
5/20/2015
L1 - Error Analysis
Numerical Analysis
Mathematical analysis conducted to determine whether the
computational scheme converges or not is called numerical
analysis.
Involves
convergence analysis and
Error Analysis
Problem - among the options available to solve a
problem, what is a numerical method?
Answer - The computational scheme that converges to
the true solution can be termed as a numerical
method for computing the square root of a number.
5/20/2015
L1 - Error Analysis
L1 - Error Analysis
10
5/20/2015
L1 - Error Analysis
11
Error
Error = True value approximation
3 basic kinds
1. Data and Model Error
2. Round off/ Chop off
3. Truncation
5/20/2015
L1 - Error Analysis
12
Related to
Model error
Data error
due to approximation of
values such as value of g
as 9.81 (may actually be
9.8088)
accuracy
refers to how closely a
computed or measured value
agrees with the true value.
L1 - Error Analysis
13
Truncation
Round-off
Description
Result when approximations are used to
represent exact mathematical procedures
Result when numbers having limited significant
figures are used to represent exact numbers.
E.g. value of g is used as 9.81 (may actually
be 9.8088)
L1 - Error Analysis
14
Note on value of g
Although the precise strength of Earth's gravity varies
depending on location, the nominal "average" value at
the Earth's surface, known as standard gravity is, by
definition, 9.80665 m/s2
Parameters affecting the apparent or actual strength of
Earth's gravity include latitude, altitude, and the local
topography and geology.
Gravity decreases with altitude, since greater altitude
means greater distance from the Earth's centre
5/20/2015
L1 - Error Analysis
15
5/20/2015
L1 - Error Analysis
16
For more details on these series revise MTH 101, Thomas and Finney
5/20/2015
L1 - Error Analysis
17
5/20/2015
L1 - Error Analysis
18
5/20/2015
L1 - Error Analysis
19
5/20/2015
L1 - Error Analysis
20
Mantissa normalization
Mantissa is usually normalized if it has leading zero digits.
The consequence of normalization is that the absolute value
of m is limited. That is,
I/b < = m < 1
5/20/2015
L1 - Error Analysis
21
Example
for a base-l0 system, m would range between 0. I and I,
for a base-2 system, between 0.5 and I.
Important: Normalization introduces a source of error
why? because the mantissa holds only a finite number of
significant figures.
Thus, a round-off error is introduced.
Self Study:
Derivation of machine precision unit (u)
Calculation of Backward error
5/20/2015
L1 - Error Analysis
22
Error Analysis
CONTENT
Forward, Backward Error Analysis
Error propagation in a function
Condition number of a problem Cp
Condition number of an algorithm Ca
Total Error
5/20/2015
L1 - Error Analysis
23
5/20/2015
L1 - Error Analysis
24
5/20/2015
L1 - Error Analysis
25
26
5/20/2015
L1 - Error Analysis
27
5/20/2015
L1 - Error Analysis
28
5/20/2015
L1 - Error Analysis
29
L1 - Error Analysis
30
A graphical depiction of the trade-off between round-off and truncation error that
sometimes comes into play in the course of a numerical method. The point of diminishing
returns is shown, where round-off error begins to negate the benefits of step-size
reduction.
5/20/2015
L1 - Error Analysis
31
5/20/2015
L1 - Error Analysis
32