Download presentation
Presentation is loading. Please wait.
2
Marietta College Week 14 1
3
Tuesday, April 12 2 Exam 3: Monday, April 25, 12- 2:30PM Bring your laptops to class on Thursday too
4
Collect Asst 21 Use the data set FISH in Chapter 8 (P 274) to run the following regression equation: F = f (PF, PB, Yd, P, N) 1)Conduct all 3 tests of imperfect multicollinearity problem and report your results. 2)If you find an evidence for imperfect multicollinearity problem, suggest and implement a reasonable solution. 3
5
Use EViews Open FISH in Chapter 8 Run P = f (PF, PB, Yd, N) Click on view on regression output Click on actual, fitted, residual Click on residual graph Do you suspect the residuals to be autocorrealted? 4
6
This is what you should have got 5 Positive residual is followed by positive residual possible positive autocorrelation
7
6 Causes of Impure Serial Correlation 1.Wrong functional form – Example: effect of age of the house on its price 2.Omitted variables – Example: not including wealth in the consumption equation 3.Data error
8
Cause of Pure Serial Correlation Lingering shock over time – War – Natural disaster – Stock market crash 7
9
8 Consequences of Pure Autocorrelation Unbiased estimates but wrong standard errors – In case of positive autocorrelation standard error of the estimated coefficients drops – Consequences on the t-test of significance?
10
9 Consequences of Impure Autocorrelation Biased estimates Plus wrong standard errors
11
Let’s look at first order serial correlation є t = ρ є t-1 + u t ρ (row) is first order autocorrelation coefficient It takes a value between -1 to +1 u 2 is a normally distributed error with the mean of zero and constant variance 10
12
11 A Formal Test For First Order Autocorrelation Durbin-Watson test Estimate the regression equation Save the residuals, e Then calculate the Durbin -Watson Stat (d stat) d stat ~ 2 (1- ρ) What is dstat under perfect positive correlation? ρ = +1 d = 0 What is dstat under perfect negative correlation? ρ = -1 d = 4 What is dstat under no autocorrelation? ρ = 0 d = 2 What is the range of values for dstat? 0 to 4
13
12 dstat=0 Perfect positive autocorrelation dstat=4 Perfect negative autocorrelation dstat=2 No autocorrelation If 2>dstat>0 then suspect (test for) positive autocorrelation If 4>dstat>2 then suspect (test for) negative autocorrelation
14
EViews calculates d-stat automatically It is included in your regression output Run P = f (PF, PB, Yd, N) Do you see the d-stat? 13
15
Dependent Variable: P Method: Least Squares Date: 04/12/11 Time: 08:59 Sample: 1946 1970 Included observations: 25 VariableCoefficientStd. Errort-StatisticProb. C-2.0831880.271658-7.6684170.0000 PF0.0271430.0173551.5639340.1335 PB-0.0125710.011620-1.0818650.2922 YD0.0015970.0003874.1322630.0005 N-5.54E-051.27E-05-4.3762140.0003 R-squared0.801154 Mean dependent var0.160000 Adjusted R-squared0.761384 S.D. dependent var0.374166 S.E. of regression0.182774 Akaike info criterion-0.384281 Sum squared resid0.668123 Schwarz criterion-0.140506 Log likelihood9.803514 Hannan-Quinn criter.-0.316668 F-statistic20.14505 Durbin-Watson stat1.498086 Prob(F-statistic)0.000001 14 What type of serial correlation shall we test for? Positive
16
15 If d stat<2, test for positive autocorrelation. Null and alternative hypotheses – H 0 : ρ≤0 (no positive auto) – H A : ρ>0 (positive auto) Choose the level of significance (say 5%) Critical dstat (PP 591- 593) Decision rule – If dstat< d L reject H0 there is significant positive first order autocorrelation – If dstat> d U don’t reject H0 there is no evidence of a significant autocorrelation – if dstat is between d L and d u the test is inconclusive.
17
Dependent Variable: P Method: Least Squares Date: 04/12/11 Time: 08:59 Sample: 1946 1970 Included observations: 25 VariableCoefficientStd. Errort-StatisticProb. C-2.0831880.271658-7.6684170.0000 PF0.0271430.0173551.5639340.1335 PB-0.0125710.011620-1.0818650.2922 YD0.0015970.0003874.1322630.0005 N-5.54E-051.27E-05-4.3762140.0003 R-squared0.801154 Mean dependent var0.160000 Adjusted R-squared0.761384 S.D. dependent var0.374166 S.E. of regression0.182774 Akaike info criterion-0.384281 Sum squared resid0.668123 Schwarz criterion-0.140506 Log likelihood9.803514 Hannan-Quinn criter.-0.316668 F-statistic20.14505 Durbin-Watson stat1.498086 Prob(F-statistic)0.000001 16 N = 25, K = 4 At 5% level d L = 1.04, d U =1.77 dstat is between d L and d u the test is inconclusive
18
17 DWstat=0 Perfect positive autocorrelation DWstat=4 Perfect negative autocorrelation DWstat=2 No autocorrelation H0: ρ≤0 (no positive auto) HA: ρ>0 (positive auto) level of significance = 5% Critical d-stat d L =1.04 d U = 1.77 Decision dstat is between d L and d u the test is inconclusive 1.771.04 Fail to reject H0 Reject H0inconclusive 1.5
19
18 If dstat >2, you will to test for negative autocorrelation. Null and alternative hypotheses – H0: ρ≥0 (no negative auto) – HA: ρ<0 (negative auto) Choose the level of significance (1% or 5%) Critical dstat (page 591- 593) Decision rule – If dstat>4-d L reject H0 there is significant negative first order autocorrelation – If dstat< 4-d U don’t reject H0 there is no evidence of a significant autocorrelation – if dstat is between 4 – d L and 4 – d u the test is inconclusive.
20
19 Example Dependent Variable: CONSUMPTION Method: Least Squares Date: 11/09/08 Time: 20:11 Sample: 1 30 Included observations: 30 VariableCoefficientStd. Errort-StatisticProb. C16222.975436.0612.9843240.0060 INCOME0.6411660.1668783.8421310.0007 WEALTH0.1487880.0413273.6002810.0013 R-squared0.847738 Mean dependent var52347.37 Adjusted R-squared0.836459 S.D. dependent var31306.54 S.E. of regression12660.43 Akaike info criterion21.82499 Sum squared resid4.33E+09 Schwarz criterion21.96511 Log likelihood-324.3748 Hannan-Quinn criter.21.86982 F-statistic75.16274 Durbin-Watson stat2.211726 Prob(F-statistic)0.000000 d-sta >2 test for negative autocorrelation
21
20 Let’s test for autocorrelation at 1% level in our example H0: ρ≥0 (no negative auto) HA: ρ<0 (negative auto) 1% level of significance, k=2, n=30 d L =1.07, d u = 1.34 4- d L =2.93, 4- d u = 2.66 dstat < 4- d u, don’t reject H0
22
Asst 22: Due Thursday Use the data on Soviet Defense spending (Page 335– Data set: DEFEND Chapter 9) to regress SDH on SDL, UDS and NR only. 1.Conduct a Durbin-Watson test for serial correlation at 5% level of significance 2. If you find an evidence for autocorrelation, is it more likely to be pure or impure autocorrelation? Why? 21
23
Thursday April 15 Exam 3: Monday, April 25, 12- 2:30PM Bring your laptops to class next Tuesday 22
24
Collect Asst 22 Use the data on Soviet Defense spending (Page 335– Data set: DEFEND Chapter 9) to regress SDH on SDL, USD and NR only. 1.Conduct a Durbin-Watson test for serial correlation at 5% level of significance 2. If you find an evidence for autocorrelation, is it more likely to be pure or impure autocorrelation? Why? 23
25
24 Solutions for Autocorrelation Problem If the D-W test indicates autocorrelation problem What should you do?
26
25 1.Adjust the functional form Sometimes autocorrelation is because we use a linear form while we should have used a non-linear form revenue Price * * * * * With a linear line, errors have formed a pattern The first 3 observations have positive errors The last 2 observations have negative errors Revenue curve is not linear (It is bell shaped) What should we use? 1 2 3 4 5
27
26 2. Add other relevant (missing) variables Sometimes autocorrelation is caused by omitted variables. consumption Income * * * * * 1 2 3 4 5 We forget to include wealth in our model In year one (obs. 1) wealth goes up drastically big positive error The effect of the increase in wealth in year 1 lingers for 3 years Errors form a pattern We should include wealth in our model
28
27 3. Examine the data Any systematic error in the collection or recording of data may result in autocorrelation.
29
28 After you make adjustments 1, 2 and 3 Test for autocorrelation again If autocorrelation is still a problem then suspect pure autocorrelation – Follow the Cochrane-Orcutt procedure – Say what?????
30
29 Suppose our model is Y t = β 0 + β 1 X t + є t (1) And the error terms in Equation 1 are correlated Let’s lag Equation 1 Y t-1 = β 0 + β 1 X t-1 + є t-1 (4) Where u t is not auto-correlated. Rearranging 2 we get 3 є t - ρ є t-1 = u t (3) є t = ρ є t-1 + u t (2)
31
30 Now multiply Equation 4 by ρ ρ Y t-1 = ρ β 0 + ρ β 1 X t-1 + ρ є t-1 (5) Now subtract 5 from 1 to get 6 Y t = β 0 + β 1 X t + є t - ρ Y t-1 = - ( ρ β 0 + ρ β 1 X t-1 + ρ є t-1 ) ___________________________________ Y t - ρ Y t-1 = β 0 - ρ β 0 + β 1 X t - ρ β 1 X t-1 + є t - ρ є t-1 (6) Note that the last two terms in Equation 6 are equal to U t So 6 becomes Y t - ρ Y t-1 = β 0 - ρ β 0 + β 1 (X t - ρ X t-1 ) + u t (7)
32
What is so special about the error term in Equation 7? It is not auto-correlated So, instead of equation 1 we can estimate equation 7 31 Define Z t = Y t – ρY t-1 & W t = X t – ρX t-1 Then 7 becomes Z t = M + β 1 W t + u t (8) Where M is a constant = β 0 (1- ρ) Notice that the slope coefficient of Equation 8 is the same as the slope coefficient of our original equation 1.
33
32 The Cochrane-Orcutt Method: So our job will be Step 1: Apply OLS to the original model (Equation 1) and find the residuals e t Step 2: Use e t s to estimate Equation 2 and find ρ^ (Note: this equation does not have an intercept.) Step 3: Multiply ρ^ by Y t-1 and X t-1 & find Z t & W t Step 4: Estimate Equation 8
34
33 Luckily EViews does this (steps 1- 4) automatically All you need to do is to add AR(1) to the set of your independent variables. The estimated coefficient of AR(1) is ρ^ Let’s apply this procedure to Asst 22
35
Dependent Variable: SDH VariableCoefficientStd. Errort-StatisticProb. C8.832.503.520.0020 SDL0.970.0422.180.0000 USD-0.0050.008-0.600.5553 NR0.0020.00029.300.0000 R-squared0.996792 Adjusted R-squared0.996334 Durbin-Watson stat1.076364 34 Dependent Variable: SDH VariableCoefficientStd. Errort-StatisticProb. C-9.118.4-1.080.2940 SDL1.380.178.100.0000 USD6.71E-050.0130.0050.9959 NR0.00050.00041.460.1608 AR(1)0.820.108.0020.0000 R-squared0.997927 Adjusted R-squared0.997490 Durbin-Watson stat2.463339 What is this? It is ρ^ What happened to standard errors as we corrected for serial correlation? They went up Positive autocorrelation standard error
36
Return and discuss Asst 21 Use the data set FISH in Chapter 8 (P 274) to run the following regression equation: F = f (PF, PB, Yd, P, N) 1)Conduct all 3 tests of imperfect multicollinearity problem and report your results. 2)If you find an evidence for imperfect multicollinearity problem, suggest and implement a reasonable solution. 35
37
Correlation Matrix FPPBPFYDN F10.580.820.850.790.74 P10.660.730.780.57 PB10.960.820.78 PF10.920.88 YD10.93 N1 36 First test PF is more correlated with PB than with F PF is a problem Yd is more correlated with PB and PF than with F Yd is a problem N is more correlated with PB, PF and Yd than with F N is a problem PB is more correlated with PF than with F PB is a problem P is more correlated with everything else than with F P is a problem
38
Correlation Matrix FPPBPFYDN F10.580.820.850.790.74 P10.660.730.780.57 PB10.960.820.78 PF10.920.88 YD10.93 N1 37 Second test: problem areas: PF and PB PF and Yd PF and N PB and Yd Yd and N Note: F being highly correlated with independent variables is a good thing not a bad thing
39
Test 3 Need 5 regression equations 1.PF = f (P, Yd, PB, N) 2.P = f (PF, Yd, PB, N) 3.Yd = f (P, PF, PB, N) 4.PB = f (PF, Yd, P, N) 5.N = f (PF, Yd, PB, P) For all find R 2 then find VIF For all VIF>5 Each independent variable is highly correlated with the rest 38
40
Solutions 1.Increase sample size – Note: we want at least a df= 30, we have df=19 2.Do we have an irrelevant variable? – Seth argued N is not needed? – What is N? (P 273) – Seth, what was your argument? 3.Generate a new variable that measures the ratio of prices – Makes sense but doesn’t solve the high correlation between Yd and N – Note: make sure your transformed variable makes sense That is the estimated coefficient has a meaning that people can understand – The ratio PF/Yd makes no sense 39
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.