Ch2.1.1 Accuracy: Covered in these slides
Ch2.1.2 Precision: Covered in next set of slides
How far do you live from campus?
(1 mile = 4 blocks)
Answer depends on who needs to know, what the context is, etc
How numbers are represented can be similar to choosing a measuring device.
\[ \begin{align*} x*x = 64 & \implies x = 8\\ y + x = 27 & \implies y = 19 \\ z + x + x = 30 & \implies z = 14 \\ \\ \therefore x + z + y = 41 \\ \end{align*} \]
Accuracy measures how close \( x' \) is to true value \( x \).
Absolute error (has units):
\[ \epsilon_A = |x - x'| \]
\[ \epsilon_R = \left| \frac{x - x'}{x} \right| \]
\[ \epsilon_A = |x - x'| \]
\[ \epsilon_R = \left| \frac{x - x'}{x} \right| \]
x <- 0.1
y <- 1.1
(E_A <- abs(x-y))
[1] 1
(E_R<-abs(x-y)/abs(x))
[1] 10
x <- 93205678
y <- 93205679
(E_A <- abs(x-y))
[1] 1
(E_R<-abs(x-y)/abs(x))
[1] 1.072896e-08
x <- 40.1384
y <- 42.1277
(E_A <- abs(x-y))
[1] 1.9893
(E_R<-abs(x-y)/abs(x))
[1] 0.04956102
options(digits = 16)
pi
[1] 3.141592653589793