Docsity

Notes on Data Analysis and Experimental Uncertainty | PHYS 431, Study notes of Physics

Toggle sidebar
bg1
Notes on Data Analysis and Experimental
Uncertainty
Prepared by David B. Pengra, University of Washington, and L. Thomas Dillman, Ohio Wesleyan
University
This set of notes has been adapted from ones given to Ohio Wesleyan University physics students
in the introductory laboratories. Although they are pitched at a relatively elementary level, they
contain many hints that may be useful even to advanced students.
The topics discussed below may be supplemented with pertinent sections in the references listed at
the end of the article; the text by Bevington and Robinson (see reference [1]) gives a good account
of basic statistical theory and practical computer methods most often used in analyzing data from
physics experiments.
1 Types of Uncertainty
There are two basic kinds of uncertainties, systematic and random uncertainties. Systematic un-
certainties are those due to faults in the measuring instrument or in the techniques used in the
experiment. Here are some examples of systematic uncertainty:
•If you measure the length of a table with a steel tape which has a kink in it, you will obtain
a value which will appear to be too large by an amount equal to the loss in length resulting
from the kink. On the other hand, a calibration error in the steel tape itself—an incorrect
spacing of the markings—will produce a bias in one direction.
•If you measure the period if a pendulum with a clock that runs too fast, the apparent period
will be systematically too long.
•The stiffness of many springs depends on their temperature. If you measure the stiffness of
a spring many times, by compressing and decompressing it, the internal friction inside the
spring may cause it to warm. You may see this by a systematic trend in your data set; for
example, each data point in a data set will be smaller than the previous one.
Random uncertainties are associated with unpredictable variations in the experimental conditions
under which the experiment is being performed, or are due to a deficiency in defining the quantity
being measured. Here are some examples of random uncertainty:
•Electrical noise—from nearby circuits or equipment, thermal effects, or imperfect connections—
may cause random fluctuations in the magnitude of a quantity measured by a voltmeter.
•The length of a table may depend on which two points along the edge of the table the
measurement is made. The “length” is imprecisely defined in such a case.
•Repeated measurements of the period of a pendulum which are made with a stopwatch vary
because it is hard for a person to start and stop the watch at exactly the same point in the
pendulum’s swing. Note, however, that if the experimenter always starts the watch late, but
stops it early, this will lead to a systematic error.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Notes on Data Analysis and Experimental Uncertainty | PHYS 431 and more Study notes Physics in PDF only on Docsity!

Notes on Data Analysis and Experimental

Uncertainty

Prepared by David B. Pengra, University of Washington, and L. Thomas Dillman, Ohio Wesleyan University

This set of notes has been adapted from ones given to Ohio Wesleyan University physics students in the introductory laboratories. Although they are pitched at a relatively elementary level, they contain many hints that may be useful even to advanced students.

The topics discussed below may be supplemented with pertinent sections in the references listed at the end of the article; the text by Bevington and Robinson (see reference [1]) gives a good account of basic statistical theory and practical computer methods most often used in analyzing data from physics experiments.

1 Types of Uncertainty

There are two basic kinds of uncertainties, systematic and random uncertainties. Systematic un- certainties are those due to faults in the measuring instrument or in the techniques used in the experiment. Here are some examples of systematic uncertainty:

  • If you measure the length of a table with a steel tape which has a kink in it, you will obtain a value which will appear to be too large by an amount equal to the loss in length resulting from the kink. On the other hand, a calibration error in the steel tape itself—an incorrect spacing of the markings—will produce a bias in one direction.
  • If you measure the period if a pendulum with a clock that runs too fast, the apparent period will be systematically too long.
  • The stiffness of many springs depends on their temperature. If you measure the stiffness of a spring many times, by compressing and decompressing it, the internal friction inside the spring may cause it to warm. You may see this by a systematic trend in your data set; for example, each data point in a data set will be smaller than the previous one.

Random uncertainties are associated with unpredictable variations in the experimental conditions under which the experiment is being performed, or are due to a deficiency in defining the quantity being measured. Here are some examples of random uncertainty:

  • Electrical noise—from nearby circuits or equipment, thermal effects, or imperfect connections— may cause random fluctuations in the magnitude of a quantity measured by a voltmeter.
  • The length of a table may depend on which two points along the edge of the table the measurement is made. The “length” is imprecisely defined in such a case.
  • Repeated measurements of the period of a pendulum which are made with a stopwatch vary because it is hard for a person to start and stop the watch at exactly the same point in the pendulum’s swing. Note, however, that if the experimenter always starts the watch late, but stops it early, this will lead to a systematic error.

