CS 351/ IT 351 Modeling and Simulation Technologies Errors In Models Dr. Jim Holten.

Slides:



Advertisements
Similar presentations
Roundoff and truncation errors
Advertisements

2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Fixed Point Numbers The binary integer arithmetic you are used to is known by the more general term of Fixed Point arithmetic. Fixed Point means that we.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Floating-point Numbers.
Today’s class Romberg integration Gauss quadrature Numerical Methods
Floating Point Representation in Computers Floating Point Numbers - What are they? Floating Point Representation Floating Point Operations Where Things.
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Round-Off and Truncation Errors
1 CSE1301 Computer Programming Lecture 30: Real Number Representation.
Lecture 2: Numerical Differentiation. Derivative as a gradient
Number Systems Standard positional representation of numbers:
1  2004 Morgan Kaufmann Publishers Chapter Three.
CSE 378 Floating-point1 How to represent real numbers In decimal scientific notation –sign –fraction –base (i.e., 10) to some power Most of the time, usual.
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Computer Science A 14: 3/4. Computing with numbers - Precision - Representation - Computing with numbers - Example.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
IEEE Floating Point Numbers Overview Noah Mendelsohn Tufts University Web: COMP.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 31.
Floating Point Computation
Simple Data Type Representation and conversion of numbers
Numerical Computations in Linear Algebra. Mathematically posed problems that are to be solved, or whose solution is to be confirmed on a digital computer.
Computer Organization and Architecture Computer Arithmetic Chapter 9.
Computer Arithmetic Nizamettin AYDIN
Computer Arithmetic. Instruction Formats Layout of bits in an instruction Includes opcode Includes (implicit or explicit) operand(s) Usually more than.
Error: Finding Creative ways to Screw Up CS 170: Computing for the Sciences and Mathematics.
CEN 316 Computer Organization and Design Computer Arithmetic Floating Point Dr. Mansour AL Zuair.
IT253: Computer Organization
MATH 685/CSI 700 Lecture Notes Lecture 1. Intro to Scientific Computing.
Computing Systems Basic arithmetic for computers.
College of Engineering Representing Numbers in a Computer Section B, Spring 2003 COE1361: Computing for Engineers COE1361: Computing for Engineers 1 COE1361:
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
Data Representation in Computer Systems
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
Round-off Errors.
Slide 1 © 2002 McGraw-Hill Australia, PPTs t/a Introductory Mathematics & Statistics for Business 4e by John S. Croucher 1 n Learning Objectives –Identify.
Round-off Errors and Computer Arithmetic. The arithmetic performed by a calculator or computer is different from the arithmetic in algebra and calculus.
Floating Point Arithmetic
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 3.
Computer Arithmetic Floating Point. We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large.
CS 61C L3.2.1 Floating Point 1 (1) K. Meinz, Summer 2004 © UCB CS61C : Machine Structures Lecture Floating Point Kurt Meinz inst.eecs.berkeley.edu/~cs61c.
CDA 3101 Fall 2013 Introduction to Computer Organization
CS1Q Computer Systems Lecture 2 Simon Gay. Lecture 2CS1Q Computer Systems - Simon Gay2 Binary Numbers We’ll look at some details of the representation.
Binary Arithmetic.
CS 351/ IT 351 Modeling and Simulation Technologies Review ( ) Dr. Jim Holten.
순천향대학교 정보기술공학부 이 상 정 1 3. Arithmetic for Computers.
10/7/2004Comp 120 Fall October 7 Read 5.1 through 5.3 Register! Questions? Chapter 4 – Floating Point.
ESO 208A/ESO 218 LECTURE 2 JULY 31, ERRORS MODELING OUTPUTS QUANTIFICATION TRUE VALUE APPROXIMATE VALUE.
Numerical Analysis CC413 Propagation of Errors. 2 In numerical methods, the calculations are not made with exact numbers. How do these inaccuracies propagate.
+Addition – like terms -all variables and exponents must match. – add coefficients.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
Dr. Clincy Professor of CS
Floating Point Math & Representation
CS 232: Computer Architecture II
Computer Organization and ASSEMBLY LANGUAGE
Topic 3d Representation of Real Numbers
Chapter 2 ERROR ANALYSIS
© University of Liverpool
Floating Point Representation
How to represent real numbers
October 17 Chapter 4 – Floating Point Read 5.1 through 5.3 1/16/2019
Floating Point Numbers
Topic 3d Representation of Real Numbers
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

