Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Wagih Ghobriel
2
CONTENTS
Page
Preface 4
1. Experimentation 6
2.1 Introduction
2.2 Lasers
2.3 Electricity
2.4 Ionizing radiation
2.5 Pressurized helium
2.6 Mercury lamps
2.7 Lead objects
2.8 Mercury spills
2.9 Equipment safety and care
4. Types of Error 14
4.1 Introduction
4.2 Personal errors
4.3 Random errors
4.4 Systematic errors
4.5 Accuracy and precision
4.6 Uncertainty and significant figures
4.7 Uncertainty in directly measured quantities
5. Random Errors 21
6. Propagation of Errors 30
7.1 Introduction
7.2 Graphical representation of data
7.3 Error bars
7.4 Histograms
7.5 Semi-log and log-log plots
7.6 Modeling
7.7 Regression
7.8 Line of best fit
7.9 The method of least squares
4
Preface
• Lectures, which give an introduction to physics in its purest form as one studies the
behavior of idealized models of reality.
• Tutorials, where the physical models are further investigated by assigning numbers to the
parameters and solving problems based on simplified versions of reality.
In fact, the extensive work in the lecture and tutorials may leave the experimenter
quite unprepared for what he/she encounters in the laboratory! In our everyday lives, we are
often faced with the difference between “theory” and “reality”: we all make plans based on
what we expect to happen, and we all know that not everything goes as planned.
Unfortunately, the physical sciences are not immune to this experience. Even the most
logically sound or mathematically elegant theory may fall in the face of one experimental
fact, which contradicts its predictions.
Specifically, the objectives of the introductory physics laboratory are to help you
B. Offenses
The university and its members have a responsibility to ensure that a climate
which might encourage, or conditions which might enable, cheating, misrepresentation
or unfairness not be tolerated. To this end all must acknowledge that seeking credit or
other advantages by fraud or misrepresentation or seeking to disadvantage others by
disruptive behavior is unacceptable…
(e) to submit without the knowledge and approval of the instructor to whom
it is submitted, any academic work for which credit has previously been
obtained or is being sought in another course or program of study in the
University or elsewhere;
1
Experimentation
Age after age, the development and success of science led to a well
established “method”. This method proved to be effective in obtaining, analyzing and
exploiting knowledge. That is the “scientific method”. Its power emanates from its
characteristic sequential logical steps to: recognize a phenomenon, search for the proper
answer, study the inputs and outputs of the given proposals and models, perform experiments
to test and investigate the various possibilities and establish the appropriate theories.
The laboratory is the place where the scientific ideas are investigated as a basis for
evaluation or judgment. Since physics is the most fundamental of all the sciences, most of the
principles discussed in the following sections can provide a useful basis and support to
experimenting in many other areas of science. Further, the physics laboratory turns, indeed,
to be the ideal and proper place to perform experimental measurements and, consequently,
adopt the “ scientific method “:
Often, in the early stages of one’s “scientific” career, the theory behind the
experiment is well established and the experimenter is required to investigate the theoretical
7
results through a systematic experimental procedure. In the advanced stages, one may very
well carry out experiments which initiate modeling and theoretical development.
Experiments may be used to a certain extent to prove the theories and also theories
may be created to confirm related experiments. Theories may be replaced by other ones
because the new ones prove to agree quantitatively with the experiments for a wider range of
variables. In fact, the relation between the observation of a certain complex physical
phenomenon, the theories trying to order and simplify this observation, and the experiments
conducted to create or test these theories may be illustrated as shown in Fig. (1.1).
OBSERVATIONS
Imagination
Inspiration
Ingenuity
EXPERIMENTS THEORIES
Although the scientific method is a way to check ideas and techniques, it is not the
way for invention of new theories, hypotheses and methods. In fact, some discoveries had
been based on haphazard trial-and-error approach, accidents, or experimentation without
systematic procedures. However, it is beyond argument that most of the breakthroughs and
great discoveries need devoted great minds with inventive skills. Further, the role played by
imagination, inspiration, ingenuity and luck cannot be denied in directing those gifted
scientists towards creating original achievements.
2.1 Introduction
In any work situation, health and safety should be of prime concern to everyone. Your
safety and the safety of your co-workers are paramount.
Although all the experiments in the lab are designed with safety in mind, there are
situations in which special care must be taken. Most health and safety precautions involve a
lot of common sense based on an understanding of the materials and equipment that you are
working with. The problem is that lasers, radioactive sources, and pressurized lamps,etc. may
be outside of the realm of your everyday experience. The following comments and
precautions may be useful with respect to the standard hazards encountered in the
undergraduate physics laboratories.
2.2 Lasers
2.3 Electricity
Most of the lab equipment is set up so that the exposed wires have harmlessly low
voltages. However, if you suspect that any terminals carry dangerously high voltages, be
careful not to touch them. Call your lab technician for assistance.
the scale knob to a lower setting after knowing the general magnitude of a
measurement .
• Avoid loose connections. Check the connections of the different parts of the circuit
every now and then.
Place the sources you are using as far from yourself and others as is reasonably
achievable and consistent with doing the experiment.
Minimize the time that the source is near you and others.
Some radioactive sources are solids and encapsulated to prevent contact. Others may be
in liquid form and hence the danger of spillage may arise. Therefore, certain care in
handling these sources is required. Use gloves to prevent contact with your skin. Mouth
pipetting is strictly prohibited.
Avoid unnecessary handling or contact with the skin.
Eating , drinking , and smoking are not permitted in any area where radioactive materials
are being used.
Protective gloves or forceps should be used in handling the radioactive materials.
Wash your hands thoroughly after working with the radioactive materials.
When not in use, keep the radioactive materials in a shielded-labeled container in a place
of limited access.
Loose sheets of data are a recipe for disaster! A suitable notebook (preferably containing
graph paper) can usually be found in the bookstore.
The following steps will ensure that your lab record is complete:
• Read the experiment write-up several times and make sure that you understand the
experiment.
• Start a fresh page in your lab book. Be sure to title and date the experiment.
• If necessary, look up any fundamental constants or the values of any parameters you will
require for your calculations.
• Perform the experiment, recording every measurement you make and any relevant
observations. You may also want to record any identifying characteristics of the
equipment that you are using for the measurement (serial number, defining marks, etc.) in
case you need to repeat or review a measurement at a later date.
• Summarize your data into charts, tables , graphs , and perform all required calculations.
Your lab book will be marked for completeness at the conclusion of each experiment.
Note that it is your responsibility to make sure that your demonstrator sees your lab book
before the end of the period.
In a formal report the single most important thing is to write from the point of view of
the reader. Assume that your reader(s) will have at least the same level of scientific
competence and experience that you do. The reader should understand from your report what
you have done, why you have done it, and what you have concluded. On the other hand, the
reader is not interested in going through the details of how you multiplied, divided etc. You
will have to use your judgment to determine what to include and what to exclude. For
example, most common measuring devices do not have to be described; a stopwatch is a
familiar tool. However, if you use some ingenious or novel method or tool in your
experiment, this should be explained in sufficient detail so that the reader can understand
what you did.
It is customary to write a report in the third person and in the past tense ( third –
person – past – passive ). Avoid verbosity; contrary to popular student belief, reports are
not marked on the basis of length. In fact, an unnecessarily long report demonstrates an
inability to be scientifically discriminating and may therefore earn a lower mark than a
shorter report containing the same material.
Title Page
…is the first page of your report. It should include the title of the experiment, the lab
manual designation of the experiment, the date the experiment is performed, the date the
report is submitted, your name and your partner’s name, your student number and your lab
section number.
Abstract
…is the second page of your report. It should include the purpose of the experiment, and
the results with uncertainty. The concept of an abstract is one which most students have
difficulty grasping at first. Perhaps the best way to understand what a scientific abstract
should contain is to look first at a nonscientific abstract. The following then is taken from the
“Inside Today’s Star” section on the front page of The Toronto Star (October 27, 1980),
under the title, “They Loved Elfi’s Win”:
“Darling of 10,000 spectators, Toronto’s Elfi Sclegel, 16, won Canada its first medal in the
vault event at the World Cup ’80 Gymnastics meet at Maple Leaf Gardens last night.”
13
As you can see, a wealth of information has been included in this one simple statement.
This is the ultimate aim of the scientific abstract: to state, in at most one paragraph, what
was accomplished during the experiment.
Introduction
…is a brief description of the physical principle being tested and how the testing is being
done. It will likely include any equations (numbered) that will be used in the analysis.
(Detailed derivations should not appear in the introduction. If a derivation is necessary, it can
be shown in an appendix. ) It may include historical information and/or a summary of
previous work. Because you have limited time to write your report (and the demonstrator has
limited time to read it !) we suggest that your introduction not exceed one page.
Procedure
There is no point in rewriting the procedure from the manual. For these reports, “refer
to manual” is acceptable. However, if the procedure you followed in the performance of the
experiment differs in any special way from that outlined in the manual, make note of it here.
This section should include all of your data in condensed form, normally a graph
(or graphs). Calculated results should be given in their final form and should include their
respective uncertainties. The most significant criticism of this section of a student report is
that it is unreadable – there is a lot of data, but no narrative. Lead the reader, in words,
through the data and the accompanying arguments and calculations. Extensive tables of data,
uncertainty calculations, derivations, etc. will interrupt the flow of the narrative for the
reader. You will need to decide what is essential for the reader to see “up front”, and what
may be relegated to an appendix.
Discuss your results fully here. Draw whatever conclusions seem appropriate in light
of your results and make comparisons to relevant theory if available.
Appendices
Use appendices to present material which is relevant to the report but which would
interrupt the flow of the report for a reader. You will need at least one appendix in which you
present your raw data, tabulated with its uncertainty (possibly your computer printout if you
have used a spreadsheet). You should also provide one example of each type of uncertainty
calculation (so that your demonstrator can evaluate your method), and you may need to
derive equations or answer questions asked in the lab manual which do not fit neatly into the
body of the report.
Make sure that you include the page initialed by the demonstrator.
14
4
Types of Error
4.1 Introduction
The term “error” is used in all sciences to indicate any divergence between a
computed, observed, or measured quantity and the corresponding true, specified, or
theoretical correct value. Unfortunately, the “true” value is often unknown and there is no
simple way to identify or even draw attention to the errors in an experimental procedure.
The process of taking any measurement must always involve some “uncertainty” or
“experimental error”. Since laboratory investigations necessitate taking measurements of
various physical variables, these errors are unavoidable. Note that the term “ error ” has come
to be synonymous with the term “uncertainty” in modern experimental science. It does not
mean that a mistake has been made in the measurement; it merely indicates a range over
which we are uncertain about the actual value.
Experimental errors can be generally classified into three types personal, systematic,
and random errors.
Sometimes, the experimenter may become biased in favor of one observation over the
others. The reason behind this preference may be that this value is published in one of the
references, or, according to the observer’s impression, it is “correct”. In general, when the
observer makes this type of “personal error”, automatically and concurrently a chain of
mistakes ensues:
• The preferred reading is considered to be exact or at least more significant than the others
which is not true and unjustified, scientifically. As a result, the other observations do not
have exactly the same chance and validity.
• To justify and support the preference of a certain observation, one may make further
mistakes such as rejection of other important readings, recording the smallest fractional
scale not exactly as they should be, or forcing other readings to comply with that which is
personally preferred.
15
• The observer fails to follow the systematic scientific procedure, which implies that all
observations, which are monitored and recorded at the same conditions, must have the
same significance and consideration.
Differentiate between what you get and what you wish to get
• Lack of thoroughness
Taking insufficient care may lead to experimental errors. Although the following
cases contain terms and situations which will be treated in details afterwards, typical
circumstances where lack of consideration may occur are:
• Lining up a meter stick in measuring the length of an object.
• Waiting until the balance stabilizes in measuring weights.
• Considering the estimated part (least significant digit) of the smallest division of a non-
digital scale.
• Rounding off significant figures through the process of data analysis.
• Applying the proper mathematical formula in the analysis.
In reading a scale, one may make some errors, which may be termed as “reading
errors”. They may arise in one of the following situations:
The apparent change in the relative position of an object when viewed from different
positions is called “ parallax ”. Since reading an analog scale usually involves judging the
position of a pointer or reference mark against a background scale, parallax is often an issue.
A typical example is the change in reading a scale due to change in the position of the eye. It
follows that the “parallax error” is the error associated with reading an instrument which uses
a scale or pointer because the observer’s eye and the point of reading are not in a line
perpendicular to the plane of the scale as shown in Fig.(4.1) and (4.2). A mirror placed
behind the object so that the reflection can be used to gauge the position of the eye is a
common way of reducing parallax. The following advice is given in terms of a measurement
with a meter stick but the principles are generally applicable.
• Line the meter stick against the edge of the object or as near to it as possible.
• Apply the meter stick edge-to-edge against the object. Keep the scale always
parallel to the line to be measured.
• The line of sight should be perpendicular to the scale.
• Do not incline your head to right or left when measuring horizontal scales, or
up or down when measuring vertical scales.
16
_
Viewing from _
above (error) _
_
Scale _
_
The line of _
sight should _
be perpen- _
dicular to _
the scale _
Wrong set up _
of the meter stick _
_
_
Right setup _
Viewing from of the meter stick _
below (error) _
_
_
_
(a) The reading of a vertical scale (b) The meter stick should be parallel
may appear different if viewed (not inclined) with respect to the
from above or below the perp- line of length measurement
endicular line to the scale
Thickness of the
meter stick (exagg-
erated) needs spe- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
cial consideration meter stick
in reading the scale
clock. This delay is known as the “reaction time” of the observer. (It can be measured
and so corrected for if necessary.)
Each experiment is subject to its own set of systematic errors, and there is no easy
way to identify them. In fact, it may only become clear that there was a problem well after the
experiment was performed. This is where careful note taking during an experiment may help.
Suppose that analysis of a particular set of measurements cast suspicion on the readings from
a certain meter. If the instrument can be identified, it is a simple matter to return to the lab
and check its calibration. Get into the habit of recording at least the place and time of the
experiment, and anything about the equipment which might identify it, or the environment
which might effect the outcome.
⇒ Note that the systematic errors do not change by performing the experiment repeatedly.
The repetition does not add any improvement to the situation.
For example, suppose that you have done a very careful measurement of the
temperature of the water in your aquarium over a period of several days and found an average
value of 20.25 oC over the period of a week and a spread in the daily measurements of about
0.05 oC . You then check your thermometer against a standard and discover that it always
reads 0.5 oC lower than the standard! Because your thermometer is poorly calibrated, your
measurement, although precise, is not accurate. Random errors affect the precision of a
measurement. A systematic error affects the accuracy.
The quantity 0.1 in the above example is called the absolute uncertainty. The
relative uncertainty is defined as the absolute uncertainty divided by the measured value. In
the example above, the relative uncertainty is ± 0.1 / 21.7 = ± 0.005. The relative uncertainty
is often quoted as a percentage (± 0.5 % in this example). This percentage implies the quality
of the reading and it is often called the precision of the measurement.
Nominal Should be
result… reported as… Because…
3.2 ± 0.05 3.20 ± 0.05 the uncertainty is in the second decimal place. There
should be an estimate of that digit.
The most basic type of error associated with a directly measured quantity is the
reading error. Suppose that one intends to determine the mass of a cylinder using a balance.
By examining the scale of the balance, one can see that it has a finite number of divisions,
perhaps 0.1 g apart. The pointer however, usually falls somewhere in between these
divisions. This gives rise to the doubtful or estimated figure of the measurement.
For illustration, consider the typical scale and devices shown below in Fig.(4.3).
2 3
The scale shows a reading that is certainly greater than 2.40 units and certainly less
than 2.50 units and the pointer is approximately half way between the markings. A
conservative estimate of the reading would be 2.45 ± 0.05 units. Notice that the stated reading
error (0.05 units) is half the smallest scale division (0.1 units) and is the maximum reading
uncertainty on this piece of equipment. In practice, a skilled observer may be able to reduce
the uncertainty to as low as 1/5 the smallest scale division.
For illustration, consider the typical digital devices and display shown below in
Fig.(4.4).
A digital clock only indicates which division on the clock’s time scale has most
recently passed. For example, in Fig.(4.4), the display reads 1.23 s. One can only be sure that
the elapsed time is greater than 1.23 s and less than 1.24 s. Thus, to encompass all
possibilities, the measurement should be recorded as 1.235 ± 0.005 s. A similar argument
can be made for any instrument with a digital readout.
21
Random Errors
In dealing with a population or a sample there are several useful variables which can
be defined. Consider a set of n repeated measurements { x1 , x 2 , ... , x n } .
The mean value gives the “true” or “most probable” value of x . This calculation
assumes that all of the experimental measurements are equally probable with random errors.
Often, one wishes to indicate how large the spread in the observations is around the
mean value. This quantity can be considered a measure of the “dispersion”, spread, or
variability and reflects on the precision of the measurement. The dispersion of experimental
measurements may be expressed through the following definitions.
• Mean deviation, d :
1 1 n
d = ( d1 + d 2 + ... + d n ) = ∑ di
n n i =1
d is a measure of the dispersion of experimental data about the mean value and so is
a measure of the precision of the measurement. Sometimes, the experimental results are
22
reported in the form x = xi ± d , although the more common measure of the spread is the
standard deviation discussed in the next section.
n
( 2 2 1 n 2
σ = d1 + d 2 + ... + d n = ∑ d i
n i =1
)
(In this case, squaring eliminates the sign of the deviation.) The positive square root of the
variance, σ , is called the standard deviation ( or sometimes, the root-mean-square
deviation )of a population.
1
σ=
n
∑d i
2
The standard deviation is always positive and has the units of the measured values
xi . The standard deviation is interpreted as a measure of the random uncertainty on each
measurement, xi , based on the entire population. For a finite sample, it can be statistically
shown that a better estimate of the uncertainty is given by
1
s=
n −1
∑ d i2
where s is known as the sample standard deviation. Notice that the difference between σ
and s is significant only for small values of n . The symbol s will be used in what follows
for the standard deviation associated with finite sets of actual observations and σ when
referring to defined distributions or to a universe of observations.
x=x±s
The standard deviation s and the reading errors are uncertainties associated with each
measurement xi of a certain variable x . The uncertainty on the mean value x is called the
“standard error” or “standard deviation of the mean” sx and is given by:
s
sx =
n
The experimental value of the measured variable x is usually reported as: x = x ± s x .
Notice that as the number of measurements increases, the standard error decreases. A
good guide as to how many measurements n of a particular quantity x one should make is
23
the following: at least enough times to reduce the standard error to the level of the reading
error of the equipment. This statement will become clearer from the example that to follow.
Consider the following experiment. You are to determine the diameter of a small
cylinder using a micrometer caliper, which has a reading uncertainty of at most 0.005 mm.
The results of 10 measurements are shown in the following table:
Reading 1 2 3 4 5 6 7 8 9 10
Diameter,mm 16.520 16.545 16.500 16.510 16.505 16.540 16.515 16.490 16.525 16.490
Now, look carefully at the numbers in the table. Is the reading uncertainty, 0.005 mm, a
reasonable estimate of the uncertainty on the measurement ? Put another way, do most of the
measurements fall within ± 0.005 mm of each other ? The answer is no. The measurements
have a spread, which is significantly larger than can be accounted for by the reading error. In
other words, the measurements indicate that there is some random uncertainty as well. Enter
the standard deviation…
Notice that we have calculated s to only one significant figure, since it is just an estimate.
The standard deviation and the reading error are both uncertainties on each diameter
measurement, but the reading error is 0.005 mm and the standard deviation is ± 0.018 mm.
Which one is “the” error ? In general, it is the larger value, since that is the one that limits
your precision and best represents the spread in the data.
The uncertainty on the average value of the 10 measurements, the standard error, is
0.018
sx = = 0.006 mm
10
This is of the order of the reading error of the micrometer (0.005 mm.) Therefore, the final
result of the measurement is:
24
x = 16.514 ± 0.006 mm
Almost any modern scientific calculator will perform the statistical calculations for
you: you simply enter the data. ( If your calculator has symbols such as SD, DATA, s, or σ,
then it is almost certainly capable of it. Either check your manual for instructions or bring
your calculator along to the lab and ask one of your demonstrators.) If you intend to use such
a calculator, you should perform a calculation longhand at least once to ensure that you know
how it arrives at the answer. In the Microsoft EXCEL program, the functions STDEVP and
STDEV calculate the population and sample standard deviations, respectively.
Example 5.2
Now let us consider the extreme opposite case. Imagine that you are weighing an
object on a balance. You find that
m = 26.10 ± 0.05 g
The 0.05 g error is the reading error of the balance and is about as good as you can do on
that particular piece of equipment. So, you take the mass off the balance, put it back on,
weigh it again and get exactly the same answer. Your partner gets the same result and your
demonstrator gets the same result too. So you have 4 independent measurements of the mass
of the body, each with the same result. Clearly the standard deviation is zero and the error on
each measurement is simply the reading error.
The real question in this case is how best to handle the uncertainty on the average. We
argued in the section on random error that if a measurement is repeated many times the
uncertainty on the average is better than the uncertainty on each measurement and is
calculated as the standard error. But is that true here ?
0 . 05
sm = = 0 . 03 ∴ m = 26 . 10 ± 0 . 03 g
4
Not sure ? Then carry the argument further. Suppose that you did the same
measurement over 10,000 times (!), each time getting the same result. The standard error on
the average is then
0 . 05
sm = = 0 . 0005 ∴ m = 26 . 1000 ± 0 . 0005 g
10000
Is it possible to measure a mass to 0.0005 g on a balance, which can only be read to 0.05 g ?
The rules of statistics are only a rough guide. In a situation like this, where it would
seem ludicrous to apply them, don’t be afraid to ignore them and use your “common sense”.
In this example, presenting your results as m = 26.10 ± 0.05 g is probably the reasonable
thing to do, because the same reading error has likely occurred in all cases.
25
statistics and experimental analysis stems from the fact that many actual populations
approximate the normal form closely. Mathematically, the frequency function, f (x) , which
describes the normal distribution is given by :
2
1 ⎛ x−x ⎞
− ⎜ ⎟
2⎝ σ ⎠
f ( x ) = fo e
The distribution is symmetric with a mean value x and standard deviation σ .
0.9
0.8
F
r 0.7
e 0.6
q
u 0.5
e 0.4 s = 0.5
n
c 0.3
s = 1.0
y 0.2
0.1 s = 1.5
0.0
2 4 6 8 10 12
Random V ariable , x
From the mathematical form of the normal distribution, it can be shown that 68% of
the area under the Gaussian curve lies between the limits x − σ and x + σ . Thus any
result xi chosen at random has a 68% chance of being within one standard deviation of the
average value x . Further, the chance increases to 95% within ± 2 σ and 99% within ± 3 σ
as shown in Fig.(5.2). The same argument can be stated for the relation between the standard
error s x and the true or expected value of the sample average.
f(x)
fo
x = x ±σ
deviation is then σ = x .
27
0.1
0 1 2 3 4 5 6 7 8 9 10 11 12 n
n 1 2 3 4 5 6 7 8 9 10
n
0 0.3679 0.1353 0.0498 0.0183 0.0067 0.0025 0.0009 0.0003 0.0001
1 0.3679 0.2707 0.1494 0.0733 0.0337 0.0149 0.0064 0.0027 0.0011 0.0005
2 0.1839 0.2707 0.2240 0.1465 0.0842 0.0446 0.0223 0.0107 0.0050 0.0023
3 0.0613 0.1804 0.2240 0.1954 0.1404 0.0892 0.0521 0.0286 0.0150 0.0076
4 0.0153 0.0902 0.1680 0.1954 0.1755 0.1339 0.0912 0.0573 0.0337 0.0189
5 0.0031 0.0361 0.1008 0.1563 0.1755 0.1606 0.1277 0.0916 0.0607 0.0378
6 0.0005 0.0120 0.0504 0.1042 0.1462 0.1606 0.1490 0.1221 0.0911 0.0631
7 0.0001 0.0034 0.0216 0.0595 0.1044 0.1377 0.1490 0.1396 0.1171 0.0901
8 0.0009 0.0081 0.0298 0.0653 0.1033 0.1304 0.1396 0.1318 0.1126
9 0.0002 0.0027 0.0132 0.0363 0.0688 0.1014 0.1241 0.1318 0.1251
In general, there are two different types of experimental data taken in the laboratory
and the question of rejection of measurements is handled in slightly different ways for each:
This is a set of measurements in which one or more observable is changed for each
data point. A measurement of this type should only be rejected if all of the following criteria
are satisfied:
• The suspect value is more than two or three standard deviations away from the average or
expected value.
• No other value appears spurious.
• A definite physical explanation of why the suspect value is spurious is found.
This is a set of measurements performed with all of the observable variables held
fixed. In this case you may be justified in rejecting a measurement, based on the first two
criteria, even if no physical explanation of the spurious result is at hand. (It may be that,
unknown to you, some large and isolated fluctuation in some environmental parameter has
occurred upsetting the single measurement). The prudent course would be to note this value
along with the rest of the data and then take several more measurements. If you are then
convinced that this is an isolated event, you may be justified in omitting it from your analysis.
Example (5.3)
The following is a set of data t i taken for the time interval in ms on the free fall apparatus.
The reading error is 0.05 ms:
29
Solution
t =
∑t i
(1) = 465.72 ms
n
(2) st =
∑( t i − t )2
= 0.22028… ≈ 0.2203 ms
n −1
s
(3) st = = 0.049257 ≈ 0.0493 ms
n
Because :
• The reading 467.00 ms is more than 5 s t far from t .
• No other reading in the table is far from t like this point .
Propagation of errors
In most cases, one cannot make direct measurements of the variables of interest.
Usually, other quantities are to be measured and then the required one calculated from them.
For example, suppose that the volume of a rectangular block is to be determined. Its length,
width, and height are first measured, and their product calculated to find the volume. Since
there will be a measurement uncertainty on each of the three dimensions, there must also be
an uncertainty in the value calculated for the volume. But what is that uncertainty ? In other
words, how would the uncertainties on the directly measured quantities combine or propagate
in order to contribute to the uncertainty on a calculated quantity.
Before considering the technical details of error propagation, let us reconsider just
what is meant when an experimenter writes down a measurement of a quantity such as
x ± Δx in his/her lab book. There are, in fact, two generally used meanings.
In this case, the experimenter guarantees that the actual value of the measured
quantity is greater than x − Δx , and is less than x + Δx . (Of course, this guarantee, like any
other guarantee, is only as good as the person who makes it. In this usage, Δ x is the
maximum possible error.
Consider a simple example. You are measuring the length of a lab table with the only
device you can find, a meter stick. The table is unfortunately longer than one meter, so you
mark off one meter on the table and then measure the difference, 50.0 cm, say. Considering
the definition of the edge of the table, the difficulty in marking the correct spot on the table
before moving the meter stick, etc., you feel that each measurement is accurate to about
0.2 cm. The total length of the table is then:
If these errors in the length are the limits of the error, then the experimenter is
guaranteeing that the first length is between 99.8 cm and 100.2 cm, and the second is between
49.8 cm and 50.2 cm. Thus, he can guarantee that the least the total length could be is
99.8 + 40.8 = 149.6 cm, and the most it could be is 100.2 + 50.2 = 150.4 cm. Thus, this
experimenter would report that L = 150.0 ± 0.4 cm.
This type of error, while safe, is conservative--sometimes overly so. Since the
uncertainties can be positive or negative, it is likely that when they combine, the answer is
closer to the actual value than is indicated by the limit of the uncertainty. For example, if one
of the measurements is 0.2 cm too small and the other 0.2 cm too large, the final answer is
“right on”. In the most probable error approach, the simple addition of the uncertainties will
certainly be an overestimate.
The interpretation of the uncertainties determines the rules for propagation. In the lab,
we usually use the interpretation of the uncertainties as probabilistic instead of
deterministic. The rules for the propagation of probable errors are discussed in the next
section.
Suppose that one is interested in determining the value of the dependent variable z
by measuring a set of physical quantities x1 , x 2 ,..., x k . Then z can be written as a function of
the independent variables x1 , x 2 ,..., x k :
z = f ( x 1 , x 2 , ... , x i , ... , x k )
Assuming that the measurement of each of the independent variables has resulted in
statistically significant probable errors of sx1 , sx2 ,...,sxk , the uncertainty on the dependent
variable z can be calculated as:
⎡⎛ ∂ f ⎞2 ⎛∂f ⎞ 2
2
⎛∂f ⎞ 2 ⎤
2
sz = ± ⎢⎜⎜ ⎟⎟ sx 1 + ⎜⎜
2
⎟⎟ sx 2 + ... + ⎜⎜ ⎟⎟ sx k ⎥
∂
⎢⎣⎝ 1 ⎠
x ∂
⎝ 2⎠x ∂
⎝ k⎠x ⎥⎦
The equation is based on the assumption that the standard errors are independent and
random. The proof of this formula is beyond the scope of these introductory notes.
For example, suppose that the measurable quantities are the length, width, and height
of a rectangular box and the volume is to be calculated. Then V = l w h , and the uncertainty
on V is given by:
2 2 2
⎛∂V ⎞ ⎛∂V ⎞ ⎛∂V ⎞
sV = ± ⎜⎜ ⎟⎟ sl2 + ⎜⎜ ⎟⎟ sw2 + ⎜⎜ ⎟⎟ sh2
⎝∂l⎠ ⎝ ∂ w⎠ ⎝∂h⎠
32
Because the errors are combined in quadrature (the square root of the sum of squares),
the largest error will tend to dominate. For example,
22 + 12 = 2.24 ≈ 2
where the final error is rounded off to the appropriate significant figure. In many cases, one
need only consider the largest of the terms in the sum, which reduces the amount of
computation considerably.
Let us review some typical applications of the general equation of the probable-error
approach for special mathematical forms. ( You should be able to derive any of these results
from the general form.) In the following expressions, x, y, and z are variables,
s x , s y , and s z , are the associated random errors, and a, b, and c are constants. Any constant
value will have zero fractional error and zero uncertainty.
If z = x± y
This rule can be extended to any number of variables. For example, suppose that
z is a function of three variables,
xy
z =
w
2 2 2
sz ⎛ sx ⎞ ⎛ s y ⎞ ⎛ sw ⎞
Then = ⎜ ⎟ + ⎜⎜ ⎟⎟ + ⎜ ⎟
z ⎝ x ⎠ ⎝ y ⎠ ⎝ w⎠
Corollary (i)
If z = c.xa . yb
2 2
sz ⎛ a sx ⎞ ⎛ b s y ⎞
then = ⎜ ⎟ + ⎜⎜ ⎟⎟
z ⎝ x ⎠ ⎝ y ⎠
If z = a . ln x
s
then sz = a. x
x
34
Example (6.1)
The measured diameter, d , of a sphere is d = 4.0 ± 0.4 cm, what is the value of the
radius, r , of the sphere ?
Solution:
d 4.0
r = = = 2.0 cm
2 2
sd 0.4
sr = = = 0.2 cm by corollary (i) of Sec.(6.3.2)
2 2
∴ r = 2.0 ± 0.2 cm
Notice that the fractional uncertainty on both the diameter and radius are the same.
Similarly the percent error is the same:
Example (6.2)
You are performing an air track experiment. You determine that the track cart travels
a distance of x = 50.0 ± 0.3 cm in a time t = 110.4 ± 0.5 s . What is its average velocity v ?
Solution:
The average velocity is defined as the distance traveled over the time taken.
x 50.0
v= = = 0.4528... cm / s ≈ 0.453 cm / s
t 110.4
35
2 2
sv ⎛ s x ⎞ ⎛ st ⎞
= ⎜ ⎟ +⎜ ⎟ using the formula of Sec(6.3.2)
v ⎝x⎠ ⎝t ⎠
2 2
⎛ 0.3 ⎞ ⎛ 0.5 ⎞
= ⎜ ⎟ +⎜ ⎟ ≈ 0.008
⎝ 50.0 ⎠ ⎝ 110.4 ⎠
Notice that this is not the uncertainty on v , but rather the fractional uncertainty on v .
Rearranging, one gets:
Notice that in the final result v has the same number of decimal places as s v . It is s v which
determines the number of significant figures in v .
Example ( 6.3)
Solution :
Example (6.4)
a
g =
sin θ
Solution :
g = f ( a ,θ )
2 2
⎛∂ f ⎞ ⎛∂ f ⎞
sg = ⎜⎜ ⎟⎟ sa2 + ⎜⎜ ⎟⎟ sθ2
⎝ ∂a ⎠ ⎝ ∂θ ⎠
2 2
⎛ 1 ⎞ 2 ⎛ a cosθ ⎞ 2
= ⎜⎜ ⎟⎟ sa + ⎜⎜ 2 ⎟⎟ sθ
⎝ sinθ ⎠ ⎝ sin θ ⎠
or,
2 2
sg ⎛1⎞ ⎛ cosθ ⎞ 2
= ⎜ ⎟ sa2 + ⎜⎜ ⎟⎟ sθ
g ⎝a⎠ ⎝ sinθ ⎠
7
Graphical Analysis
and
Linear regression
7.1 Introduction
The following are some practical suggestions for producing useful graphs:
• The size of the graph is important because it reflects the accuracy of the data. Therefore,
choose convenient scales that are easy to plot and read. You can often make use of more
of the available graph paper by choosing the appropriate orientation (usually described as
“portrait” or “landscape”).
• The graphs must be clear, neat and legible. Both axes should be fully and clearly labeled.
The graph should have a significant and simple title. Any symbol should be identified in,
or beside, the graph. Do not show calculations on a graph.
• The uncertainty at each point on a graph is usually shown by a bar or a cross (as discussed
below. ) If you have many closely spaced data points, or data points with very similar
uncertainties, you may want to put representative error bars on just a few points for clarity
of presentation. An explanatory caption or note may be given in the report.
38
Example
In many experiments, the variables plotted on the ordinate and abscissa both have
uncertainties. Then one may draw horizontal and vertical error bars on the same plot.
Fig.(7.2) shows the possible error bars on a graph.
y ⊕ y y
⊕ ⊕
⊕ ⊕ ⊕
⊕
⊕ ⊕
⊕
⊕ ⊕
x x x
(a) Horizontal error (b) Vertical error bars (c) Horizontal and vertical
bars on x uncertainty. on y uncertainty. error bars on both
x and y uncertainties
7.4 Histogram
When a measurement is subject to a random error, and is repeated many times, it is
likely that a range of outcomes will occur. It is often possible to build up a frequency
distribution of the measured outcome over the range of the measurement. A plot of such a
distribution is called a histogram and is a widely used method of reporting data.
Relative
frequency
x x x
(a) Small data set (b) Larger data set (c) Very large data set
There are several ways to produce a semi-log plot. You can evaluate the logarithm of
the values (in this case the activity measurements) and directly plot these on the ordinate axis.
Alternatively, you can use a special type of graph paper, called (not surprisingly) semi-log
paper whose ordinate axis is scaled logarithmically as in Fig.(7.4b). This has the advantage
40
that the activity can be plotted directly onto the graph with no mathematical manipulation.
Most of the available spreadsheet programs also offer a semi-log plot option.
A, A, ℓn A = −λ t + ℓn Ao
c/s c/s
2
100 10
90 i i Slope = −λ
-λ t
80 A = Aoe i i
70 i
60 i i
1 i
50 i 10
40 i i
30 i i ·
20 i
10 i i
0
0 10
0 10 20 t,s 0 10 20 t,s
(a) A plot of A vs.t on a linear scale . (b) Semi-log plot : t on a linear scale and
Obtaining the constant λ is tedious A on a logarithmic scale . Slope = −λ
It is common to find that one variable in an experiment has a power law dependence
on another, i.e.
y = a xn
where a and n are constants. Again, it is inconvenient to analyze ( x, y ) data of this type
plotted on a standard linear scale. In this case taking the log of both sides yields:
log y = n log x + log a
which shows a linear dependence between log y and log x . In this case, a log-log plot, in
which both axes are scaled logarithmically, is most useful. The exponent, n, can be extracted
from the slope of the line and the coefficient, a, from the intercept. For hand-plotting, log-log
graph paper is available.
7.6 Modeling
Once the experiment is performed, attention turns naturally to modeling. In the
physical science a model is usually a mathematical construction which relates the variables
under consideration. Models are important because they are usually more accessible to study
and analysis than the original system or phenomenon. Since it is easy to change any variable
in a mathematical model and study the effect on other variables, the model can be used to
predict or get new information about the original system or related systems that have not yet
been studied.
41
Several situations may arise when one starts to compare a model with a real system.
(See Fig.(7.5).) The agreement between the original system, represented by the experimental
data, and the adopted model, as represented for example by the straight line form, may vary
over a wide range. In a situation, such as encountered in the experiment of Fig.(7.5f), a
prudent experimenter would recheck everything--the experimental setup, errors, calculations,
analysis--before judging the validity of the model.
y y y
x x x
(a) (b) (c)
Complete agreement Agreement over part of the range
y y y Straight–line model
System observations
x x x
(d) (e) (f)
Different intercepts The observations are Complete disagreement
but the same slope scattered uniformly between the model and system
7.7 Regression
One method of modeling the relationship between variables is regression analysis or
regression modeling. A regression analysis is useful for precisely the kind of experiment
outlined in section (7.1) in which the frequency distribution of one variable is measured as a
function of another. The regression analysis may describe the relationship between two or
more variables. Usually, the value of the dependent variable is studied versus one or more
42
independent variables. A plot of the expected value of the dependent variable over the range
of the independent variable is called a regression curve (the independent variable is plotted
as the abscissa and the dependent variable as the ordinate). Because many functions can be
reduced to a linear form,
y = m x + b
through either a change of variables or applying a logarithmic scale, we will consider
specifically the problem of linear regression in the next sections.
~
y y
~
~
~ (x1,y1) (x2,yc2)
y = m1 x + b1
~ y=mx+b d1 d2 y = mx + b
~ y = m2 x + b2 (x1,yc1)
~ (x2,y2) Calculated
~ Measured
0 0
0 x 0 x
Fig(7.6) The best fitting straight line and Fig(7.7) Experimental points and the
two other lines consistent with slightly calculated values showing the
smaller and slightly larger slopes . corresponding deviations .
The simplest way to fit a line through the data is “by eye”. Using a transparent ruler
(or straight edge), move the defining edge of the ruler vertically until there are an equal
number of points above and below it. Rotate the ruler around the center of these points so that
the deviations on either side are roughly equal. This will be your “best-fit” line. In addition,
you will need to draw two other lines, which have larger and smaller slopes respectively, but
43
which still reasonably represent the data. (fig.(7.6)). These you will use to estimate the
uncertainties on the slope and intercept.
Since what constitutes the best straight line is clearly a matter of judgment, it is
entirely conceivable that given the same set of data, two experiments would draw different
“best” fit lines through it. It would obviously be better to have some analytic criterion to
decide on the best fit. This is provided by the least squares test.
Suppose that you have a set of data points ( xi , y i ) and a straight line through the data
points described by the slope and intercept parameters m and b , respectively. Then at xi ,
the calculated y -value ( i.e. the y -value predicted by the straight line ) is
y ci = m x i + b
A measure of how near the calculated value is to the experimental value, is the deviation
d i = yi − yci = yi − ( m xi + b )
(See Fig.(7.7) ). Clearly, in choosing a best fit line, your goal is to, in some sense, minimize
the deviation, since the smaller d i is, the closer the line passes to the experimental point.
( If d i = 0, the line actually goes through the point ). Of course, the individual deviations
can not all be minimized ( unless all of the data points fall exactly on a straight line ). What
can be minimized is the sum of the squares of the deviations,
M = ∑d i
2
(Squaring eliminates the sign of d i , i.e. it doesn’t matter whether the point is above or below
the line). In the least squares or linear regression method, the best-fit line is the one which
minimizes the sum of the squares of the deviations from the line.
The problem of finding the best-fit line is now reduced to the mathematical problem
of minimizing the function M in the two variables m and b . By means of the differential
calculus, this condition for the minimum can be expressed as
∂M ∂M
=0 and =0
∂m ∂b
In a few steps, one can obtain analytical expressions for the slope and intercept of the
best-fit line:
44
1
Slope m=
Nσ 2 ∑( x
i
i − x )( yi − y )
Intercept b = y − mx
N is the number of data points, x and y are the average values of xi and y i , respectively
and σ is the standard deviation of the x values as defined in Section 5. In addition,
statistical analysis leads to estimates of the uncertainties of the slope and intercept:
sd =
∑ d i2
N −2
N
sm = s y
N ∑ xi2 − ( ∑ xi ) 2
sb = s y
∑x i
2
N ∑ xi2 − ( ∑ xi ) 2
The standard deviations s m and s b are calculated on the assumption that the uncertainties on
the points are all the same. They give intervals of uncertainty with the usual Gaussian
implications (e.g. one standard deviation give 68% probability of enclosing the “universe
value” and so on).