Presentation is loading. Please wait.

Presentation is loading. Please wait.

MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two.

Similar presentations


Presentation on theme: "MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two."— Presentation transcript:

1 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two explanatory variables. EARNINGS =  1 +  2 S +  3 EXP + u S 11 EARNINGS EXP

2 2 Specifically, we will look at an earnings function model where hourly earnings, EARNINGS, depend on years of schooling (highest grade completed), S, and years of work experience, EXP. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u S 11 EARNINGS EXP

3 3 The model has three dimensions, one each for EARNINGS, S, and EXP. The starting point for investigating the determination of EARNINGS is the intercept,  1. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u S 11 EARNINGS EXP

4 4 Literally the intercept gives EARNINGS for those respondents who have no schooling and no work experience. However, there were no respondents with less than 6 years of schooling. Hence a literal interpretation of  1 would be unwise. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u S 11 EARNINGS EXP

5 pure S effect 5 S 11 EARNINGS  1 +  2 S MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u The next term on the right side of the equation gives the effect of variations in S. A one year increase in S causes EARNINGS to increase by  2 dollars, holding EXP constant. EXP

6 pure EXP effect 6 S 11  1 +  3 EXP EARNINGS EXP MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u Similarly, the third term gives the effect of variations in EXP. A one year increase in EXP causes earnings to increase by  3 dollars, holding S constant.

7 pure EXP effect 7 S 11  1 +  3 EXP  1 +  2 S +  3 EXP EARNINGS EXP  1 +  2 S combined effect of S and EXP MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u Different combinations of S and EXP give rise to values of EARNINGS which lie on the plane shown in the diagram, defined by the equation EARNINGS =  1 +  2 S +  3 EXP. This is the nonstochastic (nonrandom) component of the model. pure S effect

8 8 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u The final element of the model is the disturbance term, u. This causes the actual values of EARNINGS to deviate from the plane. In this observation, u happens to have a positive value. pure EXP effect S 11  1 +  3 EXP EARNINGS EXP u  1 +  2 S pure S effect  1 +  2 S +  3 EXP combined effect of S and EXP  1 +  2 S +  3 EXP + u

9 9 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u A sample consists of a number of observations generated in this way. Note that the interpretation of the model does not depend on whether S and EXP are correlated or not. pure EXP effect S 11  1 +  3 EXP EARNINGS EXP u  1 +  2 S pure S effect  1 +  2 S +  3 EXP combined effect of S and EXP  1 +  2 S +  3 EXP + u

10 pure EXP effect 10 S 11  1 +  3 EXP  1 +  2 S +  3 EXP + u EARNINGS EXP u However we do assume that the effects of S and EXP on EARNINGS are additive. The impact of a difference in S on EARNINGS is not affected by the value of EXP, or vice versa. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE EARNINGS =  1 +  2 S +  3 EXP + u  1 +  2 S pure S effect  1 +  2 S +  3 EXP combined effect of S and EXP

11 The regression coefficients are derived using the same least squares principle used in simple regression analysis. The fitted value of Y in observation i depends on our choice of b 1, b 2, and b 3. 11 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

12 The residual e i in observation i is the difference between the actual and fitted values of Y. 12 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

13 We define RSS, the sum of the squares of the residuals, and choose b 1, b 2, and b 3 so as to minimize it. 13 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

14 First, we expand RSS as shown. 14 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

15 15 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Then we use the first order conditions for minimizing it. Fitted modelTrue model

16 We thus obtain three equations in three unknowns. Solving for b 1, b 2, and b 3, we obtain the expressions shown above. (The expression for b 3 is the same as that for b 2, with the subscripts 2 and 3 interchanged everywhere.) 16 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

17 17 The expression for b 1 is a straightforward extension of the expression for it in simple regression analysis. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

18 18 However, the expressions for the slope coefficients are considerably more complex than that for the slope coefficient in simple regression analysis. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

19 19 For the general case when there are many explanatory variables, ordinary algebra is inadequate. It is necessary to switch to matrix algebra. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE Fitted modelTrue model

