EXCEL 2007: Two-Variable Regression Using Data Analysis Add-in

A. Colin Cameron, Dept. of Economics, Univ. of Calif. - Davis

This January 2009 help sheet gives information on This handout is the first place to go to for two-variable regression output.
After reading this move onto Excel 2007: Statistical Inference for Two-Variable Regression

Other ways to do two-variable regression are discussed
in Excel 2007: Two-way Plots in the section on Add a trendline and
in Excel 2007: Two Variable Regression using Functions LINEST


TWO-VARIABLE LINEAR REGRESSION 

The population regression model is:    y = β1 + β2 x + u

We wish to estimate the regression line:     y = b1 + b2 x


REGRESSION USING THE DATA ANALYSIS ADD-IN

This requires the Data Analysis Add-in: see Excel 2007: Access and Activating the Data Analysis Add-in

The data used are in carsdata.xls

Bivariate regression

We select OK and fill out the dialog box as follows

Two-variable linear regression

We obtain

Two-variable linear regression


INTERPRETING THE REGRESSION SUMMARY OUTPUT

The key output is given in the Coefficients column in the last set of output:
Thus the fitted line is:     y = 0.8 + 0.4 x
or                             CARS = 0.8 + 0.4 HHSIZE

The regression statistics outyput gives measures of how well the model fits the data. In particular

The remaining output (ANOVA table and t Stat, p-value, .... ) is used for statistical inference.
See  Excel 2007: Statistical Inference for Two-Variable Regression

For further information on how to use Excel go to
     http://cameron.econ.ucdavis.edu/excel/excel.html