Of these two types of uncertainties, random uncertainties are much easier to deal with and to quantify. There is no general procedure for estimating the magnitude of systematic uncertainties as there is for random uncertainties. Only an experimenter whose skill has come through long experience can consistently detect systematic uncertainties and prevent or correct them.

If an experiment has low systematic uncertainty it is said to be accurate. If an experiment has low random uncertainty it is said to be precise. Obviously an experiment can be precise but inaccurate or accurate but imprecise. When thinking about uncertainty, it is important to remember these associations, so they are worth repeating:

  • Random uncertainty decreases the precision of an experiment.
  • Systematic uncertainty decreases the accuracy of an experiment.

These distinctions are illustrated in Fig. 1. You should avoid falling into the trap of thinking that because the uncertainty of a measurement is always the same, then it is systematic. Systematic uncertainty does not mean that the uncertainty is repeatable. What it means is that the uncertainty involves physics that has not been accounted for in the analysis—two very different ideas.

Not accurate

Not precise Not precise

Accurate

Precise

Not accurate

Precise

Accurate

Figure 1: A “bulls-eye” plot showing the distinction between precision and accuracy in a measure- ment. The black dots represent data points taken in a measurement of a quantity whose true value is at the center of the circles.

Before proceeding further it may be useful to point out that blunders are not a source of uncertainty. They can always be eliminated completely by careful work. In your laboratory reports never list misreading the instrument or getting the wrong units as a source of uncertainty!

2 The Mean, Standard Deviation, and Standard Deviation of

the Mean

Random uncertainty is often associated with the concept of standard deviation. This is best il- lustrated by an example. Suppose ten students each measure the diameter of a steel ball with a micrometer caliper. For a variety of reasons we do not expect all the measurements to be identical. The sources of error include:

  • some students tighten the micrometer caliper more than others.
  • the steel ball may not be perfectly round.

Note that σm is necessarily smaller than s. When we speak of the uncertainty σ of a set of measure- ments made under identical conditions, we mean that number σm and not s. It is most important that the student distinguish properly between standard deviation associated with individual data points, s, and standard deviation of the mean of a set of data points, σm.

Exercise 2 Five students measure the mass of an object by making two separate measurements each. These measurements, in grams: 9.80, 9.87, 9.89, 9.95, 9.91, 9.98, 9.92, 10.05, 9.97, 9.84.

  1. Calculate the mean, the standard deviation, and standard deviation of the mean, using your calculator and the above formulas. Show how you made the calculations.
  2. Do the same calculations as in part 1 but using the statistical package on your calculator. Refer to your calculator’s manual for instructions. If you have lost your manual, you may be able to find the instructions at the manufacturer’s website; for example, Texas Instruments has copies of their manuals at http://www.ti.com/. Usually, in lab you will use your calculator to find means and standard deviations rather than doing the calculations by hand, so it is important to know how this is done. Write the results down, along with a brief description of how you performed them.

3 Stating Results with Uncertainty

There are two common ways to state the uncertainty of a result: in terms of a σ, like the standard deviation of the mean σm, or in terms of a percent or fractional uncertainty, for which we reserve the symbol  (“epsilon”). The relationship between  and σ is as follows. Let the quantity of interest be x, then, by definition, x ≡

σx x

When stating a result and its uncertainty in a report, one typically uses the form x ± σx, with the units placed last. For example, if the mass of an object is found to be 9.2 g and the uncertainty in the mass is 0.3 g, one would write m = 9. 2 ± 0 .3 g.

When using scientific notation, the factor of ten multiplier should come after the significant digits and uncertainty. Write m = (9. 3 ± 0 .3) × 10 −^3 kg ,

not m = 9. 3 × 10 −^3 ± 0. 3 × 10 −^3 kg , (WRONG!)

and certainly not m = 9. 3 × 10 −^3 kg ± 3. 0 × 10 −^4 kg. (WRONG!)

