assignment 8 solutions ► yogurt brands Developed for

Slides:



Advertisements
Similar presentations
PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Advertisements

Dummy Variables and Interactions. Dummy Variables What is the the relationship between the % of non-Swiss residents (IV) and discretionary social spending.
Heteroskedasticity The Problem:
1 Nonlinear Regression Functions (SW Chapter 8). 2 The TestScore – STR relation looks linear (maybe)…
Lecture 4 This week’s reading: Ch. 1 Today:
EC220 - Introduction to econometrics (chapter 1)
1 INTERPRETATION OF A REGRESSION EQUATION The scatter diagram shows hourly earnings in 2002 plotted against years of schooling, defined as highest grade.
Michael R. Baye, Managerial Economics and Business Strategy, 3e. ©The McGraw-Hill Companies, Inc., 1999 Managerial Economics & Business Strategy Chapter.
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 INTERACTIVE EXPLANATORY VARIABLES The model shown above is linear in parameters and it may be fitted using straightforward OLS, provided that the regression.
LT6: IV2 Sam Marden Question 1 & 2 We estimate the following demand equation ln(packpc) = b 0 + b 1 ln(avgprs) +u What do we require.
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.
How do Lawyers Set fees?. Learning Objectives 1.Model i.e. “Story” or question 2.Multiple regression review 3.Omitted variables (our first failure of.
EDUC 200C Section 3 October 12, Goals Review correlation prediction formula Calculate z y ’ = r xy z x for a new data set Use formula to predict.
Introduction 1 Panel Data Analysis. And now for… Panel Data! Panel data has both a time series and cross- section component Observe same (eg) people over.
Economic Optimization Chapter 2. Chapter 2 OVERVIEW   Economic Optimization Process   Revenue Relations   Cost Relations   Profit Relations 
. reg LGEARN S WEIGHT85 Source | SS df MS Number of obs = F( 2, 537) = Model |
Christopher Dougherty EC220 - Introduction to econometrics (chapter 5) Slideshow: exercise 5.2 Original citation: Dougherty, C. (2012) EC220 - Introduction.
Chapter 4 The Classical Model Copyright © 2011 Pearson Addison-Wesley. All rights reserved. Slides by Niels-Hugo Blunch Washington and Lee University.
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.
Managerial Economics & Decision Sciences Department intro to dummy variables  dummy regressions  slope dummies  business analytics II Developed for.
Managerial Economics & Decision Sciences Department introduction  inflated standard deviations  the F  test  business analytics II Developed for ©
Managerial Economics & Decision Sciences Department hypotheses, test and confidence intervals  linear regression: estimation and interpretation  linear.
VARIABLE MISSPECIFICATION I: OMISSION OF A RELEVANT VARIABLE In this sequence and the next we will investigate the consequences of misspecifying the regression.
Managerial Economics & Decision Sciences Department non-linearity  heteroskedasticity  clustering  business analytics II Developed for © 2016 kellogg.
Managerial Economics & Decision Sciences Department cross-section and panel data  fixed effects  omitted variable bias  business analytics II Developed.
Managerial Economics & Decision Sciences Department tyler realty  old faithful  business analytics II Developed for © 2016 kellogg school of management.
Managerial Economics & Decision Sciences Department true and truncated relations  the omitted variable bias effect  spurious regressions  business analytics.
Managerial Economics & Decision Sciences Department intro to linear regression  underlying concepts for the linear regression  interpret linear regression.
Variable versus Fixed Costs
business analytics II ▌assignment three - solutions pet food 
QM222 Class 12 Section D1 1. A few Stata things 2
business analytics II ▌assignment four - solutions mba for yourself 
business analytics II ▌applications cigarettes  car dealership 
business analytics II ▌assignment three - solutions pet food 
QM222 Class 9 Section A1 Coefficient statistics
QM222 Class 11 Section D1 1. Review and Stata: Time series data, multi-category dummies, etc. (chapters 10,11) 2. Capturing nonlinear relationships (Chapter.
business analytics II ▌appendix – regression performance the R2 
QM222 Class 10 Section D1 1. Goodness of fit -- review 2
QM222 Nov. 7 Section D1 Multicollinearity Regression Tables What to do next on your project QM222 Fall 2016 Section D1.
assignment 7 solutions ► office networks ► super staffing
business analytics II ▌assignment one - solutions autoparts 
Lecture 18 Matched Case Control Studies
QM222 Class 13 Section D1 Omitted variable bias (Chapter 13.)
business analytics II ▌panel data models
QM222 Class 16 & 17 Today’s New topic: Estimating nonlinear relationships QM222 Fall 2017 Section A1.
business analytics II ▌applications fuel efficiency 
QM222 Class 11 Section A1 Multiple Regression
Managerial Economics & Business Strategy
QM222 Class 18 Omitted Variable Bias
QM222 Class 9 Section D1 1. Multiple regression – review and in-class exercise 2. Goodness of fit 3. What if your Dependent Variable is an 0/1 Indicator.
QM222 Class 8 Section A1 Using categorical data in regression
Introduction to Logistic Regression
Pricing Products and Services
Instrumental Variables and Two Stage Least Squares
QM222 Your regressions and the test
Economics 20 - Prof. Anderson
QM222 Class 15 Section D1 Review for test Multicollinearity
Instrumental Variables and Two Stage Least Squares
Ch. 13. Pooled Cross Sections Across Time: Simple Panel Data.
Instrumental Variables and Two Stage Least Squares
Chapter 7: The Normality Assumption and Inference with OLS
BEC 30325: MANAGERIAL ECONOMICS
BEC 30325: MANAGERIAL ECONOMICS
Ch. 13. Pooled Cross Sections Across Time: Simple Panel Data.
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition
Presentation transcript:

assignment 8 solutions ► yogurt brands Developed for Managerial Economics & Decision Sciences Department Developed for assignment 8 solutions ► yogurt brands © Kellogg School of Management

fixed effects ► STATA ► cross section and panel data ► fixed effects Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects learning objectives ► STATA  fixed effects regression: xi:regress ► cross section and panel data  working with data across years  regression for panel data ► fixed effects  definition  use of fixed effects to eliminate ovb readings ► (KTN) Fixed Effects ► (CS) YogurtFE © Kellogg School of Management

ln(sales1) = b0 + b1·ln(price1) + b2·promo1 Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects yogurt brands ◄ yogurt brands i. elasticity (brand one). We know that the log-log specification yields directly the estimate of the elasticity, thus we run the regression ln(sales1) = b0 + b1·ln(price1) + b2·promo1 . regress lsales1 lprice1 promo1 ------------------------------------------------------------------------------ lsales1 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lprice1 | -1.221729 .2111436 -5.79 0.000 -1.637003 -.8064547 promo1 | .7136112 .1182778 6.03 0.000 .4809843 .9462381 _cons | 4.925993 .5297197 9.30 0.000 3.884149 5.967838 ► We find elasticity to be –1.22 which means that an increase with one percent in price leads to a decrease in sales with 1.22 percent. The sign is correct but we do not have any indication of whether the magnitude is correct or not. Of course, along with a myriad of problems such as heteroskedasticity, the omitted variable bias and a miss-specified curvature are the most “dangerous” ones. ► Here we focus on omitted variables bias since we are given a panel data and we can apply the fixed effects model: we have to find the characteristic for which across time the omitted variable has a constant (fixed) effect. The candidate is store: we assume that whatever variable is omitted it would affect in the same way brand one within each store but differently across stores… © Kellogg School of Management page | 1

fixed effects yogurt brands Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects yogurt brands ◄ yogurt brands ii & iii. elasticity (brand one). We know that the log-log specification yields directly the estimate of the elasticity, thus we run the regression with fixed effects (by store): ln(sales1) = a0 + a1·dstore11 + a2·dstore14 + a3·dstore15 + b1·ln(price1) + b2·promo1 . xi:regress lsales1 lprice1 promo1 i.store i.store _Istore_5-15 (naturally coded; _Istore_5 omitted) ------------------------------------------------------------------------------ lsales1 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lprice1 | -1.797195 .1167034 -15.40 0.000 -2.026732 -1.567658 promo1 | .5291696 .0647114 8.18 0.000 .4018925 .6564468 _Istore_11 | -.6406308 .0373443 -17.15 0.000 -.7140812 -.5671804 _Istore_14 | .4403146 .037269 11.81 0.000 .3670123 .5136169 _Istore_15 | -.0334855 .0371761 -0.90 0.368 -.1066052 .0396342 _cons | 3.544125 .2932429 12.09 0.000 2.967362 4.120888 ► We find elasticity to be –1.79 thus below the previous estimate. Since this figure is found as a result of fixed effects it might be an indication that the previous regression leads to an overestimation of the elasticity. ► What can be the omitted variable that can explain this behavior? In this case the story telling has to be consistent to the assumption that the omitted variable has the same effect across time within each store but to be different between stores… A few come to mind: location, management… © Kellogg School of Management page | 2

ln(sales3) = b0 + b1·ln(price3) + b2·promo3 Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects yogurt brands ◄ yogurt brands iv. elasticity (brand three). The initial regression (no fixed effects included): ln(sales3) = b0 + b1·ln(price3) + b2·promo3 . regress lsales3 lprice3 promo3 ------------------------------------------------------------------------------ lsales3 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lprice3 | -2.146479 .2173114 -9.88 0.000 -2.573884 -1.719074 promo3 | .6372796 .2547515 2.50 0.013 .1362382 1.138321 _cons | .8359389 .6423563 1.30 0.194 -.4274374 2.099315 ► We find elasticity to be –2.146 which means that an increase with one percent in price leads to a decrease in sales with 2.146 percent. The sign is correct but we do not have any indication of whether the magnitude is correct or not. We look again for omitted variables bias by using the fixed effects model. © Kellogg School of Management page | 3

fixed effects yogurt brands Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects yogurt brands ◄ yogurt brands iv. elasticity (brand three). The regression with fixed effects (by store): ln(sales3) = a0 + a1·dstore11 + a2·dstore14 + a3·dstore15 + b1·ln(price3) + b2·promo3 . xi:regress lsales3 lprice3 promo3 i.store i.store _Istore_5-15 (naturally coded; _Istore_5 omitted) ------------------------------------------------------------------------------ lsales3 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lprice3 | -2.073734 .1554244 -13.34 0.000 -2.37943 -1.768039 promo3 | .8190779 .1825961 4.49 0.000 .4599399 1.178216 _Istore_11 | -.2762774 .0583409 -4.74 0.000 -.3910249 -.1615299 _Istore_14 | .7389823 .0582163 12.69 0.000 .6244799 .8534847 _Istore_15 | -.0174693 .0582409 -0.30 0.764 -.13202 .0970814 _cons | .9368165 .461271 2.03 0.043 .0295684 1.844065 ► We find elasticity to be –2.073 thus below the previous estimate. Since this figure is found as a result of fixed effects it might be an indication that the previous regression leads to an underestimation of the elasticity. © Kellogg School of Management page | 4

fixed effects yogurt brands Managerial Economics & Decision Sciences Department assignment 8 - solutions fixed effects yogurt brands ◄ yogurt brands bonus: interpretation of coefficient on dummy variables. The regression with fixed effects (by store): ln(sales3) = a0 + a1·dstore11 + a2·dstore14 + a3·dstore15 + b1·ln(price3) + b2·promo3 . xi:regress lsales3 lprice3 promo3 i.store i.store _Istore_5-15 (naturally coded; _Istore_5 omitted) ------------------------------------------------------------------------------ lsales3 | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- lprice3 | -2.073734 .1554244 -13.34 0.000 -2.37943 -1.768039 promo3 | .8190779 .1825961 4.49 0.000 .4599399 1.178216 _Istore_11 | -.2762774 .0583409 -4.74 0.000 -.3910249 -.1615299 _Istore_14 | .7389823 .0582163 12.69 0.000 .6244799 .8534847 _Istore_15 | -.0174693 .0582409 -0.30 0.764 -.13202 .0970814 _cons | .9368165 .461271 2.03 0.043 .0295684 1.844065 ► _Istore_5 is the dummy variable omitted, thus the coefficients a1 = -0.27, a2 = 0.73 and a3 = -0.01 should be interpreted relative to the omitted dummy: a1 = -0.27 represents the difference in sales when dstore11 = 1 vs. dstore5 = 1 (lower sales in store 11 compared to store 5) a2 = 0.73 represents the difference in sales when dstore14 = 1 vs. dstore5 = 1 (higher sales in store 14 compared to store 5) © Kellogg School of Management page | 5