



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: CUR PROBS IN ARCH; Subject: Anthropology; University: University of California - Santa Barbara; Term: Unknown 1989;
Typology: Assignments
1 / 6
This page cannot be seen from the preview
Don't miss anything!




ESM 206 Problem set 2 Solutions Part A:
Table 1: Type-specific intercepts (for the constant slope model) and slopes (for the constant intercept model) for the two models discussed in problem 5. Type Intercept Slope Compact 0.1340 7.266e- Large 0.1321 6.742e- Midsize 0.1344 7.389e- Small 0.1334 7.053e- Sporty 0.1356 7.802e- Van 0.1395 8.689e-
HiwayGPM 1500 2000 2500 3000 3500 4000 Weight Compact Large Midsize Small Sporty Van Figure 1: Highway fuel consumption as a function of weight, for the model with identical slopes but different intercepts.
There are many other variables that might be relevant. For example, I would expect gasoline consumption to decrease in response to increases in public spending on public transit infrastructure. I would expect consumption to increase as population size increases, because new housing tends to be built farther from the urban center (sprawl). Any variables that are rationalized in a similar way would be acceptable. 3) The OLS regression shows a highly significant relationship between consumption and price. However, the relationship is in the opposite direction to the one I predicted: consumption increases as prices increase (figure 3). Either our economic understanding is very wrong, or we are seeing biased results as a consequence of failing to include appropriate control variables. 4) The only control variable from section b that is in the data is income. Adding this to the model produces parameter estimates that are all strongly significant (P < 0.01 in all cases) and changes the sign of the price parameter to be negative: Consumption = 145 – 85.3 Price + 0.019 Income, R^2 = 0.775, P < 0.0001. Thus, the control variable Income does affect consumption (positively, as I predicted), and changes the sign of the relationship between consumption and price to go in the predicted direction. This 250 300 350 400 450 Consumption .2 .3 .4 .5 .6 .7 .8 .9 1 1. Price Figure 3: Gasoline consumption as a function of price. happens because including this variable removes the bias caused by the general increase in prosperity over the period of the data. 5) For full credit on this question, you should test all of the OLS assumptions. I will go through them for the model that I have created: Linearity in parameters: by inspection, this is satisfied. Normality of residuals: The residuals exhibit very strong kurtosis, and are clearly not normally distributed (figure 4). There is no power transformation that would fix this
problem. Although there may be some sort of exotic transformation that could work, let’s look at the rest of the assumptions first. -1.
-0. 0
1
.01 .05 .10 .25 .50 .75 .90 .95. -3 -2 -1 0 1 2 3 Normal Quantile Plot Figure 4: Studentized residuals from the regression of consumption on price and income. Constant Variance: The plot of residuals vs. predicted values shows no obvious trend in the variance. Thus this assumption is satisfied. Residuals have expected value zero: The plot of residuals vs. predicted values shows that this is egregiously violated: the average residual value has a roughly quadratic dependence on the fitted value (figure 5). Looking at the partial residual plots also shows quadratic dependence of the partial residuals on the independent variables, suggesting that we should square-root transform income and add a price squared term. However, the curious patterns in the Price partial residual plot suggest that there may be other things going on as well.
0 10 20 30 40 Consumption Residual 250 300 350 400 450 Consumption Predicted
0 25 Price Partial residuals .2 .3 .4 .5 .6 .7 .8 .9 1 1. Price 150 200 250 300 350 Income parital residuals 8000 10000 12000 14000 16000 18000 20000 Income Figure 5: Residual vs. fitted plot and the two partial residual plots for the model that includes price and income. Residuals are independent: There is strong positive temporal autocorrelation in the residuals, so this assumption is violated. If there is no additional variable that could