Sometimes one will present uncertainty in terms of , but in this case,  is usually multiplied by 100, so that one would say, “The mass of the object is 9.2 grams with an uncertainty of 3 percent.” Unless otherwise instructed, you should state all of your measurements following the first form, using σ. There is one important distinction between σ and  when stating results: σx always has the same units as x, while  is always unitless. Failure to be conscious of this difference typically costs students many points.

4 Comparing Quantities with Uncertainty

Frequently one wants to know whether two numbers obtained by two different methods but hypo- thetically referring to the same physical quantity agree. The term “agreement” means something very specific in an experiment. If uncertainties for one or both numbers (expressed by an associated σ) have been calculated, one can say that the two numbers agree with each other if they overlap within their uncertainties. For example, if a theory predicts that the density of an object should be

  1. 0 ± 0 .1 g/cm^3 , and a measurement gives a value of 9. 8 ± 0 .3 g/cm^3 , then we can say the two values agree within the experimental uncertainty. But if the measurement gave instead 9. 81 ± 0 .02 g/cm^3 , then we would be forced to admit that the two values did not agree.

In the case of disagreement, the experimenter faces a problem: what effects have not been accounted for? There could be a source of additional random error that has not been appreciated, or more vexing, there may be a source of systematic error that is fouling the accuracy of the measurement. Generally, sources of random error are easier to track down and rectify; but in so doing, one may uncover other sources of systematic error that were previously invisible!

You will often be asked to determine what the dominant source of error is in a particular experiment. In general, this is a subtle problem as there is no general method for determining systematic error. However, one important clue can be used when comparing measurements with each other, or with theory: if the measured quantity including the uncertainty calculated from random sources of error does not overlap with another expected value (either from another experiment or theory) then you can assume that the systematic error in the experiment dominates the experimental error. This is especially true when comparing against theoretically calculated values, as the theory almost always assumes some simplifications in order to make the calculation reasonable (for example, neglecting the weight of a string or assuming that friction is zero). To reiterate: systematic error comes into an experiment when the experimenter neglects some important physics in the analysis.

In quick measurements, we may not always calculate uncertainties for the quantities we measure. In these cases, the best we can state is that two values disagree by some amount. This disagreement is usually presented as a percent of the value of the quantity. For example, if we did not have uncertainties calculated for the above two density values, we could say that they disagree by ∣∣ ∣∣^9.^8 −^10.^0

  1. 0

∣∣ ∣∣ × 100 = 2% (5)

The general rules for comparing results in lab reports are these:

  • If uncertainties exist, state the quantities with their uncertainty, and see if they overlap. If they do, they agree. If not, they don’t, and you should try to explain why, that is, discuss the physics of the experiment and try to come up with some sources of systematic error.
  • If uncertainties do not exist, calculate a percent disagreement. If the percent disagreement is less than a few percent, the results are probably in agreement. If the disagreement is more than ten percent, they are probably not in agreement, and you should try to explain why.

Exercise 3 The manufacturer of the mass that was measured by the students in Exercise 2 claims that the mass is 10 g, within 0.4%. Is this a valid claim? Discuss whether your result agrees with the manufacturer’s claim, following the guidelines above.

Table 1: Common formulas for propagating uncertainty. These equations can be combined in the cases of more complicated formulas, or the student may work directly from equation (6).

Functional Form Formula Uncertainty formula Product or Quotient f = xy or f = x/y f =

√ ^2 x + ^2 y Sum or Difference f = x + y or f = x − y σf =

√ σ x^2 + σ y^2 Product of factors raised to powers f = xmyn^ f =

√ m^2 ^2 x + n^2 ^2 y Constant multipliers f = Kx (K =constant) σf = Kσx Logarithmic functions f = loge(x) σf = x f = log 10 (x) σf = log 10 (e)x = 0. 4343 x Exponential functions f = ex^ f = σx f = 10x^ f = loge(10)σx = 2. 303 σx

  • The uncertainties in the length and width are completely independent.
  • The uncertainties in the length and width are completely dependent.

If the uncertainties are completely independent, the possibility of compensation occurs. That is, if the uncertainty in the length causes the area to be too large, then the uncertainty in width may be such as to cause the area to be too small. On the average, the total uncertainty in the area will be algebraically less than the sum of the separate contributions to the uncertainty in the area. On the other hand, for completely dependent uncertainties, we must take into account the fact that the uncertainties are always correlated. This leads to complications involving a quantity called the covariance of two correlated quantities which we do not discuss in this elementary account. The case of completely independent uncertainties is nearly approached in many experimental situations, and we confine our attention to this case.

