Professional Documents
Culture Documents
Error Analysis
Error Analysis
Lecture Notes
CHAPTER 3
MEASUREMENT AND ERROR
Our discussion in this chapter will consider the analysis of data to determine errors, precision
and general validity of experimental measurements. The experimentalist should always know
the validity of data. The automobile test engineer must know the accuracy of the speedometer
and gas gage in order to express the fuel-economy performance with confidence. A nuclear
engineer must know the accuracy and precision of many instruments just to make some
simple radioactivity measurements with confidence. In order to specify the performance of
an amplifier, an electrical engineer must know the accuracy with which the appropriate
measurements of voltage, distortion, etc. have been conducted.
Errors will creep into all experiments regardless of the care which is exerted. Some of these
errors are of random nature, and some will be due to gross blunders on the part of the
experimenter.
Types of errors: At this point we may mention some of the types of errors that may cause
uncertainty in an experimental measurement:
- First: there can always be gross blunders in apparatus or instrument construction
which may invalidate the data. Hopefully, the careful experimenter will be able
to eliminate most of these errors.
- Second, there may be certain fixed errors which will cause repeated readings to
be in error by roughly the same amount but for some unknown reason. The fixed
errors are sometimes called the systematic errors.
- Third, there are the random errors, which may be caused by personal
fluctuations, random electronic fluctuations in the instrument, various influences
Chapter 3: Measurement and error 3
Example 3.1:
Error Analysis 4
A voltage V is read using the Voltmeter described above. The full scale range of the
instrument is 220 Volts. The reading indicates 50 Volts. Determine the absolute and the
relative error of the reading.
Solution:
The accuracy of the Voltmeter is 2% of the full scale range, then
2
d 220 = 4.4 Volts
100
The absolute error is then 4.4 Volts. The reading of the Voltmeter can be then expressed as
V 50 4.4 Volts
By tacking the worst possible variations in the reading, we could mention that
Vmax 54.4 Volts
Notation: we note the absolute error as wV and the relative error of a reading as wV (%) .
Example 3.2
Consider the calculation of electric power from
P VI
Chapter 3: Measurement and error 5
V 100V 2V
I 10A 0.2A
the nominal value of the power is 100 10 1000 Watts. By taking the worst possible
variations in voltage and current, we could calculate
Thus using this method of calculation, the uncertainty in the power is +4.04 % and –3.96 %.
It is quite unlikely that the power would be in error by these amounts because the voltmeter
variations would not correspond with the ammeter variations. When the voltmeter reads an
extreme “high”, there is no reason that the ammeter must also read an extreme “high” at that
particular instant; indeed the combination is most unlikely.
R R( x1 , x2 , x3 ,..., xn )
wR w1 w2 w3 ... wn
x1 x 2 3 x
nx
2 1/ 2
wR ai wi
R xi
Example 3.3
Consider the same data as in Example 3.2. Calculate the uncertainty to which the power is
calculated using the Method of Kline and McClintock.
Solution:
P VI
1/ 2
wP wI wV
2 2
P I V
1/ 2
0.2 2 2 2
0.0004 0.0004 0.028 2.8%
10 100
wP
It should be noted here that the result is directly a percent, since we are calculating . If we
P
want to determine the absolute uncertainty we only have to write that
wP 0.028 P 0.028 1000 28 Watts
R
ai
xi
The uncertainty in the result may then be expressed as
1/ 2
2
R 2
wR w
xi
i
(a w )
i i
2 1/ 2
V2
dividing by P gives
R
1/ 2
wP wV w
2 2
4 R
P V R
with numerical values
wP
4(0.01) 2 (0.01) 2 2.236%
P
P P
I V
V I
and after some algebraic manipulation we get
1/ 2
wP wV wI
2 2
P V I
Inserting the numerical values of uncertainties yields
wP
(0.01) 2 (0.01) 2 1.414%
P
The second method of power determination provides considerably less uncertainty than the
first method, even though the primary uncertainties in each quantity are the same. In this
example the utility of the uncertainty analysis is that it affords the experimenter a basis for
selection of a measurement method to produce a result with less uncertainty.
where
C = empirical coefficient
A = flow area
p1 and p2 = pressure in (1) and (2) respectively
T1= Temperature
R= constant
Calculate the percent uncertainty in the air flow rate for the following conditions:
C 0.92 0.005
p1 25 0.5 pa
T1 70 2 C
Chapter 3: Measurement and error 9
A 1 0.001cm 2
Solution: In this example the flow rates a function of several variables, each subject to an
uncertainty
f (C, A, p1 , p, T1 )
thus, we form the derivatives
1/ 2
2 gp1
A p
C RT1
1/ 2
2 gp1
C p
A RT1
1/ 2
2g
0.5CA p p11 / 2
p1 RT1
1/ 2
2 gp1
0.5CA p1 / 2
p RT1
2 gp1
0.5CA p T13 / 2
T1 R
The uncertainty in the flow rate may be calculated by assembling these derivatives as
w 2 2 2 2 2 1/ 2
w w wP w w
C A 14 1 1 p 1 T1
C A 4 p 4 T
p1 1
Inserting numerical values of uncertainties yields
1/ 2
w 0.005 2 0.001 2 0.5
2 2
1.4 2 1 2
14 1 4
0.92 1 25
4
70
29.5 106 1.0 106 1.0 104 3.19 106 2.0 104
1/ 2
= 1.82 %
Problem 1
A certain resistor draws 110.2 V and 5.3 A. The uncertainties in the measurements are
0.2 V and 0.06 A, respectively. Calculate the power dissipated in the resistor and the
uncertainty in the power.
Problem 2
The resistance of a certain size of copper wire is given as
R R0 [1 (T 20)]
resistance, and the temperature of the wire is T 30 1C . Calculate the resistance of the
wire and its uncertainty.
Problem 3
The steady state pressure-flow-current characteristics for an electrohydraulic servovalve can
be approximated by the following equation
Ps Pm
Qm K v I
Problem 4
When two parallel plates of area A are placed at a distance d from each other, the capacitance
C according to Faraday’s law is defined by
r0 A
C
d
2- The actual nominal value (at 25 ºC) of C is 1 F. Suppose that the variation of
plate’s lengths with temperature is 0.02%/ºC. What would be the value of C at
50ºC.?
Chapter 3: Measurement and error 11
When a set of readings of an instrument is taken, the individual readings will vary somewhat
from each other, and the experimenter may be concerned with the mean of the reading. If
each reading is denoted by xi, and there are n readings, the arithmetic mean is given by
n
1
x
n
xi
i 1
n n
1 1
di
n
d i n ( xi x )
i 1 i 1
1
x (nx ) 0
n
The average of the absolute values of the deviations is given by
n n
1 1
di
n
di
n
xi x
i 1 i 1
i 1
In many circumstances the engineer will not be able to collect as many data as necessary to
describe the underlying population. Generally speaking, it is desired to have at least 20
measurements in order to obtain reliable estimates of standard deviation and general validity
of data.
where x is the mean reading and is the standard deviation. P(x) is sometimes called the
probability density. A plot of this equation is given in Fig. 3.3.
The standard deviation is a measure of the width of the distribution curve; the larger the value
of , the flatter the curve and hence the larger the expected error of all measurements. The
equation of P(x) is normalized so that the total area under the curve is unity. Thus,
P( x)dx 1.0
1
P( x )
2
It can be seen from this equation that smaller values of the standard deviation produce larger
values of the maximum probability, as would be expected in an intuitive sense. P(x ) is a
measure of precision of the data since it has larger values for smaller values of standard
deviation.
We next wish to examine the Gaussian distribution to determine the probability that certain
data points will fall within a specified deviation from the mean of all data points. The
probability that a measurement will fall within a certain range x1 of the mean reading is
x x1 1 2
/ 2 2
P x x
1 2
e ( x x ) dx
where
x1
1 .
Example 3.6
Derive the expression of probabilities that a measurement will fall within 1, 2 and 3 standard
deviations of the mean value.
Solution
1 = 1, 2 and 3
We can observe that
1 2 / 2 1 2 / 2
1
e d 2 0 e d
so that
1 1 0.5 2
P(1 )
2 0 e d
1 2 0.5 2
P(2 )
2 0 e d
1 3 0.5 2
P(3 )
2 0 e d
Chapter 3: Measurement and error 15
1 1 2 / 2
The following table gives the values of the integral I =
2 0 e d for different
1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
I 0.34134 0.36433 0.38493 0.4032 0.41924 0.43319 0.4452 0.45543 0.46407 0.47128
2 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9
I 0.47725 0.48214 0.4861 0.48928 0.4918 0.49379 0.49534 0.49653 0.49744 0.49813
Table 3.1
Confidence Interval Confidence Level (%) Level of Significance
(%)
3.30 99.9 0.1
3.0 99.7 0.3
2.57 99.0 1.0
2.0 95.4 4.6
1.96 95.0 5.0
1.65 90.0 10.0
1.0 68.3 31.7
Example 3.7
A certain length is measured with a device which has a known precision of 0.5 mm when a
large number of measurements is taken. How many measurements are necessary to establish
the mean length x with a 5% level of significance such that
x x 0.2 mm
Solution:
For a large number of measurements the 5 % level of significance is obtained at z = 1.96 and
for the population here
Chapter 3: Measurement and error 17
z 1.96 0.5 mm
0.2 mm =
n n
which yields to
n = 24.01
So, for 25 measurements or more we could state with a confidence level of 95 % that the
population mean value will be within 0.2 mm of the sample mean value.
3.8 Calibration
A very important issue in instrumentation is the calibration of instruments and measurement
systems. The relationship between the value of the input to the measurement system
and the system’s indicated output value is established during a calibration of the
measurement system. A calibration is the act of applying a known value of input to a
measurement system for the purpose of observing the system output. The known
value used for the calibration is called the standard. There two types of calibration;
static and dynamic calibrations.
14 + Measured values
10
output values
0
0 0.5 1 1.5 2 2.5 3 3.5 4
input values
The static calibration curve describes the static input-output relationship for a measurement
system and forms the logic by which the indicated output can be interpreted during an actual
measurement. For example, the calibration curve is the basis for fixing the output display
scale on a measurement system. Alternatively, a calibration curve can be used as part of
developing a functional relationship, an equation known as correlation, between input and
output. A correlation will have the form y f (x) and is determined by applying physical
reasoning and curve fitting techniques to the calibration curve. The calibration can then be
used is later measurements to ascertain the unknown input value based on the output value,
the value indicated by the measurement system.
where K is a function of x. The static sensitivity is a measure relating the change in the
indicated output associated with a given change in the static input. Since calibration curves
can be linear or nonlinear depending on the measurement system and on the variables being
measured, K may or may not be constant over a range of input values.
3.8.4 Range
The proper procedure for calibration is to apply known inputs ranging from the minimum
values for which the measurement system is to be based. These limits define the operating
range of the system. The input operating range is defined as extending from x min to x max .
This range defines the input span, expressed as
ri xmax xmin
Chapter 3: Measurement and error 19
Similarly, the output operating range is specified from y min to y max . The output span, or full
scale operating range (FSO), is expressed as
yi y max y min
3.8.5 Accuracy
The accuracy of a measurement system can be estimated during calibration. If the input value
of calibration is known exactly, then it can be called the true value. The accuracy of a
measurement system refers to its ability to indicate a true value exactly. Accuracy is related
to absolute error. Absolute error, e, is defined as the difference between the true value
applied to a measurement system and the indicated value of a system:
e = true value – indicated value
from which the percent accuracy is found by
e
A(%) 1 100
true value
By definition, accuracy can be determined only when the true value is known, such as during
calibration.
An alternative form of calibration curve is the deviation plots. Such a curve plots the
difference or deviation between a true or expected value y’ and the indicated value, y, versus
the indicated value, y, as shown in Fig. 3.5. Deviation curves are extremely important when
the difference between the true and the indicated value are too small to suggest possible
trends on direct calibration plots.
3.8.6. Precision
The repeatability or precision of a measurement system refers to the ability of the system to
indicate a particular value upon repeated but independent applications of a specific value of
input. Note that a system that repeatedly indicates that same wrong value upon repeated
application of a particular input would be considered to be very precise regardless of its
accuracy, as shown in Fig. 3.6.
Hysteresis is usually specified for a measurement system in terms of the maximum Hysteresis
error found in the calibration, %eh max , as a percentage of full scale output range:
Chapter 3: Measurement and error 21
eh max
%eh max 100
ro
where the curve fit y L (x) provides a predicted output value based on a linear relation
between x and y. However, in real systems, truly linear behavior is only approximately
achieved. As a result, measurement device specifications usually provide a statement as to
the expected linearity of the static calibration curve for the devices. The relation between
y L (x) and measured value y(x) is a measure of the nonlinear behavior of a system:
e L ( x ) y ( x) y L ( x)
where e L (x) is the linearity error. Such behavior is illustrated in Fig. 3.8.
For a measurement system that essentially linear in behavior, the extent of possible
nonlinearity in a measurement device is often specified in terms of the maximum expected
linearity error for the calibration as a percentage of full-scale output range:
e L max
%e L max 100
r0
ec e12 e22 eM
2
For example, for an instrument having known Hysteresis,, linearity, sensitivity and
repeatability errors, the instrument error is estimated by
ec eh2 e L2 e K2 e R2
Chapter 3: Measurement and error 23
ed e02 ec2
Example 3.8
Consider the force measuring instrument described by the catalog data that follows
Resolution: 0.25 N
Range: 0-100 N
Linearity: within 0.20 N over range
Repeatability: within 0.30 N over range
Provide an estimate of the uncertainty to this instrument and the design stage instrument
Solution:
e L 0.20 N eR=0.30 N
then
Problem 1
For the calibration data of Table 3.2,
1. Specify the range of calibration
2. Determine the static sensitivity of the system at:
a- X = 5;
b- X = 10;
c- X = 20;
3. For which input values the system is more sensitive?
Problem 2
Consider the voltmeter calibration data in Table 3.3, plot the data by using a suitable scale.
Specify the percent maximum Hysteresis based on full scale range.
Problem 3
For the calibration data of table 3.2, plot the results by using linear and log-log scales.
Discuss the apparent advantages of each representation.
Problem 4
Plot the following data on an appropriate set of axes. Estimate the static sensitivity K at each
X.
Y(V) X(cm)
2.9 0.5
3.5 1.0
4.7 2.0
9.0 5.0
Problem 5
The following data have the form y axb . Plot the data in an appropriate format to estimate
the coefficients a and b. Estimate the static sensitivity K at each value of X. How is K
affected by X?
Y(V) X(cm)
0.14 0.5
2.51 2.0
15.30 5.0
63.71 10.0
Problem 6
A force measurement system has the following specifications
Range: 0 – 1000 N
Linearity error: 0.10 % FSO
Hysteresis error: 0.10 % FSO
Repeatability error: 0.15 % FSO
Estimate the overall instrument error for this system based on available information
Error Analysis 26
Problem 7
The transducer specified in Table 3.4 is chosen to measure a nominal pressure of 500 cm
H2O. The ambient temperature is expected to vary between 18°C and 25°C during tests.
Estimate the magnitude of each elemental error affecting the measured pressure.
Example 3.9 : The data for a series of experiments are shown in the table below
a- The experimental data are displayed with data markers, but without connecting line
segments
Y vs X
2.5
1.5
Y
1
0.5
0
0 5 10 X 15 20 25
b- The experimental data are plotted with data markers along with connection line
segments.
Y vs X
2.5
1.5
Y
0.5
0
0 5 10 X 15 20 25
c- A smooth curve is plotted through the points with data markers omitted
Y vs X
2.5
2
1.5
Y
1
0.5
0
0 5 10 15 20 25
X
Chapter 3: Measurement and error 29
d- The data points are displays without connecting line segments along with a
least square linear fit to the data. The linear relation obviously does not work, and
is evidenced by a low value of r2.
y = -0.0956x + 1.5376
Y vs X
R2 = 0.8014
2.5
2
1.5
1
Y
0.5
0
-0.5 0 10 20 30
X
e- In this case the plot shows a second order polynomial (quadratic) fit of the data on
linear coordinates. The results are fairly good, except for larger values of x.
Y vs X
y = 0.0077x2 - 0.2499x + 2.0348
2.5
R2 = 0.9905
2
1.5
Y
0.5
0
0 5 10 15 20 25
X
Y vs X
3 2
y = -0.0002x + 0.0148x - 0.3014x + 2.1086
2.5 2
R = 0.9953
2
1.5
Y
0.5
0
0 5 10 15 20 25
X
Error Analysis 30
Y vs X y = 2.3512e-0.194x
R2 = 0.9978
2.5
1.5
Y
0.5
0
0 5 10 X 15 20 25
h- The plot of Fig. 3. displays the exponential trend of the experimental data but
plotted on a semi logarithmic coordinates.
Y vs X y = 2.3512e-0.194x
R2 = 0.9978
10
1
0 5 10 15 20 25
Y
0.1
0.01
X
Comments
- In all of these plots the software Excel was used to make the trends of the
experimental data as well as the determination of the fitting function and the
factor r2.
- The factor r2 is called the coefficient of correlation. For a perfect fit r2 = 1. A
high value of r2 (approaching the unity) will be an indicative of a very good
correlation.
- The fitting technique used by Excel is based on the least square method such a
method uses the minimization of the square of the error between the data and the
curve fitting used. The theory related to the least square method (LSQ) is beyond
the scope of this course).
Chapter 3: Measurement and error 31
Problem 1
For the experimental data shown below
x 0 1 2 3 4 5 6 7 8 9 10
1. Use Excel to analyze a linear and quadratic approximation fitting of the data.
Display the fitting function and r2.
2. Plot the data in such a manner that the graphical display will be a straight line if a
quadratic function relation best fit the data.
Problem 2
The data of a certain experimental test are tabulated below. Examine the data with multiple
graphs using Excel to arrive at a suitable correlation for the data y = f(x). Display the fitting
function and r 2 .
x.103 20 25 35 45 47 50 62 65 70 75 80 90
y 60 79 90 135 110 130 160 150 180 190 191 200
Problem 3
A meter behaves according to the following table
x.104 4 5 6 8 10 15 20 30 100
y 0.957 0.962 0.966 0.973 0.977 0.982 0.984 0.984 0.984
Using Excel plot y vs. log x and obtain an appropriate relationship between y and x.
Problem 4
The following calibration data are available for a certain temperature measurement device.
Using Excel plot y vs. x and obtain second-, third-, and fourth order polynomial fits the data.
x (C) -150 -100 -50 -25 0 25 50 75
Table 3.5 shows the results obtained when a pressure transducer was calibrated. The data is
shown graphically in Figure 3.10.
Table 3.6
kPa mV
Force transducer calibration data
0 0
1200
20 48
1000
40 97
800
60 145
mV
600 mV
400 80 193
200 100 241
0
120 290
0 200 400 600 800
kPa 140 338
160 386
Figure 3.10: Force transducer calibration data
180 435
200 483
220 530
240 578
260 625
280 672
300 719
320 767
340 814
360 861
380 909
400 956
420 990
440 1023
460 1052
480 1071
500 1090
520 1099
540 1099
560 1099
580 1099
600 1099
Chapter 3: Measurement and error 33
Q.1 Estimate the range over which the transducer can be considered to have a linear response
..……………………….
Linear regression is performed over the range 0-400kPa. The regression coefficients are
Sensitivity, S: 2.390mV/kPa
Intercept b: 2.325mV
Q.2 Use the calibration data to find the pressure when the output voltage has the values
indicated below. For the non-shaded boxes, give the value of pressure which was obtained
during calibration and calculate the error in the predicted load.
The residual values for the regression are shown in Figure 3.11.
Error Analysis 34
3
2
Residuals (mV)
1
0
-1 0 200 400 600
-2
-3
Load (kPa)
Q.3 Give the values of the largest positive and negative residuals ……………………
The non-linearity error can be reduced by using the transducer over a shorter range .
Q.5 What do you think would be a suitable shorter range over which the non-linearity error
would be
Linear regression analysis is done using the range 0-200kPa. The co-efficients are now:
Sensitvity S: 2.415mV/kPa
Intercept: b: -.0217mV
Q.6 Use the calibration data to find the pressure for the output voltages indicated below. For
the non-shaded boxes, give the value of pressure which was obtained during calibration and
calculate the error in the predicted load.
Chapter 3: Measurement and error 35
0.2
Residuals
0
0 50 100 150 200 250
-0.2
X Variable 1
Q.7 Give the largest positive and negative non-linearity errors for this regression analysis.
………………………
Error Analysis 36
Case Study 2
A force measurement system is to be set up using a force transducer and a digital display
whose parameters are given below. Find the range and resolution of the system and calculate
the error in the measured force when the input force is i) 200kN ii) 500kN and iii) 1000kN
assuming that the temperature varies between 15 and 25C.
Transducer
Range 10-1000kN
Sensitivity at 200C 0.135mV/kN
Linearity error 2kN
Repeatability error 0.2% reading
Temperature error 0.2kN/0C
Display
Output 4 digits
Minimum input for max reading 1mV
Maximum input for max reading 10V
Accuracy (0.3% reading + 1lsd)
Stability after 5 minutes warm up 1lsd
Range
To see if this is possible, we need to find the maximum output voltage from the transducer.
The minimum voltage required for a reading of 9999 is 1mV, therefore the minimum voltage
required for a reading of 1000 is
1 1000
0.1mV
9999
Chapter 3: Measurement and error 37
10 1000
1V
9999
The output voltage for the maximum force of 1000kN of .135V lies between these two values,
therefore it is possible to set the display to read 1000 as required.
Resolution
Error
Transducer errors are (a) linearity (b) repeatability and (c) temperature.
Display
Accuracy 1lsd 1 1 1
0.003*reading 0.6 1.5 3
Sum of these 1.6 2.5 4
Stability - 1lsd 1 1 1
i) 3kN, 1.5%
ii) 4kN, 0.7%
iii) 5kN, 0.5%