CS 351/ IT 351 Modeling and Simulation Technologies Errors In Models Dr. Jim Holten

CS 351/ IT 351 Errors in Models Sources of Errors Characterizing Errors Using Error Bounds Interpreting Error Implications

CS 351/ IT 351 Sources of Errors Input Values (measurements) Machine Inaccuracies Algorithm Inaccuracies Bad models

CS 351/ IT 351 Measurement Errors Measurement granularity Granularity accuracy ==> Error intervals Types of measurements

CS 351/ IT 351 Machine Errors: Representation Float: 7 decimal places, E+/-38, or subnormal E-45 (fewer digits of precision) Double – 16 decimal places, E +/-308, or subnormal E-324 (fewer digits of precision)

CS 351/ IT 351 Machine Errors: Representation Equality comparisons (does 0.0F == 0.0D?) Overflow (too big an exponent) Underflow (too small an exponent) Mismatch (1.000E19D D = ?)

CS 351/ IT 351 Machine Errors Divide by zero (+/- Inf), or divide zero by zero (NaN) Propagate “bad” values Worst-case scenarios, not seen as errors –Near zero results of add or subtract –Near zero denominator

CS 351/ IT 351 Algorithm Sources of Errors Inaccurate representation of real world Inaccurate representation of ideal world Computational errors

CS 351/ IT 351 Real World to Ideal Model Math Models are Idealistic Real world has many perturbations Statistical estimates are only “best fit” to observed measurements Results in an inaccurate ideal model

CS 351/ IT 351 Ideal Model to Implementation Machine errors in number representations Machine errors in arithmetic calculations Results in even worse implementation model values

CS 351/ IT 351 Computational Errors Numerical calculation to approximate math functions Numerical Integration Numerical differentiation Techniques used determine the error behaviors

CS 351/ IT 351 Controllable Errors Understanding sources and behavior of errors empowers you to control them and predict their effects on the results. Identifying sources and effects of errors allows you to better judge the quality of models.

CS 351/ IT 351 What Gives Bad Models? Wrong equations Wrong numerical methods Details gone awry All irrationally affect results.

CS 351/ IT 351 Characterizing Errors Error Forms (Probability Distributions?) Error propagation effects on error forms Limitations versus needs

CS 351/ IT 351 Error Characterizationss Error probability distributions The normal distribution Zoo of common other distributions Arbitrary distributions Error bounds Generalized error estimation functions Enumerated values and “false negatives”

CS 351/ IT 351 Error Probability Distributions Measurement error characteristics Calculation error characteristics Introduced algorithmic error terms

CS 351/ IT 351 Measurement Error Characteristics Discrete sample on a number line Spacing determines “range” for each measurement point Actual value may be anywhere in that range

CS 351/ IT 351 Calculation Error Characteristics Round-off Divide by near-zero Divide by zero Algorithm inaccuracies

CS 351/ IT 351 Algorithmic Error Characteristics Depends on the algorithms/solvers used Depends on the problem size Depends on inter-submodel data sharing patterns and volume

CS 351/ IT 351 Errors: Normal Distributions Easy to characterize Propagates nicely through linear stages Useless for nonlinearities, special conditions Not always a good fit

CS 351/ IT 351 Errors: Generalized Distributions Not commonly used Easy to represent (histograms into PDFs) Propagate through nonlinear calculations? Awkward: histograms, PDFs, CDFs for each variable

CS 351/ IT 351 Errors: Bounded Not commonly used Easy to represent (+/-error magnitude) Can be propagated through nonlinear calculations Still awkward for some calculations

CS 351/ IT 351 Errors: Propagating a Distribution Highly dependent on the distribution and the calculations being performed. Generally only linear operations give easily predictable algebraic results. Others require piecewise approximations

CS 351/ IT 351 Error Bounds Expected value, +/-error magnitude, or min/max Propagates through calculations? More complex forms may be needed after propagation – bounded piecewise linear distributions

CS 351/ IT 351 Errors: Unhandled Implications Misinterpretation of results Misplaced confidences “Chicken Little”, “The Boy Who Cried 'Wolf'”, and ignored real consequences