SlideShare a Scribd company logo
Graphical Analysis and Errors – MBL
I. Graphical Analysis

Graphs are vital tools for analyzing and displaying data. Graphs allow us to explore the
relationship between two quantities -- an independent variable usually plotted on the x-
axis and a dependent variable usually plotted on the y-axis. Consider an experiment
measuring the pressure of a gas while its temperature is varied. The measured pressure is
the dependent variable, depending on the temperature set by the experimenter.

In plotting a graph by hand, the key is to find a way to plot the two variables so that a
straight line is obtained. If you use a computer, on the other hand, software can be used to
fit data with a variety of functions. One purpose of this experiment is to compare how
you graph by hand to how you can use a computer to help you graph.

In general, you will face two types of situations:

1) You have no theory relating the two variables.

2) You have a theory that gives the functional relationship between the variables but the
theory contains parameters you need to determine.

In case 1, the relationship between variables can often be determined by investigating
different types of graphs. In case 2, the slope and intercept(s) of the graph can be used to
determine the values of parameters.

II. How to Draw a Good Graph

Keeping these points in mind will make for more effective graphs:

1) Determine the minimum and maximum values of the data in both the x and the y
directions.

2) Choose a scale for the tick marks on the two axes. Usually you will want to use as
much of the graph paper as possible and make the scale on a given axis just sufficient to
cover beyond the minimum and maximum values to be plotted. On the other hand, it's
also best to use simple values for the tick marks. Some compromise between these
objectives is usually necessary.

3) Plot the data carefully (including error bars if applicable). It's often a good idea to plot
the data as you take it instead of waiting until you finish collecting it. One of the lab
partners may be able to record data in a table as well as plotting it while the data is
coming in.




                                               1               Graphical Analysis and Errors
III. Linear Relationships

If the relationship between the two variables is linear there’s a simple relationship
between the values on the x- and y- axes:

                                      y(x) = m1 x + b1                                        (1)

Simply plot the points on regular graph paper, and draw a straight line of best fit through
the points. The best-fit line is your estimate of the straight line that comes closest to
passing through or near all the points. The slope of this line is the value of m1, and the y-
intercept (the y-value where the line crosses the y axis) is the value of b1.

Things to keep in mind when determining slope:

1. Use points as far apart as possible, to minimize effects of uncertainties in reading
points off the graph.

2. Use convenient points on the graph that the line goes through, not two points you
plotted on the graph. One problem with points you plotted is that you often know those
values to greater precision than you can read points off the graph. Other issues relate to
why you’re using a graph in the first place:

• the graph tells us whether a linear relationship really holds between the two variables

• the graph allows us to easily average over the fluctuations between data points

• the graph can be used to determine an experimental uncertainty for the slope and y-
intercept.

For a graph drawn by hand, to use the graph to estimate uncertainty in the slope and y-
intercept you should draw three straight lines on the graph:

1. A line of best fit with slope m1 and intercept b1.

2. A max-slope line (the steepest straight line you can draw that is still a reasonable fit to
       the data points), with slope m2 and intercept b2.

3. A min-slope line (the straight line with the least slope that is still a reasonable fit to the
       data points), with slope m3 and intercept b3.

Your values of slope and y-intercept can then be specified with approximate
uncertainties:
    Slope: m = m1 ± ( | m2 - m3 | /2) , where | | means take the absolute value.              (2)

    Y-intercept: b = b1 ± ( | b2 – b3 | /2)                                                   (3)

For graphs drawn on the computer the software generally uses a more sophisticated least-
squares fitting approach to determine the slope, intercept, and uncertainties.


                                                2               Graphical Analysis and Errors
IV. Nonlinear Relationships

Many times we encounter situations in which the relationship between variables is not
linear. We will examine two examples.

IV.A Power-law Relationships

In many situations the relationship between two variables is a power-law:

                                    y(x) = a xb                                                (4)

For instance, we will see later in the course that the period T of a planet orbiting the sun
varies as the radius of its orbit R to a power b. Thus:

                                    T = aRb                                                    (5)

