SLOPE DUMMY VARIABLES 1 The scatter diagram shows the data for the 74 schools in Shanghai and the cost functions derived from a regression of COST on N.

Slides:



Advertisements
Similar presentations
5.1 Rules for Exponents Review of Bases and Exponents Zero Exponents
Advertisements

Lecture 8: Hypothesis Testing
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
STATISTICS Linear Statistical Models
STATISTICS INTERVAL ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
CALENDAR.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
Lecture 2 ANALYSIS OF VARIANCE: AN INTRODUCTION
Solve Multi-step Equations
Break Time Remaining 10:00.
You will need Your text Your calculator
PP Test Review Sections 6-1 to 6-6
Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1 Section 5.5 Dividing Polynomials Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
EC220 - Introduction to econometrics (chapter 2)
© 2012 National Heart Foundation of Australia. Slide 2.
1.7 Derive, with a proof, the slope coefficient that would have been obtained in Exercise 1.5 if weight and height had been measured in metric units. (Note:
THE EFFECTS OF CHANGING THE REFERENCE CATEGORY 1 In the previous sequence we chose general academic schools as the reference (omitted) category and defined.
ELASTICITIES AND LOGARITHMIC MODELS 1 This sequence defines elasticities and shows how one may fit nonlinear models with constant elasticities. First,
When you see… Find the zeros You think….
Before Between After.
1 BINARY CHOICE MODELS: LINEAR PROBABILITY MODEL Economists are often interested in the factors behind the decision-making of individuals or enterprises,
Putting Statistics to Work
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Chapter Twelve Multiple Regression and Model Building McGraw-Hill/Irwin Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Clock will move after 1 minute
PSSA Preparation.
& dding ubtracting ractions.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 11 Simple Linear Regression.
Simple Linear Regression Analysis
Correlation and Linear Regression
Multiple Regression and Model Building
CHOW TEST AND DUMMY VARIABLE GROUP TEST
EC220 - Introduction to econometrics (chapter 5)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: slope dummy variables Original citation: Dougherty, C. (2012) EC220 -
ELASTICITIES AND DOUBLE-LOGARITHMIC MODELS
Lecture 9 Today: Ch. 3: Multiple Regression Analysis Example with two independent variables Frisch-Waugh-Lovell theorem.
INTERPRETATION OF A REGRESSION EQUATION
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES Example: the cost of running a school depends on the number of pupils, but it also depends on whether.
Lecture 4 This week’s reading: Ch. 1 Today:
So far, we have considered regression models with dummy variables of independent variables. In this lecture, we will study regression models whose dependent.
TESTING A HYPOTHESIS RELATING TO A REGRESSION COEFFICIENT This sequence describes the testing of a hypotheses relating to regression coefficients. It is.
SLOPE DUMMY VARIABLES 1 The scatter diagram shows the data for the 74 schools in Shanghai and the cost functions derived from a regression of COST on N.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: semilogarithmic models Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: Chow test Original citation: Dougherty, C. (2012) EC220 - Introduction.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: dummy variable classification with two categories Original citation:
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: two sets of dummy variables Original citation: Dougherty, C. (2012) EC220.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: the effects of changing the reference category Original citation: Dougherty,
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: dummy classification with more than two categories Original citation:
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES This sequence explains how to extend the dummy variable technique to handle a qualitative explanatory.
1 TWO SETS OF DUMMY VARIABLES The explanatory variables in a regression model may include multiple sets of dummy variables. This sequence provides an example.
Confidence intervals were treated at length in the Review chapter and their application to regression analysis presents no problems. We will not repeat.
F TEST OF GOODNESS OF FIT FOR THE WHOLE EQUATION 1 This sequence describes two F tests of goodness of fit in a multiple regression model. The first relates.
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE 1 This sequence provides a geometrical interpretation of a multiple regression model with two.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: exercise 5.2 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Chapter 5: Dummy Variables. DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES 1 We’ll now examine how you can include qualitative explanatory variables.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 4) Slideshow: exercise 4.5 Original citation: Dougherty, C. (2012) EC220 - Introduction.
COST 11 DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES 1 This sequence explains how you can include qualitative explanatory variables in your regression.
Christopher Dougherty EC220 - Introduction to econometrics (revision lectures 2011) Slideshow: dummy variables Original citation: Dougherty, C. (2011)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: exercise 6.13 Original citation: Dougherty, C. (2012) EC220 - Introduction.
SEMILOGARITHMIC MODELS 1 This sequence introduces the semilogarithmic model and shows how it may be applied to an earnings function. The dependent variable.
1 In the Monte Carlo experiment in the previous sequence we used the rate of unemployment, U, as an instrument for w in the price inflation equation. SIMULTANEOUS.
F TESTS RELATING TO GROUPS OF EXPLANATORY VARIABLES 1 We now come to more general F tests of goodness of fit. This is a test of the joint explanatory power.
1 COMPARING LINEAR AND LOGARITHMIC SPECIFICATIONS When alternative specifications of a regression model have the same dependent variable, R 2 can be used.
VARIABLE MISSPECIFICATION I: OMISSION OF A RELEVANT VARIABLE In this sequence and the next we will investigate the consequences of misspecifying the regression.
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Presentation transcript:

