Lecture 1 Error Analysis
Lecture 1 Error Analysis
And
Error Analysis
Dr. Umer Farooq Ahmed
Quizzes 30
Assignments 10
Mid Term Exam 20
Final Exam 40
Total 100
Pursued by police
SOLUTION:
Find a model of the blurring process
need to know the blurring function g
Blurring formula/Process:
Inverting the formula we can get rid the blur
Above formula for f is very complicated, and can not be
solved by analytical method.
Then how we solve?
We have to design method/algorithm that solve above model
numerically.
Price 25 45 30 50 35 40 65 75 70
Quantity 118 105 112 100 111 108 95 88 91
sold
Problem Description
Mathematical Model
Solution of Mathematical
Model
Using the Solution
To determine
– The accuracy of numerical results.
To develop
– Stopping criteria for iterative algorithms.
What are the sources of numerical error?
– Numerical errors (also known as procedural error) are
introduced during the process of implementation of a
numerical method.
2!
39
Example of Addition of Base 8
40
Conversion to Base 8
0.14 × 8 = 1.12
0.12 × 8 = 0.96
0.96 × 8 = 7.68
0.68 × 8 = 5.44
0.44 × 8 = etc.
The answer is (0.1075….)8 which is obtained from the integer
parts of the products above.
41
Machine Representation and Arithmetic Errors:
42
Significant Digits
45,
0.046,
7.4220,
5002,
3800
45
Significant Digits
Answer:
45, 2
0.046, 2
7.4220, 5
5002, 4
3800 2
46
Examples of showing the number of significant digits
Solution:
a) For x 2 and h 0.3
f ( 2 0.3) f ( 2)
f ' ( 2)
0.3
f (2.3) f (2)
0.3
7e 0.5( 2.3) 7e 0.5( 2 )
0.3
22.107 19.028
10.263
0.3
Solution
:
b) The exact value f ' ( 2) can be found by using our
of
knowledge of differential calculus.
f ( x ) 7 e 0 .5 x
f ' ( x ) 7 0.5 e 0.5 x
3.5e 0.5 x
So the true value f ' ( 2) is
of f ' ( 2) 3.5e 0.5( 2 )
9.5140
True error is calculated as
Et True Value – Approximate
9.Value
5140 10.263 0.722
Defined as the ratio between the true error, and the true value.
Mathematically
True Error
Relative True Error (t ) =
True Value
as a percentage,
t 0.075888 100% 7.5888%
57
Example
58
Approximate Error
What can be done if true values are not known or are very
difficult to obtain?
Approximate error is defined as the difference between the
present approximation and the previous approximation.
Solution: (cont.)
f (2.3) f (2)
0.3
7e 0.5( 2.3) 7e 0.5( 2 )
0.3
22.107 19.028
10.263
0 .3
b) For x 2 and h 0.15
f (2 0.15) f (2)
f ' ( 2)
0.15
f (2.15) f (2)
0.15
Solution: (cont.)
7e 0.5( 2.15) 7e 0.5( 2 )
0.15
20.50 19.028
9.8800
0.15
c) So the approximate E a is
error,
Ea Present Approximation – Previous
9Approximation
.8800 10.263
0.38300
Solution:
(cont.) Approximate Error
a
Present Approximation
0.38300
0.038765
9.8800
as a
percentage,
a 0.038765 100% 3.8765%
Length: 5 cm ± 0.1 cm
Width: 3 cm ± 0.2 cm