20 . reg EARNINGS S EXP Source | SS df MS Number of obs = 540 -------------+------------------------------ F( 2, 537) = 67.54 Model | 22513.6473 2 11256.8237 Prob > F = 0.0000 Residual | 89496.5838 537 166.660305 R-squared = 0.2010 -------------+------------------------------ Adj R-squared = 0.1980 Total | 112010.231 539 207.811189 Root MSE = 12.91 ------------------------------------------------------------------------------ EARNINGS | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- S | 2.678125.2336497 11.46 0.000 2.219146 3.137105 EXP |.5624326.1285136 4.38 0.000.3099816.8148837 _cons | -26.48501 4.27251 -6.20 0.000 -34.87789 -18.09213 ------------------------------------------------------------------------------ Here is the regression output for the earnings function using Data Set 21. 20 MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE

21 21 It indicates that earnings increase by $2.68 for every extra year of schooling and by $0.56 for every extra year of work experience. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE. reg EARNINGS S EXP Source | SS df MS Number of obs = 540 -------------+------------------------------ F( 2, 537) = 67.54 Model | 22513.6473 2 11256.8237 Prob > F = 0.0000 Residual | 89496.5838 537 166.660305 R-squared = 0.2010 -------------+------------------------------ Adj R-squared = 0.1980 Total | 112010.231 539 207.811189 Root MSE = 12.91 ------------------------------------------------------------------------------ EARNINGS | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- S | 2.678125.2336497 11.46 0.000 2.219146 3.137105 EXP |.5624326.1285136 4.38 0.000.3099816.8148837 _cons | -26.48501 4.27251 -6.20 0.000 -34.87789 -18.09213 ------------------------------------------------------------------------------

22 22 Literally, the intercept indicates that an individual who had no schooling or work experience would have hourly earnings of –$26.49. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE. reg EARNINGS S EXP Source | SS df MS Number of obs = 540 -------------+------------------------------ F( 2, 537) = 67.54 Model | 22513.6473 2 11256.8237 Prob > F = 0.0000 Residual | 89496.5838 537 166.660305 R-squared = 0.2010 -------------+------------------------------ Adj R-squared = 0.1980 Total | 112010.231 539 207.811189 Root MSE = 12.91 ------------------------------------------------------------------------------ EARNINGS | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- S | 2.678125.2336497 11.46 0.000 2.219146 3.137105 EXP |.5624326.1285136 4.38 0.000.3099816.8148837 _cons | -26.48501 4.27251 -6.20 0.000 -34.87789 -18.09213 ------------------------------------------------------------------------------

23 23 Obviously, this is impossible. The lowest value of S in the sample was 6. We have obtained a nonsense estimate because we have extrapolated too far from the data range. MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE. reg EARNINGS S EXP Source | SS df MS Number of obs = 540 -------------+------------------------------ F( 2, 537) = 67.54 Model | 22513.6473 2 11256.8237 Prob > F = 0.0000 Residual | 89496.5838 537 166.660305 R-squared = 0.2010 -------------+------------------------------ Adj R-squared = 0.1980 Total | 112010.231 539 207.811189 Root MSE = 12.91 ------------------------------------------------------------------------------ EARNINGS | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- S | 2.678125.2336497 11.46 0.000 2.219146 3.137105 EXP |.5624326.1285136 4.38 0.000.3099816.8148837 _cons | -26.48501 4.27251 -6.20 0.000 -34.87789 -18.09213 ------------------------------------------------------------------------------

24 Copyright Christopher Dougherty 2012. These slideshows may be downloaded by anyone, anywhere for personal use. Subject to respect for copyright and, where appropriate, attribution, they may be used as a resource for teaching an econometrics course. There is no need to refer to the author. The content of this slideshow comes from Section 3.2 of C. Dougherty, Introduction to Econometrics, fourth edition 2011, Oxford University Press. Additional (free) resources for both students and instructors may be downloaded from the OUP Online Resource Centre http://www.oup.com/uk/orc/bin/9780199567089/http://www.oup.com/uk/orc/bin/9780199567089/. Individuals studying econometrics on their own who feel that they might benefit from participation in a formal course should consider the London School of Economics summer school course EC212 Introduction to Econometrics http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx or the University of London International Programmes distance learning course EC2020 Elements of Econometrics www.londoninternational.ac.uk/lsewww.londoninternational.ac.uk/lse. 2012.10.28


Download ppt "MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two."

Similar presentations


Ads by Google