Download presentation
Presentation is loading. Please wait.
1
1 ECON 240C Lecture 8
2
2 Outline: 2 nd Order AR Roots of the quadratic Roots of the quadratic Example: change in housing starts Example: change in housing starts Polar form Polar form Inverse of B(z) Inverse of B(z) Autocovariance function Autocovariance function Yule-Walker Equations Yule-Walker Equations Partial autocorrelation function Partial autocorrelation function
3
3 Outline Cont. Parameter uncertainty Parameter uncertainty Moving average processes Moving average processes Significance of Autocorrelations Significance of Autocorrelations
4
4 Roots of the quadratic X(t) = b 1 x(t-1) + b 2 x(t-2) + wn(t) X(t) = b 1 x(t-1) + b 2 x(t-2) + wn(t) y 2 –b 1 y – b 2 = 0, from substituting y 2-u for x(t-u) y 2 –b 1 y – b 2 = 0, from substituting y 2-u for x(t-u) y = [b 1 +/- (b 1 2 + 4b 2 ) 1/2 ]/2 y = [b 1 +/- (b 1 2 + 4b 2 ) 1/2 ]/2 Complex if (b 1 2 + 4b 2 ) < 0 Complex if (b 1 2 + 4b 2 ) < 0
5
5 Quadratic roots ax 2 + bx +c = 0 ax 2 + bx +c = 0 y 2 – b 1 *y – b 2 = 0 y 2 – b 1 *y – b 2 = 0 If b 1 2 + 4b 2 <0 then we have the square root of a negative Number, and imaginary or complex roots. For example, (-4) 1/2 = 2(-1) 1/2 =2i, where i is the imaginary number
6
6
7
7
8
8 Triangle of Stable Parameter Space: b 1 = 0 b2b2 (0, 1) (0, -1) Draw a line from the vertex, for (b 1 =0, b 2 =1), though the end points for b 1, i.e. through (b 1 =1, b 2 = 0) and (b 1 =-1, b 2 =0), (1, 0)(-1, 0) 0.4, -0.4
9
9 X(t) = 0.4*x(t-1) -0.4*x(t-2) + wn(t) 0.839784 -0.048088 -0.659722 0.369581 1.020945 1.701325 0.429065 0.780927 1.479976 0.468493 0.022904 -0.268472 0.660318 -1.035561 -2.966626 -2.071927 1.424677
10
10
11
11 Roots: y = {b 1 +/- [b 1 2 + 4 b 2 ] 1/2 }/2 b 1 =0.4, b 2 = -0.4 Roots: y = {0.4 +/- [(0.4) 2 +4(-0.4)] 1/2 }/2 y ={ 0.4 +/- (0.16 – 1.6) 1/2 }/2 y = {0.4 +/- [-1.44] 1/2 /2 * y = 0.2 + 0.6 i, 0.2 – 0.6 i
12
12 Pre-whiten
13
13 Roots: y = {b 1 +/- [b 1 2 + 4 b 2 ] 1/2 }/2 b1 = -0.351, b2 = -0.132 Roots: y = {-0.351 +/- [(-0.351) 2 +4(-0.132)] 1/2 }/2 y ={ -0.353 +/- (0.123 – 0.528) 1/2 }/2 y = -0.177 +/- [-0.405] 1/2 /2 * y = -0.177 + 0.318 i, -0.177 – 0.318 i
14
14 Triangle of Stable Parameter Space: b 1 = 0 b2b2 (0, 1) (0, -1) Draw a line from the vertex, for (b 1 =0, b 2 =1), though the end points for b 1, i.e. through (b 1 =1, b 2 = 0) and (b 1 =-1, b 2 =0), (1, 0)(-1, 0) -0.351, -0.132
15
15 Roots in polar form y = Re + Im i = a + b i y = Re + Im i = a + b i sin = b/(a 2 + b 2 ) 1/2 sin = b/(a 2 + b 2 ) 1/2 cos = a/(a 2 + b 2 ) 1/2 cos = a/(a 2 + b 2 ) 1/2 y = (a 2 + b 2 ) 1/2 cos + i (a 2 + b 2 ) 1/2 sin y = (a 2 + b 2 ) 1/2 cos + i (a 2 + b 2 ) 1/2 sin Re Im a (a, b) b
16
16 Roots in Polar form: Sim. Ex. Re + i Im = a + i b = (a 2 + b 2 ) 1/2 [cos + sin ] Re + i Im = a + i b = (a 2 + b 2 ) 1/2 [cos + sin ] Example: modulus, (a 2 + b 2 ) 1/2 = [(0.2) 2 +(0.6) 2 ] 1/2 = [0.04 + 0.36] 1/2 = 0.632 Example: modulus, (a 2 + b 2 ) 1/2 = [(0.2) 2 +(0.6) 2 ] 1/2 = [0.04 + 0.36] 1/2 = 0.632 Tan = sin /cos = b/a = 0.6/0.2 = 3.00 Tan = sin /cos = b/a = 0.6/0.2 = 3.00 = tan -1 3.00 ~ 71.6 degrees = 0.2 fraction of a circle = 0.2*2 radians = 1.26 radians = tan -1 3.00 ~ 71.6 degrees = 0.2 fraction of a circle = 0.2*2 radians = 1.26 radians Period = 2* / = 2 /0.2*2 = 1/0.2 =5 months Period = 2* / = 2 /0.2*2 = 1/0.2 =5 months 5 months, the time it takes to go around the circle once 5 months, the time it takes to go around the circle once
17
17 Roots in Polar form: dhoust Re + i Im = a + i b = (a 2 + b 2 ) 1/2 [cos + sin ] Re + i Im = a + i b = (a 2 + b 2 ) 1/2 [cos + sin ] Example: modulus, (a 2 + b 2 ) 1/2 = [(-0.177) 2 +(0.318) 2 ] 1/2 = [0.031 + 0.101] 1/2 = [0.132] 1/2 = 0.363 Example: modulus, (a 2 + b 2 ) 1/2 = [(-0.177) 2 +(0.318) 2 ] 1/2 = [0.031 + 0.101] 1/2 = [0.132] 1/2 = 0.363 Tan = sin /cos = b/a = 0.318/-0.177 = -1.80 Tan = sin /cos = b/a = 0.318/-0.177 = -1.80 = tan -1 -1.88 ~ 60.9 degrees = 0.169 fraction of a circle = 0.169*2 radians = 1.06 radians = tan -1 -1.88 ~ 60.9 degrees = 0.169 fraction of a circle = 0.169*2 radians = 1.06 radians Period = 2* / = 2 /0.169*2 = 1/0.169 =5.9 months Period = 2* / = 2 /0.169*2 = 1/0.169 =5.9 months 5.9 months, the time it takes to go around the circle once 5.9 months, the time it takes to go around the circle once
18
18 1959:01 NA 1959:02 10.00000 1959:03-47.00000 1959:04-30.00000 1959:05-92.00000 1959:06 5.000000 1959:07 44.00000 1959:08-117.0000 1959:09 110.0000 1959:10-185.0000 1959:11 61.00000 1959:12 185.0000 1960:01-141.0000 1960:02 43.00000 1960:03-394.0000 1960:04 180.0000 1960:05-18.00000 1960:06-24.00000
19
19
20
20 Difference Equation Solutions x(t) –b x(t) –b 1 x(t-1) – b 2 x(t-2) = 0 Suppose b 2 = 0, then b 1 is the root, with x(t) = b 1 x(t-1). Suppose x(0) = 100, and b 1 =1.2 then x(1) = 1.2*100, And x(2) = 1.2*x(1) = (1.2) 2 *100, And the solution is x(t) = x(0)* b 1 t In general for roots r 1 and r 2, the solution is x(t) = Ar 1 t + Br 2 t where A and B are constants
21
21 III. Autoregressive of the Second Order ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t- 2) + WN(t) ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t- 2) + WN(t) ARTWO(t) - b 1 *ARTWO(t-1) - b 2 *ARTWO(t- 2) = WN(t) ARTWO(t) - b 1 *ARTWO(t-1) - b 2 *ARTWO(t- 2) = WN(t) ARTWO(t) - b 1 *Z*ARTWO(t) - b 2 *Z*ARTWO(t) = WN(t) ARTWO(t) - b 1 *Z*ARTWO(t) - b 2 *Z*ARTWO(t) = WN(t) [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t) [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t)
22
22 Inverse of [1-b 1 z –b 2 z 2 ] ARTWO(t) = wn(t)/B(z) =wn(t)/[1-b–b ARTWO(t) = wn(t)/B(z) =wn(t)/[1-b 1 z –b 2 z 2 ] [1-b–b ARTWO(t) = A(z) wn(t) = {1/[1-b 1 z –b 2 z 2 ]}wn(t) [1-b–b So A(z) = [1 + a 1 z + a 2 z 2 + …] = 1/[1-b 1 z –b 2 z 2 ] [1-b–b [1-b 1 z –b 2 z 2 ] [1 + a 1 z + a 2 z 2 + …] = 1 -b– a 1 b 1 + a 1 z + a 2 z 2 + … -b 1 z – a 1 b 1 z 2 - b 2 z 2 … = 1 1 + (a 1 – b 1 )z + (a 2 –a 1 b 1 –b 2 ) z 2 + … = 1 So (a 1 – b 1 ) = 0, (a 2 –a 1 b 1 –b 2 ) = 0, …
23
23 Inverse of [1-b 1 z –b 2 z 2 ] A(z) = [1 + a 1 z + a 2 z 2 + …] = [1 + b 1 z + (b 1 2 +b 2 ) z 2 + …. So ARTWO(t) = wn(t) + b 1 wn(t-1) + (b 1 2 +b 2 ) wn(t-2) + …. And ARTWO(t-1) = wn(t-1) + b 1 wn(t-2) + (b 1 2 +b 2 ) wn(t-3) + ….
24
24 Autocovariance Function ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t) ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t) Using x(t) for ARTWO, Using x(t) for ARTWO, x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) By lagging and substitution, one can show that x(t-1) depends on earlier shocks, so multiplying by x(t-1) and taking expectations By lagging and substitution, one can show that x(t-1) depends on earlier shocks, so multiplying by x(t-1) and taking expectations
25
25 Autocovariance Function x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) x(t)*x(t-1) = b 1 *[x(t-1)] 2 + b 2 *x(t-1)*x(t-2) + x(t-1)*WN(t) x(t)*x(t-1) = b 1 *[x(t-1)] 2 + b 2 *x(t-1)*x(t-2) + x(t-1)*WN(t) Ex(t)*x(t-1) = b 1 *E[x(t-1)] 2 + b 2 *Ex(t-1)*x(t- 2) +E x(t-1)*WN(t) Ex(t)*x(t-1) = b 1 *E[x(t-1)] 2 + b 2 *Ex(t-1)*x(t- 2) +E x(t-1)*WN(t) x, x b 1 * x, x b 2 * x, x where Ex(t)*x(t-1), E[x(t-1)] 2, and Ex(t- 1)*x(t-2) follow by definition and E x(t- 1)*WN(t) = 0 since x(t-1) depends on earlier shocks and is independent of WN(t) x, x b 1 * x, x b 2 * x, x where Ex(t)*x(t-1), E[x(t-1)] 2, and Ex(t- 1)*x(t-2) follow by definition and E x(t- 1)*WN(t) = 0 since x(t-1) depends on earlier shocks and is independent of WN(t)
26
26 Autocovariance Function x, x b 1 * x, x b 2 * x, x x, x b 1 * x, x b 2 * x, x dividing though by x, x dividing though by x, x x, x b 1 * x, x b 2 * x, x so x, x b 1 * x, x b 2 * x, x so x, x b 2 * x, x b 1 * x, x and x, x b 2 * x, x b 1 * x, x and x, x b 2 ] b 1 or x, x b 2 ] b 1 or x, x b 1 b 2 ] x, x b 1 b 2 ] Note: if the parameters, b 1 and b 2 are known, then one can calculate the value of x, x Note: if the parameters, b 1 and b 2 are known, then one can calculate the value of x, x
27
27 Autocovariance Function x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) x(t) = b 1 *x(t-1) + b 2 *x(t-2) + WN(t) x(t)*x(t-2) = b 1 *[x(t-1)x(t-2)] + b 2 *[x(t-2)] 2 + x(t-2)*WN(t) x(t)*x(t-2) = b 1 *[x(t-1)x(t-2)] + b 2 *[x(t-2)] 2 + x(t-2)*WN(t) Ex(t)*x(t-2) = b 1 *E[x(t-1)x(t-2)] + b 2 *E[x(t- 2)] 2 +E x(t-2)*WN(t) Ex(t)*x(t-2) = b 1 *E[x(t-1)x(t-2)] + b 2 *E[x(t- 2)] 2 +E x(t-2)*WN(t) x, x b 1 * x, x b 2 * x, x where Ex(t)*x(t-2), E[x(t-2)] 2, and Ex(t- 1)*x(t-2) follow by definition and E x(t- 2)*WN(t) = 0 since x(t-2) depends on earlier shocks and is independent of WN(t) x, x b 1 * x, x b 2 * x, x where Ex(t)*x(t-2), E[x(t-2)] 2, and Ex(t- 1)*x(t-2) follow by definition and E x(t- 2)*WN(t) = 0 since x(t-2) depends on earlier shocks and is independent of WN(t)
28
28 Autocovariance Function x, x b 1 * x, x b 2 * x, x x, x b 1 * x, x b 2 * x, x dividing though by x, x dividing though by x, x x, x b 1 * x, x b 2 * x, x x, x b 1 * x, x b 2 * x, x Note: if the parameters, b 1 and b 2 are known, then one can calculate the value of x, x as we did above from x, x b 1 b 2 ], and then calculate x, x Note: if the parameters, b 1 and b 2 are known, then one can calculate the value of x, x as we did above from x, x b 1 b 2 ], and then calculate x, x
29
29 Autocorrelation Function x, x b 1 * x, x b 2 * x, x x, x b 1 * x, x b 2 * x, x Note also the recursive nature of this formula, so x, x b 1 * x, x b 2 * x, x for u>=2. Note also the recursive nature of this formula, so x, x b 1 * x, x b 2 * x, x for u>=2. Thus we can map from the parameter space to the autocorrelation function. Thus we can map from the parameter space to the autocorrelation function. How about the other way around? How about the other way around?
30
30 Yule-Walker Equations From slide 23 above, From slide 23 above, x, x b 1 * x, x b 2 * x, x and so x, x b 1 * x, x b 2 * x, x and so b 1 = x, x b 2 * x, x b 1 = x, x b 2 * x, x From slide 25 above, From slide 25 above, x, x b 1 * x, x b 2 * x, x or x, x b 1 * x, x b 2 * x, x or b 2 = x, x b 1 * x, x and substituting for b 1 from line 3 above b 2 = x, x b 1 * x, x and substituting for b 1 from line 3 above b 2 = x, x [ x, x b 2 * x, x ] x, x b 2 = x, x [ x, x b 2 * x, x ] x, x
31
31 Yule-Walker Equations b 2 = x, x {[ x, x b 2 * [ x, x ] 2 } b 2 = x, x {[ x, x b 2 * [ x, x ] 2 } so b 2 = x, x [ x, x b 2 * [ x, x ] 2 so b 2 = x, x [ x, x b 2 * [ x, x ] 2 and b 2 b 2 * [ x, x ] 2 = x, x [ x, x and b 2 b 2 * [ x, x ] 2 = x, x [ x, x so b 2 x, x ] 2 = x, x [ x, x so b 2 x, x ] 2 = x, x [ x, x and b 2 = { x, x [ x, x x, x ] 2 and b 2 = { x, x [ x, x x, x ] 2 This is the formula for the partial autocorrelation at lag two. This is the formula for the partial autocorrelation at lag two.
32
32 Partial Autocorrelation Function b 2 = { x, x [ x, x x, x ] 2 b 2 = { x, x [ x, x x, x ] 2 Note: If the process is really autoregressive of the first order, then x, x b 2 and x, x b, so the numerator is zero, i.e. the partial autocorrelation function goes to zero one lag after the order of the autoregressive process. Note: If the process is really autoregressive of the first order, then x, x b 2 and x, x b, so the numerator is zero, i.e. the partial autocorrelation function goes to zero one lag after the order of the autoregressive process. Thus the partial autocorrelation function can be used to identify the order of the autoregressive process. Thus the partial autocorrelation function can be used to identify the order of the autoregressive process.
33
33 Partial Autocorrelation Function If the process is first order autoregressive then the formula for b 1 = b is: If the process is first order autoregressive then the formula for b 1 = b is: b 1 = b =ACF(1), so this is used to calculate the PACF at lag one, i.e. PACF(1) =ACF(1) = b 1 = b. b 1 = b =ACF(1), so this is used to calculate the PACF at lag one, i.e. PACF(1) =ACF(1) = b 1 = b. For a third order autoregressive process, For a third order autoregressive process, x(t) = b 1 *x(t-1) + b 2 *x(t-2) + b 3 *x(t-3) + WN(t), we would have to derive three Yule-Walker equations by first multiplying by x(t-1) and then by x(t-2) and lastly by x(t-3), and take expectations. x(t) = b 1 *x(t-1) + b 2 *x(t-2) + b 3 *x(t-3) + WN(t), we would have to derive three Yule-Walker equations by first multiplying by x(t-1) and then by x(t-2) and lastly by x(t-3), and take expectations.
34
34 Partial Autocorrelation Function Then these three equations could be solved for b 3 in terms of x, x x, x and x, x to determine the expression for the partial autocorrelation function at lag three. EVIEWS does this and calculates the PACF at higher lags as well. Then these three equations could be solved for b 3 in terms of x, x x, x and x, x to determine the expression for the partial autocorrelation function at lag three. EVIEWS does this and calculates the PACF at higher lags as well.
35
35 Forecast of dhoust(2008.04) Dhoust(t) – C = resid(t) Resid(t) = b 1 resid(t-1) + b 2 resid(t-2) + N(t)) Dhoust(2008.04) = -0.351dhoust(2008.03) - 0.132dhoust(2008.02) N(2008.04) Taking expectations at time of last observation
36
36 Forecast of dhoust(2008.04) Dhoust(2008.04) = -0.351dhoust(2008.03) -0.132dhoust(2008.02) N(2008.04) E 2008.03 dhoust(2008.04) = -0.351dhoust(2008.03) -0.132dhoust(2008.02) Forecast = E 2008.03 dhoust(2008.04) =-0.351*-128 -0.132*-8 = 43.8 With an ser = 113.5
37
37 2007:12-178.0000-178.0000 NA 2008:01 83.00000 83.00000 NA 2008:02-8.000000-8.000000 NA 2008:03-128.0000-128.0000 NA 2008:04 NA 44.38459 113.4961 Datedhoustforecastsef
38
38
39
39
40
40 Forecasts of dhoust through June 2008
41
41
42
42 Forecasts of Monthly Change in Housing Starts April-June 2008
43
43
44
44
45
45
46
46
47
47 Residuals from ARTWO Model for dhoust
48
48 IV. Economic Forecast Project Santa Barbara County Seminar Santa Barbara County Seminar April 26, 2006 URL: http://www.ucsb-efp.com URL: http://www.ucsb-efp.com URL: http://www.ucsb-efp.com URL: http://www.ucsb-efp.com
49
49 V. Forecasting Trends
50
50 Lab Two: LNSP500
51
51 Note: Autocorrelated Residual
52
52 Autorrelation Confirmed from the Correlogram of the Residual
53
53 Visual Representation of the Forecast
54
54 Numerical Representation of the Forecast
55
55 One Period Ahead Forecast Note the standard error of the regression is 0.2237 Note the standard error of the regression is 0.2237 Note: the standard error of the forecast is 0.2248 Note: the standard error of the forecast is 0.2248 Diebold refers to the forecast error Diebold refers to the forecast error without parameter uncertainty, which will just be the standard error of the regression or with parameter uncertainty, which accounts for the fact that the estimated intercept and slope are uncertain as well
56
56 Parameter Uncertainty Trend model: y(t) = a + b*t + e(t) Trend model: y(t) = a + b*t + e(t) Fitted model: Fitted model:
57
57 Parameter Uncertainty Estimated error Estimated error
58
58 Forecast Formula
59
59 Expected Value of the Forecast E t E t
60
60 Forecast Minus its Expected Value Forecast = a + b*(t+1) + 0 Forecast = a + b*(t+1) + 0
61
61 Variance in the Forecast
62
62
63
63 Variance of the Forecast Error 0.000501 +2*(-0.00000189)*398 + 9.52x10 -9 *(398) 2 +(0.223686) 2 0.000501 - 0.00150 + 0.001508 + 0.0500354 0.0505444 SEF = (0.0505444) 1/2 = 0.22482
64
64 Numerical Representation of the Forecast
65
65 Evolutionary Vs. Stationary Evolutionary: Trend model for lnSp500(t) Evolutionary: Trend model for lnSp500(t) Stationary: Model for Dlnsp500(t) Stationary: Model for Dlnsp500(t)
66
66 Pre-whitened Time Series
67
67 Note: 0 008625 is monthly growth rate; times 12=0.1035
68
68 Is the Mean Fractional Rate of Growth Different from Zero? Econ 240A, Ch.12.2 Econ 240A, Ch.12.2 where the null hypothesis is that = 0. where the null hypothesis is that = 0. (0.008625-0)/(0.045661/397 1/2 ) (0.008625-0)/(0.045661/397 1/2 ) 0.008625/0.002292 = 3.76 t-statistic, so 0.008625 is significantly different from zero 0.008625/0.002292 = 3.76 t-statistic, so 0.008625 is significantly different from zero
69
69 Model for lnsp500(t) Lnsp500(t) = a +b*t +resid(t), where resid(t) is close to a random walk, so the model is: Lnsp500(t) = a +b*t +resid(t), where resid(t) is close to a random walk, so the model is: lnsp500(t) a +b*t + RW(t), and taking exponential lnsp500(t) a +b*t + RW(t), and taking exponential sp500(t) = e a + b*t + RW(t) = e a + b*t e RW(t) sp500(t) = e a + b*t + RW(t) = e a + b*t e RW(t)
70
70 Note: The Fitted Trend Line Forecasts Above the Observations
71
71
72
72 VI. Autoregressive Representation of a Moving Average Process MAONE(t) = WN(t) + a*WN(t-1) MAONE(t) = WN(t) + a*WN(t-1) MAONE(t) = WN(t) +a*Z*WN(t) MAONE(t) = WN(t) +a*Z*WN(t) MAONE(t) = [1 +a*Z] WN(t) MAONE(t) = [1 +a*Z] WN(t) MAONE(t)/[1 - (-aZ)] = WN(t) MAONE(t)/[1 - (-aZ)] = WN(t) [1 + (-aZ) + (-aZ) 2 + …]MAONE(t) = WN(t) [1 + (-aZ) + (-aZ) 2 + …]MAONE(t) = WN(t) MAONE(t) -a*MAONE(t-1) + a 2 MAONE(t-2) +.. =WN(t) MAONE(t) -a*MAONE(t-1) + a 2 MAONE(t-2) +.. =WN(t)
73
73 MAONE(t) = a*MAONE(t-1) - a 2 *MAONE(t-2) + …. +WN(t) MAONE(t) = a*MAONE(t-1) - a 2 *MAONE(t-2) + …. +WN(t)
74
74 Lab 4: Alternating Pattern in PACF of MATHREE
75
75 Part IV. Significance of Autocorrelations x, x (u) ~ N(0, 1/T), where T is # of observations
76
76 Correlogram of the Residual from the Trend Model for LNSP500(t)
77
77 Box-Pierce Statistic Is normalized, 1.e. is N(0,1) The square of N(0,1) variables is distributed Chi-square
78
78 Box-Pierce Statistic The sum of the squares of independent N(0, 1) variables is Chi-square, and if the autocorrelations are close to zero they will be independent, so under the null hypothesis that the autocorrelations are zero, we have a Chi-square statistic: that has K-p-q degrees of freedom where K is the number of lags in the sum, and p+q are the number of parameters estimated.
79
79 Application to: the Fractional Change in the Federal Funds Rate Dlnffr = lnffr-lnffr(-1) Dlnffr = lnffr-lnffr(-1) Does taking the logarithm and then differencing help model this rate?? Does taking the logarithm and then differencing help model this rate??
80
80
81
81
82
82
83
83
84
84
85
85
86
86 Correlogram of dlnffr(t)
87
87 How would you model dlnffr(t) ? Notation (p,d,q) for ARIMA models where d stands for the number of times first differenced, p is the order of the autoregressive part, and q is the order of the moving average part. Notation (p,d,q) for ARIMA models where d stands for the number of times first differenced, p is the order of the autoregressive part, and q is the order of the moving average part.
88
88 Estimated MAThree Model for dlnffr
89
89 Correlogram of Residual from (0,0,3) Model for dlnffr
90
90 Calculating the Box-Pierce Stat
91
91 EVIEWS Uses the Ljung-Box Statistic
92
92 Q-Stat at Lag 5 (T+2)/(T-5) * Box-Pierce = Ljung-Box (T+2)/(T-5) * Box-Pierce = Ljung-Box (586/581)*1.25368 = 1.135 compared to 1.132(EVIEWS) (586/581)*1.25368 = 1.135 compared to 1.132(EVIEWS)
93
93 GENR: chi=rchisq(3); dens=dchisq(chi, 3)
94
94 Correlogram of Residual from (0,0,3) Model for dlnffr
95
95
96
96 Serial Correlation Test
97
97 Estimated MAThree Model for dlnffr
98
98 Breusch-Godfrey Serial Correlation Test
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.