To test whether a relationship is a power-law, and determine the parameters a and b, we
can use a log-log plot. To see how this works, we take the logarithm of both sides of
Equation (4):

                            log y = b log x + log a                                            (6)

While y is not linear in x, logy is linear in logx. If we computed the logarithms of the
points and plotted them, we would get a straight line. To make things easier, we can use
log-log graph paper, which automatically plots the logarithms without computation on
your part.

Using log-log paper:

Each logarithmic axis has a few cycles, with each cycle covering a factor of 10. If the
values on the x axis fall between 3 and 500, for instance, you would need three cycles.
The first cycle would cover values between 1-10, the second between 10-100, and the
third between 100-1000.

You do not need to take any logarithms – the paper does it for you.

As Equation (6) shows, if the cycles in the x- and y-directions have equal length, the
slope of a log-log plot is equal to the exponent b. To find the slope of the best-fit line,
pick two convenient points that are quite far apart along the best-fit line. If these points
are (x1,y1) and (x2,y2) the slope is:

                   b = (log y2 – log y1) / ( log x2 – log x1)       .                          (7)

The parameter a is the value of the y-intercept, although here the y-intercept is where
log(x) = 0, which is where x = 1. Note that b has no units while a has whatever units are
needed to make Equation (4) dimensionally correct.




                                               3                Graphical Analysis and Errors
IV.B Other Nonlinear Relationships

Sometimes you may encounter nonlinear relationships which are neither power-law
(which can be handled with log-log paper) nor exponential (which can be handled with
semi-log paper). If you know the mathematical relationship between the variables,
however, you may still be able to devise an approach that will yield a straight-line plot.

Suppose for instance, that you drop a ball and it accelerates due to gravity. You will see
in class that the velocity of the ball v after falling a distance d is:

                                   v2 = v02 + 2gd                                         (8)

Here g is the acceleration due to gravity and v0 is the initial velocity of the ball. By
measuring the velocity of the ball at various distances d, we can determine g. However, if
we do not know v0, then we cannot directly use any of the graphical methods we have
discussed thus far because the relationship is not linear, exponential or power-law. On the
other hand equation (8) shows that the graph of v2 vs. d should be a straight line, and the
slope and intercept will yield values of g and v0. The trick is always to find some way to
produce a straight line.

V. Summary of Graphical Analysis

1. Graphical analysis is a powerful tool for determining the relationship between two
       experimental quantities.

2. The key to obtaining quantitative results from graphical analysis is plotting the
       variables in such a way that a straight line is obtained.

3. If the relationship between the variables is exponential, then a plot using semi-log
         graph paper should be straight. The slope of the line gives the characteristic
         constant of the exponential.

4. If the relationship between the variables is a power-law, then a plot using log-log graph
         paper should be straight. The slope of the line gives the exponent.

5. If the relationship between the variables is nonlinear but not exponential or power-law,
         then you must search for another way of plotting the variables which yields a
         straight line.

6. Finally, ALWAYS plot data as you take it. This allows you to detect errors in your
        measurements before it is too late to correct them. It also shows where data points
        are most needed in order to determine the position and slope of the best-fit line.
        To find the correct minima and maxima for the plot, it is usually best to perform
        measurements at the end of the experimental ranges first. This also guarantees
        that the experimental apparatus is functioning properly over its full range.




                                              4              Graphical Analysis and Errors
VI. Error Analysis

VI.A Propagation of Errors

An important part of any experiment is evaluating the uncertainty in the final results.
Conceptually, this process can be divided into two stages:

(1) Determining the uncertainty of the initial data

(2) Propagating this uncertainty into the final result calculated from that data.

The first process varies widely depending on the type of measurement being performed.
Usually uncertainties in readings can be assigned based on a little experience and
common sense.

