Professional Documents
Culture Documents
04 Var-1
04 Var-1
Macroeconometrics
Macroeconometrics VAR 1
Readings
• Enders, Ch. 5
Macroeconometrics VAR 2
1
16/10/2023
1. Introduction
Macroeconometrics VAR 3
1. Introduction
variables.
• In the two variables case, we can let the time path 𝑦 , be affected by
Macroeconometrics VAR 4
2
16/10/2023
Macroeconometrics VAR 5
2.1 VAR
1. 𝑦 , =𝛾 +𝑏 𝑦 +𝛾 𝑦 , +𝛾 𝑦 , +𝜀 ,
2. 𝑦 , =𝛾 +𝑏 𝑦 , +𝛾 𝑦 , +𝛾 𝑦 , +𝜀 ,
Macroeconometrics VAR 6
3
16/10/2023
2.1 VAR
contemporaneous effect on 𝑦 , (𝑦 , ).
Macroeconometrics VAR 7
2.1 VAR
• Using matrix algebra, we can write the system in the compact form:
1 𝑏 𝑦 , 𝛾 𝛾 𝛾 𝑦 , 𝜀 ,
3. 𝑦 = 𝛾 + 𝛾 𝛾 𝑦 + 𝜀
𝑏 1 , , ,
4. 𝐵𝑦 = Γ + Γ 𝑦 +𝜀
5. 𝑦 = 𝐴 + 𝐴 𝑦 +𝑢
• Notice 𝑢 = 𝐵 𝜀 ⇒ 𝜀 = 𝐵𝑢
Macroeconometrics VAR 8
4
16/10/2023
2.1 VAR
6. 𝑦 , =𝑎 +𝑎 𝑦 , +𝑎 𝑦 , +𝑢 ,
7. 𝑦 , =𝑎 +𝑎 𝑦 , +𝑎 𝑦 , +𝑢 ,
• System (1) and (2) is called a structural VAR or the primitive system
and the system (7) and (6) is called a reduced VAR or in standard
form.
Macroeconometrics VAR 9
2.1 VAR
• Structural VAR:
1 𝑏 𝑦 , 𝛾 𝛾 𝛾 𝑦 , 𝜀 ,
𝑦 = 𝛾 + 𝛾 𝛾 𝑦 + 𝜀
𝑏 1 , , ,
𝜀 ,
𝜀 = 𝜀 ~𝑖𝑖𝑑 0, Σ
,
𝜎 0
Σ =
0 𝜎
Macroeconometrics VAR 10
10
5
16/10/2023
2.1 VAR
𝑦 , 𝑎 𝑎 𝑎 𝑦 , 𝑢 ,
𝑦 = 𝑎 + 𝑎 𝑎 𝑦 + 𝑢
, , ,
𝑢 ,
𝑢 = 𝑢 ~𝑖𝑖𝑑 0, Ω
,
𝜔 𝜔
Ω =
𝜔 𝜔
Macroeconometrics VAR 11
11
2.1 VAR
• In general, consider a VAR in the standard form with p lags, VAR (p):
𝑦 =𝐴 +𝐴 𝑦 + ⋯+ 𝐴 𝑦 +𝑢
𝑦 = 𝐴 + 𝐴(𝐿) 𝑦 + 𝑢
𝜔 𝜔
𝑢 ~𝑖𝑖𝑑 0, Ω ; Ω =
𝜔 𝜔
Macroeconometrics VAR 12
12
6
16/10/2023
2.1 VAR
• 𝑢 , = (𝜀 , − 𝑏 𝜀 , )/(1 − 𝑏 𝑏 )
• 𝑢 , = (𝜀 , − 𝑏 𝜀 , )/(1 − 𝑏 𝑏 )
• 𝐸𝑢 , =𝐸 𝑢 , =0
Macroeconometrics VAR 13
13
2.1 VAR
•𝐸𝑢,𝑢 , = −𝑏 𝜎 + 𝑏 𝜎 ⁄ 1− 𝑏 𝑏 =𝜎 =𝜎
Macroeconometrics VAR 14
14
7
16/10/2023
3. Lag Selection
Macroeconometrics VAR 15
15
Macroeconometrics VAR 16
16
8
16/10/2023
3. By using statistical criteria that trade off fit against the number of
parameters fitted.
Macroeconometrics VAR 17
17
Macroeconometrics VAR 18
18
9
16/10/2023
order.
Macroeconometrics VAR 19
19
Macroeconometrics VAR 20
20
10
16/10/2023
• The proper test for this cross-equation restriction is a Likelihood Ratio (LR):
Macroeconometrics VAR 21
21
the VAR over the same sample period using ℓ − 1 lags and obtain the
Macroeconometrics VAR 22
22
11
16/10/2023
Macroeconometrics VAR 23
23
• The VAR
𝑦 = 𝐴 + 𝐴(𝐿) 𝑦 + 𝑢
[𝐼 − 𝐴 𝐿 ]𝑦 = 𝐴 + 𝑢
Macroeconometrics VAR 24
24
12
16/10/2023
Macroeconometrics VAR 25
25
5. Identification
Macroeconometrics VAR 26
26
13
16/10/2023
5. Identification
• Suppose that you want to recover the structural VAR from your
Macroeconometrics VAR 27
27
5. Identification
Macroeconometrics VAR 28
28
14
16/10/2023
5. Identification
• Is the primitive form identifiable given the OLS estimates of the VAR
Macroeconometrics VAR 29
29
5. Identification
Macroeconometrics VAR 30
30
15
16/10/2023
5. Identification
• One way to identify the model is to use the type of recursive system
Macroeconometrics VAR 31
31
5. Identification
• Suppose that you are willing to impose a restriction on the primitive system
1. 𝑦 , =𝑏 +𝑏 𝑦 +𝛾 𝑦 , +𝛾 𝑦 , +𝜀 ,
2. 𝑦 , =𝑏 + (0)𝑦 , +𝛾 𝑦 , +𝛾 𝑦 , +𝜀 ,
1 𝑏 1 −𝑏
• 𝐵= ⇒𝐵 =
0 1 0 1
Macroeconometrics VAR 32
32
16
16/10/2023
5. Identification
1 𝑏 𝑦 , 𝑏 𝛾 𝛾 𝑦 , 𝜀 ,
𝑦 = + 𝛾 𝛾 𝑦 + 𝜀
0 1 , 𝑏 , ,
𝑢 =𝐵 𝜀
𝑢 1 −𝑏 𝜀
𝑢 = 𝜀
0 1
Macroeconometrics VAR 33
33
5. Identification
Decomposition.
• Note that structural shocks (not observed) can now be identified from the
𝑢 =𝐵 𝜀 ⟹ 𝜀 = 𝐵𝑢
𝜀 1 𝑏 𝑢
𝜀 = 𝑢
0 1
Macroeconometrics VAR 34
34
17
16/10/2023
Cholesky Decomposition
• 𝑀 = 𝐿𝐿′
Macroeconometrics VAR 35
35
Cholesky Decomposition
Macroeconometrics VAR 36
36
18
16/10/2023
Macroeconometrics VAR 37
37
6.1 IRF
Macroeconometrics VAR 38
38
19
16/10/2023
6.1 IRF
• The VAR
𝑦 = 𝐴 + 𝐴(𝐿) 𝑦 + 𝑢
[𝐼 − 𝐴 𝐿 ]𝑦 = 𝐴 + 𝑢
Macroeconometrics VAR 39
39
6.1 IRF
𝑦 = 𝜇 + Ψ(𝐿)𝑢
Macroeconometrics VAR 40
40
20
16/10/2023
6.1 IRF
𝑦 𝜇 𝜓 (𝑖) 𝜓 (𝑖) 𝑢 ( )
= 𝜇 +
𝑦 𝜓 (𝑖) 𝜓 (𝑖) 𝑢 ( )
𝑦 = 𝜇 +𝜓 0 𝑢 +𝜓 0 𝑢 + ⋯∞
𝑦 =𝜇 +𝜓 0 𝑢 +𝜓 0 𝑢 +⋯∞
Macroeconometrics VAR 41
41
6.1 IRF
𝜕𝑦 𝜕𝑦
= =𝜑
𝜕𝑢 𝜕𝑢
Macroeconometrics VAR 42
42
21
16/10/2023
6.1 IRF
• We know that 𝑢 = 𝐵 𝜀 ⇒ 𝜀 = 𝐵𝑢
𝑦 = 𝜇 + Ψ(𝐿)𝑢
𝑦 = 𝜇 + Ψ(𝐿)𝐵 𝐵𝑢
𝑦 = 𝜇 + Θ(𝐿)𝜀
Macroeconometrics VAR 43
43
6. IRF
• Notice that the results of the IRF depends on the identification of the
VAR.
Macroeconometrics VAR 44
44
22
16/10/2023
6.1 IRF
𝑦 𝜇 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
= 𝜇 +
𝑦 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
𝑦 = 𝜇 +𝜃 0 𝜀 +𝜃 0 𝜀 + ⋯∞
𝑦 =𝜇 +𝜃 0 𝜀 +𝜃 0 𝜀 + ⋯∞
Macroeconometrics VAR 45
45
6.1 IRF
𝜕𝑦 𝜕𝑦
= = 𝜃(𝑖)
𝜕𝜀 𝜕𝜀
Macroeconometrics VAR 46
46
23
16/10/2023
6.1 IRF
unit change in 𝜀 on 𝑦 .
Macroeconometrics VAR 47
47
6.1 IRF
𝑦 , 𝑎 𝑎 𝑎 𝑦 , 𝑢 ,
𝑦 = 𝑎 + 𝑎 𝑎 𝑦 + 𝑢
, , ,
𝑦 , 𝜇 𝑎 𝑎 𝑢 ,
𝑦 = 𝜇 + 𝑎 𝑎 𝑢
, ,
Macroeconometrics VAR 48
48
24
16/10/2023
response functions.
𝜃 (𝑖) 𝜃 (𝑖)
= Θ(1)
𝜃 (𝑖) 𝜃 (𝑖)
Macroeconometrics VAR 49
49
Macroeconometrics VAR 50
50
25
16/10/2023
fitted.
other variables.
Macroeconometrics VAR 51
51
• We want to forecast one period ahead and we have information until period 𝒕:
• 𝐸𝑦 =𝐴 +𝐴 𝑦
• 𝑦 =𝐴 +𝐴 𝑦 +𝑢
• 𝑦 −𝐸 𝑦 =𝑢
Macroeconometrics VAR 52
52
26
16/10/2023
•𝐸𝑦 =𝐴 +𝐴 𝐸 𝑦
•𝐸𝑦 = 𝐴 + 𝐴 (𝐴 + 𝐴 𝑦 )
•𝐸𝑦 = (𝐼 + 𝐴 )𝐴 + 𝐴 𝑦
•𝑦 =𝐴 +𝐴 𝑦 +𝑢
Macroeconometrics VAR 53
53
•𝑦 −𝐸 𝑦 =𝐴 +𝐴 𝑦 +𝑢 −𝐴 −𝐴 𝐸 𝑦
•𝑦 −𝐸 𝑦 =𝑢 +𝐴 𝑦 −𝐸 𝑦 =𝑢 +𝐴 𝑢
Macroeconometrics VAR 54
54
27
16/10/2023
𝐸𝑦 = (𝐼 + 𝐴 + 𝐴 + ⋯ + 𝐴 )𝐴 + 𝐴 𝑦
𝑢 +𝐴 𝑢 +𝐴 𝑢 + ⋯+𝐴 𝑢
Macroeconometrics VAR 55
55
𝑦 ( ) 𝜇 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
𝑦 = 𝜇 +
( ) 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
Macroeconometrics VAR 56
56
28
16/10/2023
𝑦 ( ) 𝜇 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
𝐸 𝑦 = 𝜇 +
( ) 𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
Macroeconometrics VAR 57
57
𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
𝑦 −𝐸 𝑦 =
𝜃 (𝑖) 𝜃 (𝑖) 𝜀 ( )
Macroeconometrics VAR 58
58
29
16/10/2023
𝑦 , −𝐸 𝑦 , =𝜃 0 𝜀 , +𝜃 1 𝜀 , + ⋯+ 𝜃 𝑛−1 𝜀 , +⋯
+𝜃 0 𝜀 , +𝜃 1 𝜀 , + ⋯+ 𝜃 𝑛−1 𝜀 ,
Macroeconometrics VAR 59
59
𝜎 𝜃 (0) +𝜃 (1) + ⋯ + 𝜃 (𝑛 − 1)
Macroeconometrics VAR 60
60
30
16/10/2023
are:
𝜎 𝜃 (0) +𝜃 (1) + ⋯ + 𝜃 (𝑛 − 1)
𝜎 (𝑛)
Macroeconometrics VAR 61
61
• And
𝜎 𝜃 (0) +𝜃 (1) + ⋯ + 𝜃 (𝑛 − 1)
𝜎 (𝑛)
• Respectively
Macroeconometrics VAR 62
62
31
16/10/2023
• At the other extreme, 𝜀 could explain all the forecast error variance in the
• It is typical for a variable to explain almost all its forecast error variance at
Macroeconometrics VAR 63
63
• Note that the Choleski decomposition used necessitates that all the
Macroeconometrics VAR 64
64
32
16/10/2023
Macroeconometrics VAR 65
65
(1972).
Macroeconometrics VAR 66
66
33
16/10/2023
6. 𝑦 , =𝑎 +𝑎 𝑦 , +𝑎 𝑦 , +𝑢 ,
7. 𝑦 , =𝑎 +𝑎 𝑦 , +𝑎 𝑦 , +𝑢 ,
Macroeconometrics VAR 67
67
• 𝐻 :𝑎 =0
𝑦,.
Macroeconometrics VAR 68
68
34