Docsity

Estimated Regression - Applied Regression Analysis - Lecture Slides, Slides of Data Analysis & Statistical Methods

Partial preview of the text

Download Estimated Regression - Applied Regression Analysis - Lecture Slides and more Slides Data Analysis & Statistical Methods in PDF only on Docsity!

  • The estimated regression equations is
    • W (^) i= - 231 + 5.9 H (^) i
    • Here are the calculations:
  1. 879
  2. 50

ˆ 961.^25 1 2 = = −

− ⋅ −

X X

X X Y Y B

B ˆ^0 = Y − B ˆ 1 X = 181. 88 −( 5. 879 )( 70. 25 ) = − 231. 139

Do the estimates make sense to you? What

is the meaning of the estimated coefficients?

  • β 0 ^ = - 232 is the intercept which

measures the weight when the height is

zero. This does not have useful

information in it because

1. Zero height is impossible

2. The intercept captures the mean effect of all

other excluded explanatory variables (such

as calorie intake…..) on weight.,

  1. Question 5 on Page 15
  • a. β 1 is the true, theoretical value of the slope that expresses the relationship between X and Y. It is unobservable since we have a sample of data, and not all the data possible. β 1 ^ is an estimate of β 1 that is based on the sample data and comes from the regression process.
  • b. e is a theoretical error term that cannot be observed; it comes from measurement error, factors that influence the dependent variable that have not been included in the model, and random variation. e^ is an actual observation of the error term that comes from estimating the regression. It is also called the residual.
  • c. Y is the actual value of the dependent variable. Ŷ is the fitted or predicted value of the independent variable.
  1. Answer Question 8 on Page 15
  • a. It means that the process finds estimates for

the coefficients that minimize the squares of the

errors.

  • b. It indicates that OLS minimizes the sum of

the errors squared, not just the sum of the

errors.

  • c. If you found the coefficient estimates by

choosing values that minimize the sum of errors,

you would not get the best regression line,

because positive and negative errors would

cancel each other out. That is why the errors

must be squared.

To use EViews to estimate the coefficients

of our height weight problem

  1. Create and save an Excel spreadsheet
    • In boxes A1, B1 and C1 type obs, w, h

respectively

  1. Save your excel spreadsheet as book
  2. Open EViews
  3. Click on File, then new, then workfile
  4. Choose undated
    • Set the start to 1 and end to 8
  1. Go to file then import then read excel
  2. Find your excel file; make sure you choose excel as the option under file type
  3. EViews will give you a window in which you will need to type w h (make sure there is a space between the two)
  4. Now on the small window click on view and then show and then type w h in the box
  5. EViews will give you a window with the values of w and h recorded in them. Check the values and make sure they are correct.
  6. Now go on the top of the page and click on quick then estimate equation and then in the box type w c h (there should be a space between w, c , and h.)
    • We always type the dependent variable first, then c for constant or intercept (if you don’t’ type c, EViews will estimate an equation without an intercept.) and then the independent variable

Here is how your results should

look

  • Dependent Variable: W
  • Method: Least Squares
  • Date: 09/09/07 Time: 08:
  • Sample: 1 8
  • Included observations: 8
  • Variable Coefficient Std. Error t-Statistic Prob.
  • C -231.1391 92.54581 -2.497565 0.
  • H 5.879205 1.314659 4.472039 0.
  • R-squared 0.769223 Mean dependent var 181.
  • Adjusted R-squared 0.730760 S.D. dependent var 32.
  • S.E. of regression 16.81016 Akaike info criterion 8.
  • Sum squared resid 1695.489 Schwarz criterion 8.
  • Log likelihood -32.77665 F-statistic 19.
  • Durbin-Watson stat 1.128086 Prob(F-statistic) 0.
  • Press on shift and then highlight the output and copy it

on a word document

  • Then
    1. Identify the values on the EViews output that you understand
    2. Identify the values on the EViews output that you don’t understand
  • Send the assignment to me before Wednesday,

September 12 at noon as a word attachment to an email.

  • Make sure that under the subject of the email you put your last name, class, asst 2.
  • If it was me then the subject would have been
    • Khorassani,econ420,asst