The second part of the process --propagating the initial uncertainty in the data through
various calculations and into the final result -- is a straightforward process. Suppose for
instance that z=sin θ, and we know the angle θ and its uncertainty ∆θ. What is the
resulting uncertainty in z? Using calculus we know that the change in sin θ with a small
change in θ is cos θ ∆θ, where ∆θ is measured in radians (this is very important!). Thus
the uncertainty on z is ∆z = cos θ ∆θ.

As a second example, suppose z is the sum of x and y, which have uncertainties ∆x and
∆y respectively, i.e. z=x+y. What is the uncertainty in z? We might guess that ∆z= ∆x+
∆y. However, if the uncertainties in x and y have opposite signs they will partly cancel
and the error in z may be quite small. A simple summation of the two uncertainties is too
pessimistic because it neglects this possible cancellation. The correct uncertainty is given
by ∆z2= ∆x2+ ∆y2.

The last page of this write-up has equations for error propagation in other situations.

Graphical Analysis and Errors: Exercises
1. Graph the data you obtained in the first pre-lab exercise using linear graph paper.
    Position should be on the y-axis and time on the x-axis. State your result completely
    (in other words, find values for the slope and y-intercept), including units. Using
    your graph, estimate the uncertainties on your slope and y-intercept.

Question 1: The data you obtained relates to the motion of an object. What does the
slope tell you about the motion? What does the y-intercept tell you? (Hint: think about
the units.)

2. In the second pre-lab exercise you measured the gravitational force F that one mass
     exerts on another a distance r away. We will now plot the force versus distance data
     on linear graph paper to see that there is not a linear relationship between F and r. If
     you are doing this lab assignment in lab classroom, you will enter your data into the
     Graphical Analysis program on the lab computer and use its plotting features to


                                              5               Graphical Analysis and Errors
make the graph. If you are doing this lab assignment at home, you can print your
    own graph paper at http://www.incompetech.com/graphpaper/. After plotting
    the data, you will see that the relationship is nonlinear. If you are doing this
    assignment in lab class, you can use the Graphical Analysis software to determine
    the appropriate function to the data to obtain an equation relating F and r.
    Since the data is not consistent with a linear relationship, try making graphs on log-
    log and semi-log (x-axis is linear with y-axis logarithmic) paper. Which works best?

Question 2: What do your results tell you about the relationship between F and r? From
   your best fit line on the appropriate graph, obtain a mathematical relationship
   between force and distance. If you used the Graphical Analysis software, how do
   the two methods compare? Do your two equations relating F and r agree with one
   another?

3. In the third pre-lab exercise you measured distances and speeds for an object that was
     released from an initial height of 4.0 m with an unknown initial speed. Your job is to
     determine the acceleration due to gravity and the initial speed of the object.
    If you make a linear plot of your values for v and d (where d is distance from a
    height of 4.0 m, as opposed to the actual y coordinate) either on graph paper (if
    you’re working at home) or using the Graphical Analysis software (if you’re
    working in the lab classroom) you should see that the graph of v vs. d is not linear.
    Now figure out what you should graph on the x- and y-axes to produce a linear
    graph. If you are working at home, calculate the necessary numbers for the new
    graph and make the plot. If you are working in the lab classroom, you can create one
    or more new columns in Graphical Analysis to produce the data you need for the
    new graph: to do this go to the Data menu, select New Column, and then Calculated.
    Enter a name, and select v or d from the Columns pull-down menu. You should then
    be able to set up a new column with just about any function of v or d you want.
    Whether you’ve created the new graph by hand, or used the Graphical Analysis
    software, once you’ve got a linear graph, find its slope and y-intercept.

Question 3: What is the value of the acceleration due to gravity in the simulation? Is this
a reasonable value?

Question 4: What is the initial speed of the object (i.e. the speed when it’s at a height of
4.0 m) ?

Error Propagation

Question 5. Suppose you know that F = m a, where F is the force, m is the mass and a is
the acceleration. If you measure m = 2.0 ± 0.1 kg and a = 5.1 ± 0.2 m /s2, what is the
value and uncertainty of F?

