






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth analysis of error bars and their usage in measurements. It includes the determination of the linear relationship between speed and time using the method of least squares and linear regression. The document also covers the concept of power laws and their representation on log-log paper.
Typology: Lecture notes
1 / 11
This page cannot be seen from the preview
Don't miss anything!







A purpose of many experiments is to find the relationship between measured variables. A good way to accomplish this task is to plot a graph of the data and then analyze the graph. These guide lines should be followed in plotting your data:
The microcomputer is a powerful tool for data
analysis. Commercial software is available that handles data and instructs the microcomputer to carry out graphical analysis. See your instructor about the availability of this software for your laboratory. As an example consider the study of the speed of an object (dependent variable) as a function of time (independent variable). The data are as fol lows:
Speed (m/s) Time (s) 0.45 ± 0.06 I 0.81 ±0.06 2 0.91 ±0.06 3 1.01 ± 0.06 4 1.36 ±0.06 5 1.56 ±0.06 6 1.65 ± 0.06 7 1.85 ± 0.06 8 2.17 ±0.06 9
Using the above guidelines, the data are graphed in Figure 1.7.
linear function of the time t. The general equation for a straight line is
~ E^ 1.
Ilv
Ilt
t (s) FIGURE L7 Speed versus time. The graphed data. v versus t. show a linear relation.
x = t, a =m, and Vo= b; then,
v = at + Vo (m/s) (23)
This is the form of the equation for the line drawn through the data, where Vo is the value of the velocity at t = 0 and a is the slope of the line that is the acceleration of the object. From the graph we see that Vo = 0.32 m/s. To determine the slope select two points on the line, but not data points, which are well separated, then
_ I _ av _ 2.35 0.40 (m/s)
= 1.95 (m/s) =020 (^12) (24) 9.5 (s). m s
The equation for the line is
v = 0.20t + 0.32 (m/s) (25)
The data plotted in Figure 1.7 are analyzed in the section on "Curve Fitting," page 23, as an example of linear regression. As a second example, let us consider the study of the distance traveled by an object as a function of time. The data are as follows:
Distance (m) Time (s)
0.20 ± 0.05 I 0.43 ±0.05 2 0.81 ± 0.05 3 1.57 ± 0.10 4 2.43 ± 0.10 5 3.81 ±O.IO 6 4.80± 0.20 7 6.39±0.20 8
The data are graphed, using the above guidelines, in Figure 1.8. In this instance a straight line through the data points would not be acceptable. An inspection of the graph suggests that d is proportional to t",
function of time and, hence, n = 2. Suppose that we know the theoretical relation between d and t is
(m) (26)
where a is the object's acceleration. Often it is
the data follow the above theoretical relation, then a graph of d versus t^2 should result in a straight line.
tis) FlGURE L8 Distance versus time. The graphed data. d versus t. show a nonlinear relation.
I I ?:J 001
<II I I IL^ ______________^ _ dx
3 4 x (em) FIGURE 1.12 Light intensity versus sample thickness. The linear relation obtained on semilog paper shows that the data obey Lambert's law.
Again, the general equation of a straight line is of the form:
horizontally, the curve will be a straight line with slope -0.4341' and vertical intercept log 10 , Using semilog paper, I is plotted on the logarithmic axis; the vertical intercept on this axis is 10 , Note that the slope of the line drawn through the data points may be used to calculate 1':
slope = L1(log I) log 10 -log 100 _ 0.294 em-I L1x (3.80-0.40) em (31)
From Lambert's law the theoretical slope is
slope = - 0.4341'
By equating theoretical and experimental slopes, we find that
-0.4341' = -0.294 em-I
and
l' = +0,678 em-I
Suppose the functional relation between the de
is given by
a graph of y versus x on semilog paper would not give a straight line.
Log-log paper is used to obtain a straight line plot when y and x satisfy a power-law relation:
semimajor axis R of the orbit of a planet is related to its period (time for one revolution around the sun) T:
where K is a constant. R is nonlinearly related to T.
(^22) INTRODUcnON
~ ~
10 1
100 A (log lOT)
10-1~~~~~~~~~~~~~~~~~~ 10- 1 100 10 1 102 10 3 T(years)
FIGURE 1.13 Planets: Semimajor axis versus period. The linear relation on log-log paper indicates Rand r obey a power law of the form of equation 32.
= log T2/3 + log K I^ {
= 2/3 log T + log K I^ {3 (34)
Let y = log R, x = log T, m =~, and b = log K1/3.
2-0 2 =3-0=) (35)
plot y versus x" or R versus T2/3 on regular graph
40
35
30
15
10
5
IAR I I I I I _________________ JI AT''!
T'I'l (years''!) FIGURE 1.14 Planets: R versus r2/3. shOwing a linear relation. This graph requires knowing the exponent in the power-law relation.
24
METHOD OF LEAST SQUARES AND UNEAR REGRESSION
/)Y1 = /)Y2 = ... = /)Yn (then the standard devia
FIGURE 1.15 Minimizing the least-squares sum gives the equation for the best straight line.
y(X) = llo + 0IX (42)
Y(X (^) i ) = best estimate for YI = 00 + 01 XI (44)
P(YI' •.. , Yn) = P(YI )P(Y2) •.. P(Yn)
oc-1-exp[- f. (Yi- OO- 0 I X;)2] (45)
each point (XI' Y/) to the line Y =llo + OtX. We
dao dOl
CURVE FITIING 25
dM
dM = _ 2 1: XiYi + 2al 1: xi + 2ao 1: Xi = 0 ( 49) da (^) l
n 1: X1Y/ (1: XI )(1: YI)
) - n 1: xi - (1: x;)
X + Jx are 2.741 +0.010, 2.832 ± 0.010, 2.678 ± 0.0.0, 2.763 ± 0.010. Calculate the mean, i, and
JQ = L^ n^ (OQ)2 -^ (Jbj )^2 (55) i_I obj
where the measured values are b) ± {)b}, j = 1, 2, ... ,n, and {)Q is the error in the calcu
where the partial derivative oaoloy/ is calculated
oao 7 xi - ( 7 Xi )X) (58) oY} = n 7 x; - ( 7 XI )
CURVE FITTING 27
such that we minimize the function M defined to or X^2 , test provides the answer to this question. X be is a number, without units, defined by
Taking the partial derivative of M with respect to ak and setting it equal to zero yields
where k = 0, I, 2, ... ,m. Equation 68 is a set of m + 1 equations in the m + 1 variables tlo, al> ... ,am which determines the best-fitting curve.
CHI-SQUARE TEST OF m
If a measurement is repeated many times then the distribution of measured values is expected to follow a theoretical distribution precisely in the limit that the number of measurements ap proaches infinity. The Gauss and Poisson distri butions are two of many theoretical distributions used in physics, corresponding to different kinds of experiments. (The Poisson distribution is dis cussed in Experiment 6.) Suppose we have repeated a measurement n times. We ask the question, "How do we deter mine whether the measurements follow the ex pected theoretical distribution?" The chi-square,
p(:c)
where m is the number of bins, Ok is the number of observed or measured values in the kth bin, and
The n measured values are divided into bins or ranges of values, where the bins must be chosen so that each bin contains several measured values. By assuming that the measurements follow an ex pected theoretical distribution, such as Gauss or Poisson distribution, we can calculate the expected
where Pk is the probability that any measurement falls in bin k. Figure 1.16 shows a Gauss dis tribution with 6 bins and probabilities PI -P 6 , where PI = P 6 = 0.02, P 2 = P (^) s = 0.14, and P 3 = P 4 = 0.34 for the Gauss distribution. The interpretation of X2, calculated from equa tion 69, is as follows:
ters that had to be calculated from the data to
i- 2u i- u i+u (^) i+ 2u x FIGURE 1.16 A Gauss distribution with six bins and probabilities PI through P 6 0
28
calculations m - c is the number of degrees of freedom.
A more precise interpretation of X^2 is obtained from a table of values of X2.
Example A distance is measured 20 times. The measured values of x (in em) are given in Table 1.1. The mean value, calculated from equation I, is x = 16.70 em. From equation 2 the standard devi ation is s = 0.16 em. To simplify the detennina tion of Prc. we choose the bin boundaries at x - s, x, and x + s, giving four bins as shown in Table
16.7 16.9 16.8 16.7 16.8 16.7 16. 17.0 16.7 16.7 16.9 16.5 16.3 16. 16.8 16.7 (^) 16.6 16.4 16.7 16.
FIGURE 1.17 A Gauss distribution with four bins and probabilities PI through P 4 •
TABLE 1.2 DMDlNG THE 20 MEASURED CALCULATION
on a bin boundary, then the observed number is detennined by alloting 0.5 to each bin. X2 is calculated from equation 69, where m = 4. The
ters, x and s, had to be detennined from the data. In addition,
is a constraint. Hence, c = 3 and m - c = 1. Since X2 < 1, the agreement is good. The probability obtained from a table of X values is that, on repeating the series of measure ments, larger deviations from the expected values would be observed. In this example the probabil ity, obtained from tables (see reference I), is between 0.90 and 0.95 that a set of measurements with two degrees of freedom will have X^2 > O.ll. In other words, if the set of measurements was repeated 100 times then we would expect that 90 to 95 cases would yield values of X^2 greater than 0.11. In interpreting the value of P obtained from tables, we may say that if
then the assumed distribution very probably cor responds to the observed one, while if
P < 0.02 or P > 0.98 (73)
then the assumed distribution is very unlikely.
Bin Number, k 2 'J 4
Range of x in each bin x <i-$ i-s<x<i i<x<i+s i+s<x or or or or x < 16.54 16.54 <x < 16.70 16.70 < x < 16.86 16.86 < x Probability Pk 0.16 0.34 0.34 0. Expected number Ek = nPk 3.2 6.8 6.8 3.