SlideShare a Scribd company logo
3/14/2023 http://numericalmethods.eng.usf.edu 1
Measuring Errors
Major: All Engineering Majors
Authors: Autar Kaw, Luke Snyder
http://numericalmethods.eng.usf.edu
Transforming Numerical Methods Education for STEM
Undergraduates
Measuring Errors
http://numericalmethods.eng.usf.edu
http://numericalmethods.eng.usf.edu
3
Why measure errors?
1) To determine the accuracy of
numerical results.
2) To develop stopping criteria for
iterative algorithms.
http://numericalmethods.eng.usf.edu
4
True Error
 Defined as the difference between the true
value in a calculation and the approximate
value found using a numerical method etc.
True Error = True Value – Approximate Value
http://numericalmethods.eng.usf.edu
5
Example—True Error
The derivative, )
(x
f  of a function )
(x
f can be
approximated by the equation,
h
x
f
h
x
f
x
f
)
(
)
(
)
(
'



If
x
e
x
f 5
.
0
7
)
(  and 3
.
0

h
a) Find the approximate value of )
2
(
'
f
b) True value of )
2
(
'
f
c) True error for part (a)
http://numericalmethods.eng.usf.edu
6
Example (cont.)
Solution:
a) For 2

x and 3
.
0

h
3
.
0
)
2
(
)
3
.
0
2
(
)
2
(
'
f
f
f



3
.
0
)
2
(
)
3
.
2
( f
f 

3
.
0
7
7 )
2
(
5
.
0
)
3
.
2
(
5
.
0
e
e 

3
.
0
028
.
19
107
.
22 
 263
.
10

http://numericalmethods.eng.usf.edu
7
Example (cont.)
Solution:
b) The exact value of )
2
(
'
f can be found by using
our knowledge of differential calculus.
x
e
x
f 5
.
0
7
)
( 
x
e
x
f 5
.
0
5
.
0
7
)
(
' 


x
e 5
.
0
5
.
3

)
2
(
5
.
0
5
.
3
)
2
(
' e
f 
So the true value of )
2
(
'
f is
5140
.
9

True error is calculated as

t
E True Value – Approximate Value
722
.
0
263
.
10
5140
.
9 



http://numericalmethods.eng.usf.edu
8
Relative True Error
 Defined as the ratio between the true
error, and the true value.
Relative True Error ( t
 ) =
True Error
True Value
http://numericalmethods.eng.usf.edu
9
Example—Relative True Error
Following from the previous example for true error,
find the relative true error for x
e
x
f 5
.
0
7
)
(  at )
2
(
'
f
with 3
.
0

h
722
.
0


t
E
From the previous example,
Value
True
Error
True

t
Relative True Error is defined as
5140
.
9
722
.
0

 075888
.
0


as a percentage,
%
100
075888
.
0 


t %
5888
.
7


http://numericalmethods.eng.usf.edu
10
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.
Approximate Error ( a
E ) = Present Approximation – Previous Approximation
http://numericalmethods.eng.usf.edu
11
Example—Approximate Error
For x
e
x
f 5
.
0
7
)
(  at 2

x find the following,
a) )
2
(
f  using 3
.
0

h
b) )
2
(
f  using 15
.
0

h
c) approximate error for the value of )
2
(
f  for part b)
Solution:
a) For
h
x
f
h
x
f
x
f
)
(
)
(
)
(
'



2

x and 3
.
0

h
3
.
0
)
2
(
)
3
.
0
2
(
)
2
(
'
f
f
f



http://numericalmethods.eng.usf.edu
12
Example (cont.)
3
.
0
)
2
(
)
3
.
2
( f
f 

Solution: (cont.)
3
.
0
7
7 )
2
(
5
.
0
)
3
.
2
(
5
.
0
e
e 

3
.
0
028
.
19
107
.
22 
 263
.
10

b) For 2

x and 15
.
0