Question 6. Suppose we have a relationship y = a + sin θ. You measure a = 2.3 ± 0.2
and θ = 10.0 ± 1.0 degrees. What is the value and uncertainty of y?


                                              6               Graphical Analysis and Errors
Error Propagation
Below we give the equations governing the propagation of errors when combining two
measurements, x ± ∆x and y ± ∆y, or when taking a trigonometric function of an angle
θ ± ∆θ where ∆θ is in RADIANS.


1. Addition: x + y = z
                                   (∆z)2 = (∆x)2 + (∆y)2

2. Subtraction: x - y = z
                                   (∆z)2 = (∆x)2 + (∆y)2

3. Multiplication: xy = z
                                                 2         2
                                          ∆x   ∆y 
                                 ∆z = xy   +  
                                                 
                                          x   y 

4. Division: x/y = z
                                                 2         2
                                      x  ∆x   ∆y 
                                 ∆z =     + 
                                                y 
                                      y  x    

5. Exponentiation: xn = z
                                       ∆z = nxn-1∆x

6. Sine function: sin θ = z
                                    ∆z = (cos θ) ∆θ                         ∆θ in RADIANS

7. Cosine function: cos θ = z
                                    ∆z = (sin θ) ∆θ                         ∆θ in RADIANS

8. Tangent function: tan θ = z
                                    ∆z = (sec2 θ) ∆θ                        ∆θ in RADIANS




                                             7                 Graphical Analysis and Errors

More Related Content

PDF
Glossary ib
PPTX
Basics of calculus
DOC
Ordinary least squares linear regression
PPT
Least square method
PPT
Scatter plots
PPT
Calculus Ppt
PPTX
Method of least square
PPT
Continuing Our Look At Primary And Secondary Data
Glossary ib
Basics of calculus
Ordinary least squares linear regression
Least square method
Scatter plots
Calculus Ppt
Method of least square
Continuing Our Look At Primary And Secondary Data

What's hot (17)

PDF
Lecture3
PPT
SCATTER PLOTS
PPTX
A presentation on differencial calculus
PPTX
Curve fitting of exponential curve
PDF
A Fixed Point Theorem Using Common Property (E. A.) In PM Spaces
PDF
Numerical Methods in Mechanical Engineering - Final Project
PDF
Mathematics Book
PPT
Geographical Skills
PPSX
Dot Plot Presentation
PDF
Clustering - Machine Learning Techniques
PPT
Unit 3 Statistics
PPTX
Maths Modelling
PDF
Propagation of Error Bounds due to Active Subspace Reduction
PPTX
Diowane2003
DOCX
Macromolecules
PDF
Study and Analysis of Multidimensional Hilbert Space Filling Curve and Its Ap...
PPT
Extrapolation
Lecture3
SCATTER PLOTS
A presentation on differencial calculus
Curve fitting of exponential curve
A Fixed Point Theorem Using Common Property (E. A.) In PM Spaces
Numerical Methods in Mechanical Engineering - Final Project
Mathematics Book
Geographical Skills
Dot Plot Presentation
Clustering - Machine Learning Techniques
Unit 3 Statistics
Maths Modelling
Propagation of Error Bounds due to Active Subspace Reduction
Diowane2003
Macromolecules
Study and Analysis of Multidimensional Hilbert Space Filling Curve and Its Ap...
Extrapolation
Ad

Viewers also liked (20)

DOCX
Graphs of trigonometric functions
PDF
Intervals of validity
PDF
Modelling with first order differential equations
PDF
Solution of nonlinear_equations
PDF
Critical points
PDF
An applied approach to calculas
PPTX
Logicgates
DOCX
Real meaning of functions
PDF
Describing and exploring data
PDF
Linear approximations
DOCX
Recurrence equations
DOCX
Probability and statistics as helpers in real life
PDF
Matrix algebra
PDF
C4 discontinuities
PDF
The shortest distance between skew lines
PPTX
Thermo dynamics
PDF
Review taylor series
PDF
The newton raphson method
DOCX
Limitations of linear programming
DOCX
Linear programming
Graphs of trigonometric functions
Intervals of validity
Modelling with first order differential equations
Solution of nonlinear_equations
Critical points
An applied approach to calculas
Logicgates
Real meaning of functions
Describing and exploring data
Linear approximations
Recurrence equations
Probability and statistics as helpers in real life
Matrix algebra
C4 discontinuities
The shortest distance between skew lines
Thermo dynamics
Review taylor series
The newton raphson method
Limitations of linear programming
Linear programming
Ad