SLOPE DUMMY VARIABLES 1 The scatter diagram shows the data for the 74 schools in Shanghai and the cost functions derived from a regression of COST on N and a dummy variable for the type of curriculum (occupational / regular).

SLOPE DUMMY VARIABLES 2 The specification of the model incorporates the assumption that the marginal cost per student is the same for occupational and regular schools. Hence the cost functions are parallel.

SLOPE DUMMY VARIABLES 3 However, this is not a realistic assumption. Occupational schools incur expenditure on training materials that is related to the number of students.

SLOPE DUMMY VARIABLES 4 Also, the staff-student ratio has to be higher in occupational schools because workshop groups cannot be, or at least should not be, as large as academic classes.

SLOPE DUMMY VARIABLES 5 Looking at the scatter diagram, you can see that the cost function for the occupational schools should be steeper, and that for the regular schools should be flatter.

SLOPE DUMMY VARIABLES 6 We will relax the assumption of the same marginal cost by introducing what is known as a slope dummy variable. This is NOCC, defined as the product of N and OCC. COST =  1  +   OCC +  2 N + NOCC + u

SLOPE DUMMY VARIABLES 7 In the case of a regular school, OCC is 0 and hence so also is NOCC. The model reduces to its basic components. COST =  1  +   OCC +  2 N + NOCC + u Regular schoolCOST =  1  +  2 N + u (OCC = NOCC = 0)

