Often the goal of an experiment is to find the relationship between two variables (pressure and volume, time and temperature, etc.). As one variable changes, so does the other. Graphing is a useful way to visualize and describe these relationships. Because the use of graphs is so common in the sciences, it is important that you know how to construct and interpret graphs. When preparing graphs as part of chemistry lab reports at the University of Oregon, keep the following guidelines in mind:
Recognizing a pattern in data is helpful but generally not enough. It is even more useful to develop a mathematical equation that fits the data. This then allows us to calculate the value of the dependent variable at any value of the independent variable.
If the plot of the data gives a straight line, we can say that the dependent variable (plotted on the y-axis) is directly proportional to the independent variable (plotted on the x-axis) In that case, we can then fit the data to the equation for a straight line,
In some instances, a straight line arises when the data are fitted to the equation
The values of the slope and y-intercept are generally difficult to obtain directly from the graph. This is due in part to the difficulty in "eyeballing" the best straight line through the points, and also because the slope and intercept should represent the same level of precision as the data. (It is frequently impossible to assign the appropriate number of significant figures to a bet fit line which has been drawn by hand). A better approach is to apply statistics to define the most probable straight line fit of the data. For all linear plots prepared for the chemistry laboratory courses, you will be expected to determine the slope and y-intercept using the method of linear regression analysis (or method of least squares).
A linear regression analysis determines the best fit straight line through the points by minimizing the sum of the squares of the deviations of the points from the line. This analysis of the data can be done quickly using a computer spreadsheet program or graphing calculator. (Instructions are available on the course web page for performing a linear regression analysis using TI-81, TI-82, and TI-85 calculators.) Remember that your eyes are smarter than your calculator and you must always include a graph in your lab report. This graphical representation of the data allows you to visualize the relationship between the variables, see the "scatter" in the data, and consider whether "bad" or questionable data exists.
Remember that the precision of the information obtained from the graph should match the precision of the data that went into the graph. It is not desirable to lose significant digits when reading the graph, nor is it possible to generate more. Therefore, if the data used to generate the graph had N significant figures, numbers read from the graph should also have N significant figures. This rule holds true as well for values of the slope and y-intercept obtained by linear regression analysis. It will generally be necessary to round the values obtained from your calculator or computer program to the correct number of significant figures.