AOE3054-Chapter 2-Experiment Method
AOE3054-Chapter 2-Experiment Method
AOE3054-Chapter 2-Experiment Method
edu/~aborgolt/aoe3054/
http://www.dept.aoe.vt.edu/~aborgolt/aoe3054/manual/index.html
http://www.dept.aoe.vt.edu/~aborgolt/aoe3054/manual/ch2/index.html
1. Measurement systems
Most measurement systems may be broken down into 3 components; (i) a detector or
transducer that senses the physical quantity of interest and transforms it into a
mechanical or electrical signal, (ii) an intermediate stage that amplifies or otherwise
modifies the signal, and (iii) a final stage in which the signal is displayed or stored.
It is obvious that to use a measurement system you have to know the relationship
between its output and the quantity it senses, called a calibration. You also have to
know the limitations of the system, specifically its range, its accuracy, precision and
repeatability, and how quickly it can respond to a change in the quantity being
measured, called its dynamic response.
1.1 Calibration
To calibrate a measurement system you have to compare its output with a known
input. Consider, for example, the pressure gage of figure 1. This device could be
calibrated by mounting the transducer in a closed vessel with a piston at one end,
as shown in figure 2. (Such a vessel is called a dead-weight tester.) Placing a
weight on the piston produces a known pressure in the vessel equal to the weight
divided by the piston area. After applying a series of weights and measuring the
corresponding output voltages of the pressure gage we can plot the relationship
between the output voltage and pressure (figure 3). Mounting the transducer back
in the pipe we now use this calibration curve to convert voltage readings into
pressures at the pipe wall.
Figure 2. Dead weight tester for calibration of pressure transducer.
As a general rule it is unwise, if you have the choice, to trust a calibration made by a
manufacturer or estimated through a theoretical calculation - measurement systems
rarely work exactly as they are supposed to. Repeating a calibration at regular
intervals is also a good idea since it may drift with time or ambient conditions. Having
a repeatable and accurate calibration is obviously a prerequisite for an accurate
measurement.
Precision is the resolution with which a measurement may be made. For example if
the thermometer has graduations every 2 degrees it probably could be read with a
precision of about half that. Precision does not guarantee accuracy. The thermometer
scale may have been printed in the wrong place making it 10 degrees in error.
For steady pressure differences (p) the displacement of the manometer fluid (h) is
given by hydrostatics,
(1)
This equation defines the static response.
For pressures that are changing with time, equation (1) only holds if the changes are
of very low frequency - a fraction of a Hertz. This is because, as the frequency is
increased, inertia of the fluid column and friction between it and the tube start
becoming important. Thus, the motion of the fluid column begins to lag behind the
pressure change and the amplitude of this motion begins to differ from that given by
equation 1 (figure 5).
We refer to the ratio of the amplitude of the pressure fluctuations indicated by the
manometer to the actual amplitude as the "amplitude response". We refer to the lag of
the manometer, measured in terms of the angle of the sinusoidal fluctuation as the
"phase response". If we apply a series of sinusoidal pressure fluctuations of different
frequencies we can plot the amplitude and phase response as functions of frequency
(figure 6). These curves define the "dynamic response" of the manometer.
Figure 6. Possible amplitude and phase response curves for a U-tube manometer.
Most U-tube manometers tend to have dynamic response curves that look like A or B
of figure 6. Curve A is for a small diameter tube in which viscous friction between the
fluid and tube wall is sufficient to damp out much of the oscillatory motion of the
manometer fluid that fluctuations in the pressure being measured are trying to induce.
Curve B is for a manometer with a broad tube that will damp these oscillations to a
much smaller degree. At some frequencies the amplitude response is actually greater
than 1 (indicated pressure fluctuation greater than actual). These are frequencies close
to that at which the manometer fluid would naturally oscillate back and forth in the U
tube. Both curves show that the amplitude response of a manometer becomes very
small (and for the most part useless) when subjected to pressure fluctuations at
frequencies greater than a few Hertz.
The fact that we have used sinusoidal pressure fluctuations to define the dynamic
response of our manometer may seem somewhat artificial. In reality, however, it helps
us predict how the manometer will respond to any signal. Consider, for example, the
pressure signal shown in figure 7 (produced perhaps by an unsteady fluid flow). Such
a signal contains many frequencies. If the manometer operates as a linear device its
response is the (linear) sum of its phase and amplitude response to each of the
frequencies in the signal. i.e. it will respond mostly to the low frequency parts of the
signal.
In this, and many other, situations a good first step would be to calculate the mean and
standard deviation of the measurements. The definitions of these quantities depend on
whether the data from which they are to be calculated are discrete (i.e., a sequence of
measured points) or continuous (e.g., an electrical signal). For a set of N discrete
samples of a quantity x the mean and the standard deviation are given by the
x
relations
(2)
Note that the standard deviation is calculated dividing by N-1 rather than N. This is
because only N-1 of the samples are independent of the mean. For a continuous
signal measured as a function of time x(t) over a period from t = 0 to T the mean and
standard deviation are defined as
(3)
Note that the standard deviation squared is called the variance.
In our example the mean of each signal would be the average deflection of the spar
which presumably could be used to estimate its average load. The standard deviation
or variance are measures of how widely the measurements are spread around the mean
(i.e., how large, on average, (x - ) or (x(t) - ) are). In this case (assuming the
i
2 2
position sensor had a good dynamic response) they could be taken as indications of
the intensity of vibrations in the spar. For obvious reasons, the standard deviation is
often referred to as the "root mean square" or r.m.s., especially when dealing with
electrical signals. Since such signals are often sinusoidal it is useful to remember that
the r.m.s. of a sinusoid is 0.7071 of its amplitude, verify this for yourself using
equation 3.
There are many other ways of presenting data in a statistical way. Perhaps the most
revealing is a histogram. To construct a histogram the range of the quantity being
measured (deflection in our example) is divided up into a number of equal intervals,
or 'bins'. For discrete data we then merely add up the number of samples falling in
each bin. For continuous signals we add up the time for which the signal lies in each
bin. The result is a graph showing how the data are distributed. In our example, such a
histogram could show whether our spar had ever deflected sufficiently to yield. The
mean and standard deviation may be represented on a histogram, as shown in figure 8.
The mean, being a measure of the average, lies near the center of the histogram. The
standard deviation, being a measure of the spread, is usually about one quarter to one
sixth of the width of the histogram.
Figure 8. Histogram of spar deflections.
The natural extension of this is the probability density function, which is defined in
terms of its area as follows.
"Consider a probability density function p(x) of a quantity x (in the present example,
wave height). The area under p(x) between two values x and x is the probability P
0 1
(4)
Obviously the total area under p(x) (the probability of a sample having any value)
must be unity, i.e.
(5)
Depending on the physical process controlling the quantity represented, probability
density functions may have any form. However, it is a matter of experience that the
vast majority of random processes (including random experimental error) produce
the same shape of probability density function, namely the normal (or Gaussian)
distribution. Figure 10 is a graph of the normal distribution, given by the
mathematical relation
(6)
As you can see the normal distribution is a function of the mean and standard
deviation of the quantity x. Using equation (4) we see above the probability P of a
given value x of a quantity governed by a normal distribution falling within a
range x to x is
0 1
(7)
Making the substitution
(8)
we obtain
(9)
which can be rewritten as
(10)
where
(11)
The value of the function in equation (11) is tabulated in table 1. Note that a decimal
point should be placed ahead of each of the numbers in this table. The table works
for both negative and positive values of . For negative , values read from the table
should be negated. Some typical uses of the normal distribution are illustrated in the
example below.
Example
A sensor is used to detect the flow rate of fuel to a jet engine. Due to electrical
interference in the instrumentation used, however, successive readings from the
sensor fluctuate. The following are 21 such readings (in arbitrary units),
and,
(b) Assuming the readings are distributed normally calculate the probability that a
reading taken at random will have a value between .5 and .6.
(c) What percentage of a large number of readings are likely to lie above a value
of .8?
i.e. 5.6%
(d) What percentage of a large number of readings are likely to lie within two
standard deviations from the mean?
We have
i.e. 95%. Alternatively we could say that there is a 95% probability that a reading will
lie within two standard deviations of the mean.
2.3 Linear regression
Linear regression is the process of fitting the best possible straight line through a
series of points. Linear regression is often used to reduce a set of calibration points to
a simple mathematical relationship (that can, for example, be implemented on a
computer) or deduce the underlying trends from a set of measurements that are
expected, on theoretical grounds, to follow a straight line.
quantities x and y. (A good example here is the measurements of voltage and pressure
we would have got in our calibration in section 1.2). We wish to find a straight line of
the form
(12)
that passes as closely as possible through all the points. This is done by choosing the
constants A and B to minimize the differences between the straight line and points.
The difference at the "ith point" is,
(13)
The sum of the squares of the differences at all the points is
(14)
(we take the square so that the positive and negative differences don't cancel each
other out). To find the values of A and B for which S is a minimum we take the
derivatives of S with respect to A and B and set them to zero. This gives
(15)
and
(16)
Rearranging we obtain explicit expressions for A and B,
(17)
(18)
To express how good the fit of the straight line is we usually use the correlation
coefficient, defined as,
(19)
where,
(20)
and
(21)
Verify for yourself that r=1 for a perfect fit (y always equal to Ax + B) and that r<1
i i
otherwise. Using r to decide how good or bad a fit might be depends on the
application and even then is a matter of experience. In general, if r>0.99 the
differences between the points and the line will be barely noticeable. If r<0.95 then
the fit will appear poor when plotted on graph paper and may be of little use. Many
calculators have built in routines for performing linear regression.
3. Uncertainty analysis
Almost all engineers in the "real world" deal in one way or another with data derived
from experiments or tests. They may have obtained the data. They may be trying to
use the data in a design. They may wish to use the data to test the results of their
computation. They may want to use the data to make a production or marketing
decision. Whatever the situation, it is essential that the engineer have a good idea of
the likely accuracy of the data. He or she may be required to state the likely accuracy
of his or her own data, or will be required to interpret the accuracy estimates of others.
In either case a knowledge of how accuracy is calculated is needed.
Uncertainty intervals may be represented in one of several ways. When listed along
with a measurement the '±' sign is used to indicate an uncertainty, e.g. "the flow speed,
U, was 20 ± 1 m/s" indicates an uncertainty of 1 m/s. When presented in isolation the
symbol () is used to indicate uncertainty, the quantity to which the uncertainty
interval refers going inside the parentheses, e.g. " (U) = 1 m/s". Obviously (U) has
the same units as U. Occasionally uncertainties are also presented as percentages of a
measured quantity e.g. "there is a 5% uncertainty in velocity" means that (U)/U =
0.05.
In general, uncertainty analysis may be divided into two parts, (1) determining the
uncertainty in primary measurements, (2) determining the uncertainty in a result
derived from those measurements.
(23)
is used. This equation follows the differential calculus of small changes and, strictly
speaking assumes that uncertainty intervals are small and that the partial derivatives
of R do not become infinite. Use of this equation, and the procedure described in
section 3.1 above is best explained using an example.
Uncertainty in power:
The relationship between power, voltage and resistance is simply
and so,
or,
about 5%. You will notice that apart from giving us an uncertainty estimate this
analysis also shows that the likely error in our power measurement is almost entirely
due to the uncertainty in resistance. To improve the accuracy we should therefore
concentrate on reducing the uncertainty of the resistance measurement, not on
improving the voltmeter. This kind of information can save a lot of time and money
(voltmeters are expensive, resistors are not).
4. References
------------------------------------------------------------------------------
-------
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07
0.08 0.09
------------------------------------------------------------------------------
-------
0.0 00000 00399 00798 01197 01595 01994 02392 02790
03188 03586
0.1 03983 04380 04776 05172 05567 05962 06356 06749
07142 07355
0.2 07926 08317 08706 09095 09483 09871 10257 10642
11026 11409
0.3 11791 12172 12552 12930 13307 13683 14058 14431
14803 15173
0.4 15554 15910 16276 16640 17003 17364 17724 18082
18439 18793
0.5 19146 19497 19847 20194 20450 20884 21226 21566
21904 22240
0.6 22575 22907 23237 23565 23891 24215 24537 24857
25175 25490
0.7 25804 26115 26424 26730 27035 27337 27637 27935
28230 28524
0.8 28814 29103 29389 29673 29955 30234 30511 30785
31057 31327
0.9 31594 31859 32121 32381 32639 32894 33147 33398
33646 33891
1.0 34134 34375 34614 34850 35083 35313 35543 35769
35993 36214
1.1 36433 36650 36864 37076 37286 37493 37698 37900
38100 38298
1.2 38493 38686 38877 39065 39251 39435 39617 39796
39973 40147
1.3 40320 40490 40658 40824 40988 41198 41308 41466
41621 41774
1.4 41924 42073 42220 42364 42507 42647 42786 42922
43056 43189
1.5 43319 43448 43574 43699 43822 43943 44062 44179
44295 44408
1.6 44520 44630 44738 44845 44950 45053 45154 45254
45352 45449
1.7 45543 45637 45728 45818 45907 45994 46080 46164
46246 46327
1.8 46407 46485 46562 46638 46712 46784 46856 46926
46995 47062
1.9 47128 47193 47257 47320 47381 47441 47500 47558
47615 47670
2.0 47725 47778 47831 47882 47932 47962 48030 48077
48124 48169
2.1 48214 48257 48300 48341 48382 48422 48461 48500
48537 48574
2.2 48610 48645 48679 48713 48745 48778 48809 48840
48870 48899
2.3 48928 48956 48983 49010 49036 49061 49086 49111
49134 49158
2.4 49180 49202 49224 49245 49266 49286 49305 49324
49343 49361
2.5 49379 49296 49413 49430 49446 49461 49477 49492
49506 49520
2.6 49534 49547 49560 49573 49585 49598 49609 49621
49632 49643
2.7 49653 49664 49674 49683 49693 49702 49711 49720
49728 49736
2.8 49744 49752 49760 49767 49774 49781 49788 49795
49801 49807
2.9 49813 49819 49825 49831 49836 49841 49846 49851
49856 49861
3.0
49865
3.5 4997674
4.0 4999683
4.5 4999966
5.0 4999997133
------------------------------------------------------------------------------
-------