Scalable Tissue Imaging and Modeling (STIM) Laboratory
Department of Electrical and Computer Engineering
Cullen College of Engineering
University of Houston
David Mayerich
STIM Laboratory, University of Houston
David Mayerich
STIM Laboratory, University of Houston
Define error behavior using Big-O notation and error terms:
Bound differences between errors as parameters change:
We can calculate how error bounds change without precisely knowing \(\epsilon_1\) or \(\epsilon_2\)
More precise values for \(\epsilon\) require approximating \(C\) in some way:
theoretically using features of the function
practically by comparing the result to some ground truth
where
Consider the Lagrange remainder in a finite Maclaurin series expansion:
David Mayerich
STIM Laboratory, University of Houston
What is \(\epsilon\) for \(e^x\) using a 5th-order series?
where \(z \in [0, x]\)
y = exp(1.0);y = exp(0.5);Absolute error is the magnitude of the difference between true and calculated values:
David Mayerich
STIM Laboratory, University of Houston
How do we get the true value \(t(x)\)?
Once again, consider \(e^x\) as a 5th-order Maclaurin series:
float exp5(x){
float ex = 1; // initialize with e^0
float xp = 1; // initialize with x^0
float fac = 1; // initialize 0!
for(int i = 1; i <= 5; i++){
xp *= x;
fac *= i;
ex += xp / fac;
}
return ex;
}exp5(1.0f) = 2.716667
NASA has \(e^x\) out to 2M digits:
\(e^x \approx 2.718281828459045235\cdots\)
analytical result
An error is a deviation of a result from reality
a systematic error is introduced by bias - this can often be correlated
a random error is a product of uncertainty and impossible to correct
random errors can often be controlled or bounded
Absolute vs. relative error:
David Mayerich
STIM Laboratory, University of Houston
Consider the following true and calculated values:
David Mayerich
STIM Laboratory, University of Houston
Scientific and engineering applications are less sensitive to small errors in large values
\(\pm 1\) ton is a lot for a truck but not for a cargo ship
Relative error can compare values at widely varying scales
Relative error is often expressed as a percentage error: \(\epsilon_r \times 100\)
Most computing systems are designed to minimize relative error
Undefined when the \(t(x) = 0\), which can be resolved in a few ways:
regularization
specify a value
David Mayerich
STIM Laboratory, University of Houston
Relative error requires a ratio scale with a natural zero
Ratios have to make sense
\(2x\): there is twice some quantity
\(\frac{1}{3}x\): there is one third of something
The zero indicates that there is zero of something
Celsius
\(t(x)=10.0^\circ \text{C}\)
\(c(x)=11.0^\circ\text{C}\)
\(\epsilon_a = 1^\circ\text{F}\)
\(\epsilon_r = 0.1 \ (10\%)\)
Kelvin
\(t(x)=283.0 \text{K}\)
\(c(x)=284.0\text{K}\)
\(\epsilon_a=1\text{K}\)
\(\epsilon_r=0.0035 \ (0.35\%)\)
Fahrenheit
\(t(x)=50.0^\circ \text{F}\)
\(c(x)=51.8^\circ\text{F}\)
\(\epsilon_a = 1.8^\circ\text{F}\)
\(\epsilon_r = 0.036 \ (3.6\%)\)