Similar to How to draw a good graph (20)

PPTX
PDF
Deriving relationships from graphs
PPTX
Chapter 12
DOC
Checklist for practicals[1]
PPTX
Stats chapter 3
PPT
Grade 11, U0-L3-Graphing
PPTX
Grade 9 U0-L5-Graphing
PPT
A2 edexcel physics unit 6 revision
DOCX
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
PDF
Spss anova
PDF
Numerical Methods 4th Edition George Lindfield John Penny
PPTX
8.-Planning--Analysis-and-evaluation.pptx
PPTX
Exponential model and cure fitting for engineering maths
PPTX
Presentation on textile mathematics
PPTX
Log.pptx
PPTX
2.4 Scatterplots, correlation, and regression
PPS
Correlation and regression
PPT
Independent and Dependent Variables
PDF
how do you interpret a scatter gramSolution Contents Quality.pdf
PPT
Deriving relationships from graphs
Chapter 12
Checklist for practicals[1]
Stats chapter 3
Grade 11, U0-L3-Graphing
Grade 9 U0-L5-Graphing
A2 edexcel physics unit 6 revision
INFORMATIVE ESSAYThe purpose of the Informative Essay assignme.docx
Spss anova
Numerical Methods 4th Edition George Lindfield John Penny
8.-Planning--Analysis-and-evaluation.pptx
Exponential model and cure fitting for engineering maths
Presentation on textile mathematics
Log.pptx
2.4 Scatterplots, correlation, and regression
Correlation and regression
Independent and Dependent Variables
how do you interpret a scatter gramSolution Contents Quality.pdf

More from Tarun Gehlot (20)

PDF
Materials 11-01228
PDF
Binary relations
PDF
Continuity and end_behavior
PDF
Continuity of functions by graph (exercises with detailed solutions)
PDF
Factoring by the trial and-error method
PDF
Introduction to finite element analysis
PDF
Finite elements : basis functions
PDF
Finite elements for 2‐d problems
PDF
Error analysis statistics
PDF
Matlab commands
PPT
Introduction to matlab
PDF
Linear approximations and_differentials
PDF
Local linear approximation
PPT
Interpolation functions
PDF
Propeties of-triangles
PDF
Gaussian quadratures
PDF
Basics of set theory
PPT
Numerical integration
PPT
Applications of set theory
PDF
Miscellneous functions
Materials 11-01228
Binary relations
Continuity and end_behavior
Continuity of functions by graph (exercises with detailed solutions)
Factoring by the trial and-error method
Introduction to finite element analysis
Finite elements : basis functions
Finite elements for 2‐d problems
Error analysis statistics
Matlab commands
Introduction to matlab
Linear approximations and_differentials
Local linear approximation
Interpolation functions
Propeties of-triangles
Gaussian quadratures
Basics of set theory
Numerical integration
Applications of set theory
Miscellneous functions