h
15
.
0
)
2
(
)
15
.
0
2
(
)
2
(
' f
f
f



15
.
0
)
2
(
)
15
.
2
( f
f 

http://numericalmethods.eng.usf.edu
13
Example (cont.)
Solution: (cont.)
15
.
0
7
7 )
2
(
5
.
0
)
15
.
2
(
5
.
0
e
e 

15
.
0
028
.
19
50
.
20 
 8800
.
9

c) So the approximate error, a
E is

a
E Present Approximation – Previous Approximation
263
.
10
8800
.
9 

38300
.
0


http://numericalmethods.eng.usf.edu
14
Relative Approximate Error
 Defined as the ratio between the
approximate error and the present
approximation.
Relative Approximate Error (
Approximate Error
Present Approximation
a
 ) =
http://numericalmethods.eng.usf.edu
15
Example—Relative Approximate Error
For
x
e
x
f 5
.
0
7
)
(  at 2

x , find the relative approximate
error using values from 3
.
0

h and 15
.
0

h
Solution:
From Example 3, the approximate value of 263
.
10
)
2
( 

f
using 3
.
0

h and 8800
.
9
)
2
( 

f using 15
.
0

h

a
E Present Approximation – Previous Approximation
263
.
10
8800
.
9 

38300
.
0


http://numericalmethods.eng.usf.edu
16
Example (cont.)
Solution: (cont.)

a
Approximate Error
Present Approximation
8800
.
9
38300
.
0

 038765
.
0


as a percentage,
%
8765
.
3
%
100
038765
.
0 




a
Absolute relative approximate errors may also need to
be calculated,
|
038765
.
0
| 

a %
8765
.
3
or
038765
.
0

http://numericalmethods.eng.usf.edu
17
How is Absolute Relative Error used as a
stopping criterion?
If s
a 

 |
| where s
 is a pre-specified tolerance, then
no further iterations are necessary and the process is
stopped.
If at least m significant digits are required to be
correct in the final answer, then
%
10
5
.
0
|
| 2 m
a




http://numericalmethods.eng.usf.edu
18
Table of Values
For
x
e
x
f 5
.
0
7
)
(  at 2

x with varying step size, h
0.3 10.263 N/A 0
0.15 9.8800 3.877% 1
0.10 9.7558 1.273% 1
0.01 9.5378 2.285% 1
0.001 9.5164 0.2249% 2
h )
2
(
f  a
 m
Additional Resources
For all resources on this topic such as digital audiovisual
lectures, primers, textbook chapters, multiple-choice
tests, worksheets in MATLAB, MATHEMATICA, MathCad
and MAPLE, blogs, related physical problems, please
visit
http://numericalmethods.eng.usf.edu/topics/measuring
_errors.html
THE END
http://numericalmethods.eng.usf.edu

More Related Content

Similar to NA 2.ppt

Ijciet 10 02_085
Ijciet 10 02_085Ijciet 10 02_085
Ijciet 10 02_085
IAEME Publication
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
infantsuk
 
Taller parcial 2
Taller parcial 2 Taller parcial 2
Taller parcial 2
XAVIERALEXANDERSALAZ
 
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling TechniquesNG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling TechniquesChris Francis
 
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGAScientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Ahmed Gamal Abdel Gawad
 
Lecture 6 operators
Lecture 6   operatorsLecture 6   operators
Lecture 6 operators
eShikshak
 
Litvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an OverviewLitvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an Overview
Alexander Litvinenko
 
Assessing the Reliability of a Human Estimator
Assessing the Reliability of a Human EstimatorAssessing the Reliability of a Human Estimator
Assessing the Reliability of a Human Estimator
Tim Menzies
 
Computational Assignment Help
Computational Assignment HelpComputational Assignment Help
Computational Assignment Help
Programming Homework Help
 
Lecture1a data types
Lecture1a data typesLecture1a data types
Lecture1a data types
mbadhi barnabas
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
Bisection method
Bisection method Bisection method
Bisection method
DhaivikGowda
 
Laboratory 7
Laboratory 7Laboratory 7
Laboratory 7
Shafiul Omam
 
Time and Space Complexity
Time and Space ComplexityTime and Space Complexity
Time and Space Complexity
Ashutosh Satapathy
 
25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuousJyoti Parange
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
rosemarybdodson23141
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
ahmed8651
 

Similar to NA 2.ppt (20)

Ijciet 10 02_085
Ijciet 10 02_085Ijciet 10 02_085
Ijciet 10 02_085
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
 
Integration
IntegrationIntegration
Integration
 
Taller parcial 2
Taller parcial 2 Taller parcial 2
Taller parcial 2
 
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling TechniquesNG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
NG3S903 - Electronic Systems Engineering - Fault Modelling Techniques
 
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGAScientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
Scientific Computing II Numerical Tools & Algorithms - CEI40 - AGA
 
Lecture 6 operators
Lecture 6   operatorsLecture 6   operators
Lecture 6 operators
 
1406
14061406
1406
 
Litvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an OverviewLitvinenko, Uncertainty Quantification - an Overview
Litvinenko, Uncertainty Quantification - an Overview
 
Assessing the Reliability of a Human Estimator
Assessing the Reliability of a Human EstimatorAssessing the Reliability of a Human Estimator
Assessing the Reliability of a Human Estimator
 
Computational Assignment Help
Computational Assignment HelpComputational Assignment Help
Computational Assignment Help
 
Lecture1a data types
Lecture1a data typesLecture1a data types
Lecture1a data types
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
Bisection method
Bisection method Bisection method
Bisection method
 
Laboratory 7
Laboratory 7Laboratory 7
Laboratory 7
 
Time and Space Complexity
Time and Space ComplexityTime and Space Complexity
Time and Space Complexity
 
25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous25285 mws gen_int_ppt_trapcontinuous
25285 mws gen_int_ppt_trapcontinuous
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
 

Recently uploaded

Leaf Initiation, Growth and Differentiation.pdf
Leaf Initiation, Growth and Differentiation.pdfLeaf Initiation, Growth and Differentiation.pdf
Leaf Initiation, Growth and Differentiation.pdf
RenuJangid3
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Sérgio Sacani
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
silvermistyshot
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
AlaminAfendy1
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
University of Maribor
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Erdal Coalmaker
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
sonaliswain16
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
yusufzako14
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
sanjana502982
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
IqrimaNabilatulhusni
 
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdfMudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
frank0071
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
moosaasad1975
 
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdfDMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
fafyfskhan251kmf
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
Areesha Ahmad
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
muralinath2
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
SAMIR PANDA
 
GBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram StainingGBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram Staining
Areesha Ahmad
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Ana Luísa Pinho
 

Recently uploaded (20)

Leaf Initiation, Growth and Differentiation.pdf
Leaf Initiation, Growth and Differentiation.pdfLeaf Initiation, Growth and Differentiation.pdf
Leaf Initiation, Growth and Differentiation.pdf
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
 
Lateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensiveLateral Ventricles.pdf very easy good diagrams comprehensive
Lateral Ventricles.pdf very easy good diagrams comprehensive
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
 
role of pramana in research.pptx in science
role of pramana in research.pptx in sciencerole of pramana in research.pptx in science
role of pramana in research.pptx in science
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
 
general properties of oerganologametal.ppt
general properties of oerganologametal.pptgeneral properties of oerganologametal.ppt
general properties of oerganologametal.ppt
 
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdfMudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
Mudde & Rovira Kaltwasser. - Populism - a very short introduction [2017].pdf
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
 
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdfDMARDs Pharmacolgy Pharm D 5th Semester.pdf
DMARDs Pharmacolgy Pharm D 5th Semester.pdf
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
GBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture MediaGBSN - Microbiology (Lab 4) Culture Media
GBSN - Microbiology (Lab 4) Culture Media
 
Hemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptxHemostasis_importance& clinical significance.pptx
Hemostasis_importance& clinical significance.pptx
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
 
GBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram StainingGBSN- Microbiology (Lab 3) Gram Staining
GBSN- Microbiology (Lab 3) Gram Staining
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
 

NA 2.ppt