SLOPE DUMMY VARIABLES In the case of an occupational school, OCC is equal to 1 and NOCC is equal to N. The equation simplifies as shown. 8 COST =  1  +   OCC +  2 N + NOCC + u Regular schoolCOST =  1  +  2 N + u (OCC = NOCC = 0) Occupational schoolCOST = (  1  +   ) + (  2  + N + u (OCC = 1; NOCC = N)

SLOPE DUMMY VARIABLES The model now allows the marginal cost per student to be an amount greater than that in regular schools, as well as allowing the overhead costs to be different. 9 COST =  1  +   OCC +  2 N + NOCC + u Regular schoolCOST =  1  +  2 N + u (OCC = NOCC = 0) Occupational schoolCOST = (  1  +   ) + (  2  + N + u (OCC = 1; NOCC = N)

COST N  1 +  11 Occupational Regular  SLOPE DUMMY VARIABLES The diagram illustrates the model graphically. 10

SLOPE DUMMY VARIABLES Here are the data for the first ten schools. Note the weird way in which NOCC is defined. 11 School TypeCOST N OCC NOCC 1Occupational345, Occupational 537, Regular 170, Occupational Regular100, Regular 28, Regular 160, Occupational 45, Occupational 120, Occupational61,

. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | OCC | NOCC | _cons | SLOPE DUMMY VARIABLES Weird or not, the procedure works very well. Here is the regression output using the full sample of 74 schools. We will begin by interpreting the regression coefficients. 12

SLOPE DUMMY VARIABLES Here is the regression in equation form. 13 COST = 51,000 – 4,000  OCC + 152N + 284NOCC ^

SLOPE DUMMY VARIABLES Putting OCC, and hence NOCC, equal to 0, we get the cost function for regular schools. We estimate that their annual overhead costs are 51,000 yuan and their annual marginal cost per student is 152 yuan. 14 COST = 51,000 – 4,000  OCC + 152N + 284NOCC Regular schoolCOST= 51, N (OCC = NOCC = 0) ^ ^

SLOPE DUMMY VARIABLES Putting OCC equal to 1, and hence NOCC equal to N, we estimate that the annual overhead costs of the occupational schools are 47,000 yuan and the annual marginal cost per student is 436 yuan. 15 COST = 51,000 – 4,000  OCC + 152N + 284NOCC Regular schoolCOST= 51, N (OCC = NOCC = 0) Occupational schoolCOST= 51,000 – 4, N + 284N (OCC = 1; NOCC = N) = 47, N ^ ^ ^

SLOPE DUMMY VARIABLES You can see that the cost functions fit the data much better than before and that the real difference is in the marginal cost, not the overhead cost. 16

SLOPE DUMMY VARIABLES Now we can see why we had a nonsensical negative estimate of the overhead cost of a regular school in previous specifications. 17

SLOPE DUMMY VARIABLES The assumption of the same marginal cost led to an estimate of the marginal cost that was a compromise between the marginal costs of occupational and regular schools. 18

SLOPE DUMMY VARIABLES The cost function for regular schools was too steep and as a consequence the intercept was underestimated, actually becoming negative and indicating that something must be wrong with the specification of the model. 19

SLOPE DUMMY VARIABLES We can perform t tests as usual. The t statistic for the coefficient of NOCC is 3.76, so the marginal cost per student in an occupational school is significantly higher than that in a regular school. 20. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | OCC | NOCC | _cons |

SLOPE DUMMY VARIABLES The coefficient of OCC is now negative, suggesting that the overhead costs of occupational schools are actually lower than those of regular schools. 21. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | OCC | NOCC | _cons |

SLOPE DUMMY VARIABLES This is unlikely. However, the t statistic is only -0.09, so we do not reject the null hypothesis that the overhead costs of the two types of school are the same. 22. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = COST | Coef. Std. Err. t P>|t| [95% Conf. Interval] N | OCC | NOCC | _cons |

SLOPE DUMMY VARIABLES We can also perform an F test of the joint explanatory power of the dummy variables, comparing RSS when the dummy variables are included with RSS when they are not. 23. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The null hypothesis is that the coefficients of OCC and NOCC are both equal to 0. The alternative hypothesis is that one or both are nonzero. 24

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The improvement in the fit on adding the dummy variables is the reduction in RSS. 25

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The cost is 2 because 2 extra parameters, the coefficients of the dummy variables, have been estimated, and as a consequence the number of degrees of freedom remaining has been reduced from 72 to

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The first component of the denominator is RSS after the dummies have been added. 27

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The denominator is RSS after the dummies have been added, divided by the number of degrees of freedom remaining. This is 70 because there are 74 observations and 4 parameters have been estimated. 28

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 The F statistic is therefore The critical vale of F(2,70) at the 0.1 percent level is

SLOPE DUMMY VARIABLES. reg COST N OCC NOCC Source | SS df MS Number of obs = F( 3, 70) = Model | e e+11 Prob > F = Residual | e e+09 R-squared = Adj R-squared = Total | e e+10 Root MSE = reg COST N Source | SS df MS Number of obs = F( 1, 72) = Model | e e+11 Prob > F = Residual | e e+10 R-squared = Adj R-squared = Total | e e+10 Root MSE = 1.1e+05 Thus we conclude that at least one of the dummy variable coefficients is different from 0. We knew this already from the t tests, so in this case the F test does not actually add anything. 30

Copyright Christopher Dougherty 2000–2006. This slideshow may be freely copied for personal use