How to draw a good graph

  • 1. Graphical Analysis and Errors – MBL I. Graphical Analysis Graphs are vital tools for analyzing and displaying data. Graphs allow us to explore the relationship between two quantities -- an independent variable usually plotted on the x- axis and a dependent variable usually plotted on the y-axis. Consider an experiment measuring the pressure of a gas while its temperature is varied. The measured pressure is the dependent variable, depending on the temperature set by the experimenter. In plotting a graph by hand, the key is to find a way to plot the two variables so that a straight line is obtained. If you use a computer, on the other hand, software can be used to fit data with a variety of functions. One purpose of this experiment is to compare how you graph by hand to how you can use a computer to help you graph. In general, you will face two types of situations: 1) You have no theory relating the two variables. 2) You have a theory that gives the functional relationship between the variables but the theory contains parameters you need to determine. In case 1, the relationship between variables can often be determined by investigating different types of graphs. In case 2, the slope and intercept(s) of the graph can be used to determine the values of parameters. II. How to Draw a Good Graph Keeping these points in mind will make for more effective graphs: 1) Determine the minimum and maximum values of the data in both the x and the y directions. 2) Choose a scale for the tick marks on the two axes. Usually you will want to use as much of the graph paper as possible and make the scale on a given axis just sufficient to cover beyond the minimum and maximum values to be plotted. On the other hand, it's also best to use simple values for the tick marks. Some compromise between these objectives is usually necessary. 3) Plot the data carefully (including error bars if applicable). It's often a good idea to plot the data as you take it instead of waiting until you finish collecting it. One of the lab partners may be able to record data in a table as well as plotting it while the data is coming in. 1 Graphical Analysis and Errors
  • 2. III. Linear Relationships If the relationship between the two variables is linear there’s a simple relationship between the values on the x- and y- axes: y(x) = m1 x + b1 (1) Simply plot the points on regular graph paper, and draw a straight line of best fit through the points. The best-fit line is your estimate of the straight line that comes closest to passing through or near all the points. The slope of this line is the value of m1, and the y- intercept (the y-value where the line crosses the y axis) is the value of b1. Things to keep in mind when determining slope: 1. Use points as far apart as possible, to minimize effects of uncertainties in reading points off the graph. 2. Use convenient points on the graph that the line goes through, not two points you plotted on the graph. One problem with points you plotted is that you often know those values to greater precision than you can read points off the graph. Other issues relate to why you’re using a graph in the first place: • the graph tells us whether a linear relationship really holds between the two variables • the graph allows us to easily average over the fluctuations between data points • the graph can be used to determine an experimental uncertainty for the slope and y- intercept. For a graph drawn by hand, to use the graph to estimate uncertainty in the slope and y- intercept you should draw three straight lines on the graph: 1. A line of best fit with slope m1 and intercept b1. 2. A max-slope line (the steepest straight line you can draw that is still a reasonable fit to the data points), with slope m2 and intercept b2. 3. A min-slope line (the straight line with the least slope that is still a reasonable fit to the data points), with slope m3 and intercept b3. Your values of slope and y-intercept can then be specified with approximate uncertainties: Slope: m = m1 ± ( | m2 - m3 | /2) , where | | means take the absolute value. (2) Y-intercept: b = b1 ± ( | b2 – b3 | /2) (3) For graphs drawn on the computer the software generally uses a more sophisticated least- squares fitting approach to determine the slope, intercept, and uncertainties. 2 Graphical Analysis and Errors
  • 3. IV. Nonlinear Relationships Many times we encounter situations in which the relationship between variables is not linear. We will examine two examples. IV.A Power-law Relationships In many situations the relationship between two variables is a power-law: y(x) = a xb (4) For instance, we will see later in the course that the period T of a planet orbiting the sun varies as the radius of its orbit R to a power b. Thus: T = aRb (5) To test whether a relationship is a power-law, and determine the parameters a and b, we can use a log-log plot. To see how this works, we take the logarithm of both sides of Equation (4): log y = b log x + log a (6) While y is not linear in x, logy is linear in logx. If we computed the logarithms of the points and plotted them, we would get a straight line. To make things easier, we can use log-log graph paper, which automatically plots the logarithms without computation on your part. Using log-log paper: Each logarithmic axis has a few cycles, with each cycle covering a factor of 10. If the values on the x axis fall between 3 and 500, for instance, you would need three cycles. The first cycle would cover values between 1-10, the second between 10-100, and the third between 100-1000. You do not need to take any logarithms – the paper does it for you. As Equation (6) shows, if the cycles in the x- and y-directions have equal length, the slope of a log-log plot is equal to the exponent b. To find the slope of the best-fit line, pick two convenient points that are quite far apart along the best-fit line. If these points are (x1,y1) and (x2,y2) the slope is: b = (log y2 – log y1) / ( log x2 – log x1) . (7) The parameter a is the value of the y-intercept, although here the y-intercept is where log(x) = 0, which is where x = 1. Note that b has no units while a has whatever units are needed to make Equation (4) dimensionally correct. 3 Graphical Analysis and Errors
  • 4. IV.B Other Nonlinear Relationships Sometimes you may encounter nonlinear relationships which are neither power-law (which can be handled with log-log paper) nor exponential (which can be handled with semi-log paper). If you know the mathematical relationship between the variables, however, you may still be able to devise an approach that will yield a straight-line plot. Suppose for instance, that you drop a ball and it accelerates due to gravity. You will see in class that the velocity of the ball v after falling a distance d is: v2 = v02 + 2gd (8) Here g is the acceleration due to gravity and v0 is the initial velocity of the ball. By measuring the velocity of the ball at various distances d, we can determine g. However, if we do not know v0, then we cannot directly use any of the graphical methods we have discussed thus far because the relationship is not linear, exponential or power-law. On the other hand equation (8) shows that the graph of v2 vs. d should be a straight line, and the slope and intercept will yield values of g and v0. The trick is always to find some way to produce a straight line. V. Summary of Graphical Analysis 1. Graphical analysis is a powerful tool for determining the relationship between two experimental quantities. 2. The key to obtaining quantitative results from graphical analysis is plotting the variables in such a way that a straight line is obtained. 3. If the relationship between the variables is exponential, then a plot using semi-log graph paper should be straight. The slope of the line gives the characteristic constant of the exponential. 4. If the relationship between the variables is a power-law, then a plot using log-log graph paper should be straight. The slope of the line gives the exponent. 5. If the relationship between the variables is nonlinear but not exponential or power-law, then you must search for another way of plotting the variables which yields a straight line. 6. Finally, ALWAYS plot data as you take it. This allows you to detect errors in your measurements before it is too late to correct them. It also shows where data points are most needed in order to determine the position and slope of the best-fit line. To find the correct minima and maxima for the plot, it is usually best to perform measurements at the end of the experimental ranges first. This also guarantees that the experimental apparatus is functioning properly over its full range. 4 Graphical Analysis and Errors
  • 5. VI. Error Analysis VI.A Propagation of Errors An important part of any experiment is evaluating the uncertainty in the final results. Conceptually, this process can be divided into two stages: (1) Determining the uncertainty of the initial data (2) Propagating this uncertainty into the final result calculated from that data. The first process varies widely depending on the type of measurement being performed. Usually uncertainties in readings can be assigned based on a little experience and common sense. The second part of the process --propagating the initial uncertainty in the data through various calculations and into the final result -- is a straightforward process. Suppose for instance that z=sin θ, and we know the angle θ and its uncertainty ∆θ. What is the resulting uncertainty in z? Using calculus we know that the change in sin θ with a small change in θ is cos θ ∆θ, where ∆θ is measured in radians (this is very important!). Thus the uncertainty on z is ∆z = cos θ ∆θ. As a second example, suppose z is the sum of x and y, which have uncertainties ∆x and ∆y respectively, i.e. z=x+y. What is the uncertainty in z? We might guess that ∆z= ∆x+ ∆y. However, if the uncertainties in x and y have opposite signs they will partly cancel and the error in z may be quite small. A simple summation of the two uncertainties is too pessimistic because it neglects this possible cancellation. The correct uncertainty is given by ∆z2= ∆x2+ ∆y2. The last page of this write-up has equations for error propagation in other situations. Graphical Analysis and Errors: Exercises 1. Graph the data you obtained in the first pre-lab exercise using linear graph paper. Position should be on the y-axis and time on the x-axis. State your result completely (in other words, find values for the slope and y-intercept), including units. Using your graph, estimate the uncertainties on your slope and y-intercept. Question 1: The data you obtained relates to the motion of an object. What does the slope tell you about the motion? What does the y-intercept tell you? (Hint: think about the units.) 2. In the second pre-lab exercise you measured the gravitational force F that one mass exerts on another a distance r away. We will now plot the force versus distance data on linear graph paper to see that there is not a linear relationship between F and r. If you are doing this lab assignment in lab classroom, you will enter your data into the Graphical Analysis program on the lab computer and use its plotting features to 5 Graphical Analysis and Errors
  • 6. make the graph. If you are doing this lab assignment at home, you can print your own graph paper at http://www.incompetech.com/graphpaper/. After plotting the data, you will see that the relationship is nonlinear. If you are doing this assignment in lab class, you can use the Graphical Analysis software to determine the appropriate function to the data to obtain an equation relating F and r. Since the data is not consistent with a linear relationship, try making graphs on log- log and semi-log (x-axis is linear with y-axis logarithmic) paper. Which works best? Question 2: What do your results tell you about the relationship between F and r? From your best fit line on the appropriate graph, obtain a mathematical relationship between force and distance. If you used the Graphical Analysis software, how do the two methods compare? Do your two equations relating F and r agree with one another? 3. In the third pre-lab exercise you measured distances and speeds for an object that was released from an initial height of 4.0 m with an unknown initial speed. Your job is to determine the acceleration due to gravity and the initial speed of the object. If you make a linear plot of your values for v and d (where d is distance from a height of 4.0 m, as opposed to the actual y coordinate) either on graph paper (if you’re working at home) or using the Graphical Analysis software (if you’re working in the lab classroom) you should see that the graph of v vs. d is not linear. Now figure out what you should graph on the x- and y-axes to produce a linear graph. If you are working at home, calculate the necessary numbers for the new graph and make the plot. If you are working in the lab classroom, you can create one or more new columns in Graphical Analysis to produce the data you need for the new graph: to do this go to the Data menu, select New Column, and then Calculated. Enter a name, and select v or d from the Columns pull-down menu. You should then be able to set up a new column with just about any function of v or d you want. Whether you’ve created the new graph by hand, or used the Graphical Analysis software, once you’ve got a linear graph, find its slope and y-intercept. Question 3: What is the value of the acceleration due to gravity in the simulation? Is this a reasonable value? Question 4: What is the initial speed of the object (i.e. the speed when it’s at a height of 4.0 m) ? Error Propagation Question 5. Suppose you know that F = m a, where F is the force, m is the mass and a is the acceleration. If you measure m = 2.0 ± 0.1 kg and a = 5.1 ± 0.2 m /s2, what is the value and uncertainty of F? Question 6. Suppose we have a relationship y = a + sin θ. You measure a = 2.3 ± 0.2 and θ = 10.0 ± 1.0 degrees. What is the value and uncertainty of y? 6 Graphical Analysis and Errors
  • 7. Error Propagation Below we give the equations governing the propagation of errors when combining two measurements, x ± ∆x and y ± ∆y, or when taking a trigonometric function of an angle θ ± ∆θ where ∆θ is in RADIANS. 1. Addition: x + y = z (∆z)2 = (∆x)2 + (∆y)2 2. Subtraction: x - y = z (∆z)2 = (∆x)2 + (∆y)2 3. Multiplication: xy = z 2 2  ∆x   ∆y  ∆z = xy   +      x   y  4. Division: x/y = z 2 2 x  ∆x   ∆y  ∆z =   +   y  y  x    5. Exponentiation: xn = z ∆z = nxn-1∆x 6. Sine function: sin θ = z ∆z = (cos θ) ∆θ ∆θ in RADIANS 7. Cosine function: cos θ = z ∆z = (sin θ) ∆θ ∆θ in RADIANS 8. Tangent function: tan θ = z ∆z = (sec2 θ) ∆θ ∆θ in RADIANS 7 Graphical Analysis and Errors