next up previous contents home.gif
Next: Post Regression Analysis Up: How to Run Regression with Excel Previous: Scatter Plot

Run regression

You should have detected a positive relationship between education and income. We are interested in how such a relationship is significant -- that is, the explanatory power of Education on Income. To see this, we need to apply an econometric model. We will run linear regression now. The model is the following:

Incomei = $\displaystyle \beta_{0}^{}$ + $\displaystyle \beta_{1}^{}$Sexi + $\displaystyle \beta_{2}^{}$Educationi + $\displaystyle \epsilon_{i}^{}$.

$ \beta_{0}^{}$ is the intercept, $ \beta_{1}^{}$ is an intercept dummy, and $ \beta_{2}^{}$ is the slope coefficient. Here, we don't make any assumption on the statistical distribution on $ \epsilon_{i}^{}$. That is unnecessary for an ordinary least squares (OLS) regression. For more detail on OLS, see Statistics Refresher.

Back to Excel now. Select the data range, including the data labels. Select Data Analysis... option from Tools menu. Select Regression option and click \fbox{OK}.


regression.gif


You will see the Regression dialogue box. Now you need to do the following:

  • Input Y Range: $ \Rightarrow$ Click on button.gif to change to the selection view. Left-click on cell A1, hold the left mouse button and drag the cursor down to cell A26. This will select the range A1:A26.1 Click on button1.gif to return to the normal view.
  • Input Y Range: $ \Rightarrow$ Do the same as above. Select the range B1:C26 as explanatory variables.
  • Tick the Labels box.
  • Output options Check New Worksheet Ply:
    $ \Rightarrow$
    Tick Residuals if you will.
    $ \Rightarrow$
    Tick Residual Plots if you will.
    $ \Rightarrow$
    Tick Line Fit Plots (I find this one more useful).
  • Click \fbox{OK}


regression1.gif


This will produce the following output:


result.gif


You have also obtained the following scatter plot, thanks to the Line Fit Plot option.

scatter1.gif


For the interpretation of this output, refer to Statistics Refresher.

1 The expression A1 means in Excel that cell A1 is absolutely referenced. For more detail, consult Excel help on Absolute Reference.

next up previous contents home.gif
Next: Post Regression Analysis Up: How to Run Regression with Excel Previous: Scatter Plot
Copyright © 2002, Naoya Kaneko
Hosted by www.Geocities.ws

1