Professional Documents
Culture Documents
CHEMENG 2016
Professional Practice II
3 4
NOT Precise but
Accurate NOT
NOT Accurate
Precise
Dieck (1992)
Types of Uncertainty
Accuracy vs Precision
1 2
Accurate ? x Accurate ?
AND xx x
xx x x AND
Precise x
x NOT Precise
3 4 xx
x x xx x Precise
NOT Accurate ? x
x
AND AND
NOT Precise x NOT Accurate ?
Types of Uncertainty
Accuracy vs Precision
• Accuracy: a measure of how close an experimental result is
to the “true” (or published or accepted) value
Error
• Examples:
Noise (random noise)
Careless measurements
Low resolution instruments
Types of Uncertainty
Systematic error
• cause the measured result to deviate by a fixed amount in one
direction from the correct value.
• The distribution of multiple measurements with systematic error
contributions will be centred some fixed value away from the
correct value.
• Examples:
Uncalibrated instruments
Faulty instruments
Careless measurements
Types of Uncertainty
Random error vs Systematic error
• Sometimes difficult to classify
• Is error truly random or a series of compounding systematic
errors ?
• Impossible to eliminate all random errors
• Always possible to reduce random errors
• Can handle random errors using statistics
• Role of experimenter is to eliminate systematic error
• Instrument reproducibility
• Experimenter skill
Uncertainty Estimate
• The uncertainty (x) in a single measurement may be
estimated using engineering judgment
• Sometimes based on a “worst-case scenario”
• Necessarily subjective
• But how do uncertainties in multiple measurement steps
combine?
Example – Uncertainty Estimate
The CO concentration in a flue gas is measured to be 300 ppm
using a single measurement.
The needle on the CO analyser is observed to be fluctuating
between 295 and 305. The finest division on the scale is 5 ppm.
Checking the instrument records, you find that the calibration
certificate for the analyser is still valid. The instrument engineer
responsible indicates that the analyser has been calibrated against
a gas mixture containing 700 5 ppm CO.
The manual for the analyser indicates that the precision at this
range is 10 %.
Example
• Combined uncertainty = 52 22 302 31 ppm
δx Absolute Uncertainty
δx
Relative Uncertainty [in %]
x0
Example: H 129 1 mm
H 1 mm
δH 1
0.008 0.8%
H 0 129
Measurement Repetition
How can uncertainty be reduced?
• Reduce uncertainty by repetition of measurement
Statistics
Gaussian Distribution
is common
0
0
x x
Frequency
0
x
0
x
x x
x x
2
x i
Mean: x i
Std. Deviation:
n n 1
x x k
Probable Errors
Frequency
x k x k
0
x x
68% : x xo x k 1
95% : x 2 x o x 2 k2
99.7% : x 3 x o x 3 k 3
Graphical Presentation of Experimental Data
t = 10 min
Data plotted with mean (points) and
std. dev. (error bars)
Propagation of Uncertainty
• Functions of a single variable
z f ( x) δx
x0
0
x
dz z
For z f(x) : f (x) z f (x)x
dx x
Result for Some Common Functions
(a) Powers: z Kx n
(K const; n const)
dz n 1 z
nKx
dx x
δz nKx n 1δx
Kx n z
z n x n x
x x
δz δx
Relative n
Uncertainty z x
Result for Some Common Functions
(b) Logarithmic and Exponential Functions
z log x ze x
dz 1 dz
e x
dx x dx
z e x
x
1
δz δx zx
x
z
x
z
Functions of Two or More Variables
(a) Sum of two or more variables: z = x + y + ...
z = (z0 ± z) = (x0 ± x) + (y0 ± y) + ...
z0 = x0 + y0 + ...
5±1
+
3±1
=
8±2
Difference of Two Variables
5±1
-
3±1
=
2±2
Functions of two or more variables
Addition and Subtraction
• But, for error sources that are independent, it is improbable
that the uncertainties are additive
f f
z x y
x y
Result for Common Functions
(a) Product of Two Variables: z = xy
z z
z xy : y ; x
x y
z yx xy
Divide through by z = xy
δz δx δy
Relative Uncertainty
z x y
Result for Common Functions
(b) Quotient of Two Variables: z = x/y
z 1 z x
; 2
x y y y
1 x
δz δx 2 δy
y y
x δx x δy
y x y y
δx δy δz δx δy
δz z z
x y z x y
Result for Common Functions
(c) Powers: zx y m n
z m 1 n z
mx y ; nx m y n 1
x y
δz mx m 1 y n δx nx m y n 1 δy
δx m n δy
mx y nx y
m n
x y
δx δy δz δx δy
δz mz nz m n
x y z x y
General Functions of Two variables
Independent error sources
2 2
f f
z f (x, y) : z x y
2 2
x y
Examples
(a) z = xy or z = x/y (b) z = xmyn
2 2 2 2
δz δx δy δz δx δy
m n
z x y z x y
Exercise
• The density of gas can be “measured” by directly measuring
pressure and temperature, and assuming ideal gas law:
pM
RT
• Use the following data to determine density of air and its
uncertainty:
kg m3 .kPa
M 28.96 ; R 8.314
kmol kmol.K
Exercise - Solution
pM
• Gas density: f (p, T)
RT
• Assume errors in p and T are independent:
2 2
f f f M
p
2
T 2 ;
p RT
p T
f pM
2 2
M pM T RT 2
p 2
2
T 2
RT RT
2 2
2
2
p T
p T 2
2
p T p T
Exercise – Solution
pM (125.4 kPa)(28.96 kg/kmol) kg
3
1.155 3
RT (8.314 m kPa/kmol.K)(378.2 K) m
2 2 2 2
p T 0.2 0.4
0.00191
p T 125.4 378.2
kg
1.155 0.00191 0.00224 3
m
kg
Result : 1.155 0.002 3 Relative Error :
m
kg
or: (1155 2) 10 3 0.2%
m3
Propagation of Probable Errors
• Probable Errors
0
0
x x
General Functions of Two Variables
2 2
z 2 z 2
z f(x,y): sz sx s y
x y
xi x
2
x
x i
sx nx
nx 1
y
y y
2 i
i
y
sy ny
n y 1
Results for Common Functions
(a) Sum and
(a) Sum Difference
and DifferenceofofTwo
Two Variables:
Variables:
z x y : s z s 2x s 2y
z x y : s z s 2x s 2y
• Confidence intervals
Line of best-fit using linear regression
Y = ax + b
• Have n pairs of data, (xi, yi), and we seek to fit a straight line of
the form: Y = ax + b
• For each xi (assumed error free), we can predict a value of Yi
(according to Y = ax + b) such that for each value of xi we have an
error: ei = Yi - yi
Line of best-fit using linear regression
• The line of best-fit is determined by evaluating a and b so as to
minimise the sum of the square of the errors, E
n n n
E e Yi yi axi b yi
2 2 2
i
i 1 i 1 i 1
n xi yi xi yi
Results: a
n x xi
2 2
i
b y ax
1 1
Where: x xi and y yi
n n
Line of best-fit using linear regression
• A measure of how well the best-fit line represents the data is
called the Standard error of estimate, Sy.x, given by:
y Y
2
S y. x i i
n2
R 1
2
n y yi
2 2
i
n 1 ( xo x )2
yo (axo b) S y . x t / 2,n 2
n xi nx
2 2
P
1 2
100
P = % Confidence level
= Significance
= Degree of freedom
Line of best-fit using linear regression
Example: C A C A0 exp( kt ) or ln C A ln C A0 kt
Best-fit line
95% confidence
limits
Filled green circles represent the experimental data and the line of
best fit is shown with the solid line. The dashed lines mark the bounds
of the 95% confidence interval on predictions for the linear model.
Line of best-fit using linear regression
• Similarly, possible to estimate Confidence intervals for the
regression constants a and b.
• The two-sided (1-) confidence interval for the slope, a, is:
S y. x t / 2,n 2
a
x 2
i nx 2
xi
2
1
b S y . x t / 2,n 2 2
n n xi nx
2 2
References & Further Reading
• Baird, D.C. (1962). “Experimentation: An Introduction to
Measurement Theory and Experiment Design,” Prentice-Hall.
• Cook, N.H. & Rabinowicz, E. (1963). “Physical Measurement and
Analysis,” Adison-Wesley.
• Dieck, R.H. (1992). “Measurement Uncertainty: Methods &
Applications,” Instrument Society of America
• Harrison, D.M. (2001). “Error Analysis in Experimental Physics.”
http://www.upscale.utoronto.ca/PVB/Harrison/ErrorAnalysis/Introd
uction.html
• Wheeler, A.J. & Ganji, A.R. (2010). “Introduction to engineering
experimentation,” 3rd Edition, Pearson Higher Education.