Without going into the derivations (see [1], pp. 36–41 for further details), the theory of error analysis gives a general formula for the uncertainty when a result is found by a calculation from a collection of measurements. The formula is based on the idea of a first-order Taylor series expansion of functions of many variables. It is valid when the various uncertainties σi of the i different variables are small compared to the values of the quantities and on the requirement that the uncertainties are uncorrelated with each other. Specifically, if the desired result is a well-behaved function f (x, y, z,.. .) of the physical variables x, y, z,... which have uncertainties σx, σy, σz ,.. ., then the uncertainty in the value of the result σf is given by the formula

σ^2 f = σ^2 x

( ∂f ∂x

) 2

  • σ^2 y

( ∂f ∂y

) 2

  • σ z^2

( ∂f ∂z

) 2 +... , (6)

where the partial derivatives are all evaluated at the best known values of x, y, z,...

We give the equations required to propagate uncertainty for a number of simple cases. All of the formulas in Table 1.1 may be derived from equation (6) and the functional form that is listed. See [1, pp. 44–47] for derivations.

We expect students to learn how to propagate uncertainty for simple cases which are covered by the above equations. For example, suppose you have an equation for some physical quantity, say

F which is related to another physical quantity, say r by the formula

F = −

2 πK r^2

where K is a physical constant with no uncertainty. This equation is of the form f = xmyn^ where x corresponds to 2πK, and y corresponds to r; in this case, m = 1 and n = −2, so the uncertainty formula is F =

√ m^2 ^22 πK + n^2 ^2 r =

√ 12 · 02 + (−2)^2 · ^2 r = 2r. (8)

Note that because 2πK has no uncertainty,  2 πK = 0, and it drops out of the equation for F. To find σF , you would then simply calculate σF = |F F |. The quantities σf and f are always positive, as should be evident from the defining formulas (3) and (6).

The formulas in Table 1 are not just math; we can read some physics into their form. For example, in the case of constant multipliers, if one scales each data point by a constant, then the uncertainty in the mean value should also scale up proportionally. More interestingly, if you were to measure the area of a square by two independent measurements of the length x and the width y, you would use the product or quotient formula to propagate the uncertainty, as A = xy. In this case the errors in the two measurements may be opposite, leading to a better final result. But if you used only the length measurement x, and assumed that the width y were the same as the length, then the possibility of two measurement errors working against each other would be lost, and you would have to use the formula A = x^2. In this case, the exact same measurement is used twice, so the errors in width versus length can’t cancel. To propagate the uncertainty, you would use the formula for the product of factors raised to powers, which gives a larger final uncertainty than in the former case.

Exercise 4 In an experiment with an air track, an experimenter wishes to determine the average speed of an air track cart between two photogates. The distance ∆x between the photogates is given by ∆x = 1. 000 ± 0. 003 m, and the time of travel ∆t between these two points is ∆t = 2. 3 ± 0. 1 s. Calculate the average speed s = ∆x/∆t, the fractional uncertainty s, and the absolute uncertainty σs given these data. Show your work, and state the results using correct significant digits, and following the format given in the section Stating Results with Uncertainty.

Exercise 5 1. To measure the density of a rectangular object, an experimenter measures the object’s volume and mass. The volume is given by the formula V = LW H, where L is the length, W is the width, and H is the height. The density ρ is given by ρ = m/V , where m is the object’s mass. If the measurement of the mass is uncertain by 2%, and each of L, W and H is uncertain by 4%, what is the uncertainty, in percent, of the density ρ? Show your work.

  1. The experimenter conducts the same density measurement with a second sample that is spher- ical in shape. The mass is again uncertain by 2%. The diameter d of the sphere is measured to a precision of 4%. The volume V of a sphere is given by the formula

V =

4 π 3

( (^) d 2

) 3

What is the percent uncertainty of the density ρ in this case? Show your work. Why is the uncertainty in this case different than in the case of a rectangular object? What is the underlying reason (not just how are the formulas different)?

[5] Meyer, Stuart L., Data Analysis for Scientists and Engineers, John Wiley and Sons, Inc., New York, 1975.

[6] Young, Hugh D., Statistical Treatment of Experimental Data, McGraw-Hill Book Company, Inc., New York, 1962.

uncertainty notes.tex -- Updated 6 January 2009