10. Regression


One feature of Excel that is important to the chemistry laboratory is linear regression. We are going to use the Analysis Tools to find the slope, y-intercept, and predicted values of Y for data.

Your data for the density of water experiment should be similar to the one shown below.

We now want to analyze the data in columns A and B.
From the menu:

A new dialog box will appear:

Excel will open a new worksheet and input a information relevant to regression and include a plot.

We only want some of this information, so we need to copy it to sheet1:

The predicted Y values (in the red box) are needed to generate the best line through your data.  Copy this column and paste it into the sheet that has your mass and volume data.  Paste it into the column right next to your mass of water data.  The slope of the line is the "X Variable"; it is in the blue box.  The Y intercept is the value of your line when x=0.  So, on sheet 1, put this value in the Predicted Y value column and put a zero in the same row in the Volume column.

On Sheet1 you should now have

 

We now need to graph the information so we have data points and our best fit line (predicted y):

We now need to make our best fit line a solid line with no squares:

Remove the gray background (see section 9)

You now have a plot with a best fit line.

Back to the Tutorial

This tutorial was written by Dr. Laura Maki, it was last updated for Excel2000 on March 2, 2004 by Koni Stone. koni@chem.csustan.edu