Given a dataset, in the first question I evaluate the transmission mechanism of the monetary policy by means of a VAR model using as information set the vector of three variables yt = (ฮgdpt , inflt , ratet)โ, where ฮgdpt is the growth rate of the gdp, inflt is the inflation rate and ratet is the policy interest rate. Using the first three series reported in the dataset, I specify and estimate a VAR model and discuss the monetary transmission mechanism by calculating structural impulse response functions. Moreover, I test whether the policy interest rate does cause (in the Granger sense) the other two variables in the system. Finally, I choose one of the three variables and estimate an appropriate ARMA model, commenting on the differences with respect to the corresponding equation in the VAR model.
In the second question, I verify that the three variables are nonstationary and, using the Engle-Granger approach, whether the series are effectively cointegrated. Moreover, I verify if and which variable reacts to the disequilibria from the cointegrating relation.
Top Rated Pune Call Girls Sinhagad Road โ 6297143586 โ Call Me For Genuine S...
ย
Risi ottavio
1. Time Series Analysis Project, Dec 2017
QUESTION 1
The analysis starts with the observation of time series of variables gdp, infl and rate (growth rate of the
gdp, inflation rate and policy interest rate). Their graphs show persistence and ergodicity and they fluctuate
around โ0โ, that seems their mean (the processes are mean-reverting - Figure 1). Table 1 shows all the
descriptive statics of three variables: all their means are practically โ0โ and all mean square errors are very
low. Now the objective is to confirm stationarity of each time series in order to estimate a VAR model in a
multivariate way. The first test is the ADF, done for each variable, his null hypothesis is: process has a unit
root. Indeed, a unit root in the process compromises the stationarity, and the estimate of a VAR model
becomes difficulty. For gdp the ADF test, done without a constant because it is โ0โ (ฮผ = 0), rejects the null
hypothesis with a p-value < 0,001 (Table 2). For the same test infl and rate, always without constant (ฮผ = 0),
result stationary too, thanks to their very low p-values (Table 3 โ 4). The second test is the KPSS, done for
each variable, itโs another way to confirm stationarity. Indeed, its null hypothesis is: process is stationary.
Gdp, infl and rate pass this test for all the critical values (10% - 5% - 1%), it is another confirm they are
stationary. So, to proceed itโs not necessary to take differences of variables. From three univariate
processes, we move to the multivariate one estimating the reduced form VAR(p). Information criteria
Akaike (AIC) and Schwartz (BIC) suggest the right order p of the reduced VAR(p). In this case 1 is the order
suggested by all criteria (Figure 2), the smallest value for AIC and BIC. Now the reduced form of VAR(1) can
be estimated (stars represent the level of significance 1%โโโ
5%โโ
10%โ
) :
๐๐ด๐ (1):
๐๐๐๐ก
๐๐๐๐ ๐ก
๐๐๐ก๐๐ก
=
0,02
0,03
0,02โ
+
0,52โโโ โ0,32โโโ โ0,11โ
0,27โโโ
0,51โโโ
โ0,01
0,19โโโ
0,28โโโ
0,53โโโ
๐๐๐๐กโ1
๐๐๐๐ ๐กโ1
๐๐๐ก๐๐กโ1
+
๐1๐ก
๐2๐ก
๐3๐ก
Thanks to this model we understand that the constant is practically โ0โ, how we expected, and we can see
all causal links between the three variables (in the Granger sense). But, before, we must test
autocorrelation, homoskedasticity and normality of error terms (๐๐ก), therefore of residuals (๐๐กฬ), for the
goodness of the model. The test in Figure 3 (Ljung-Box) confirms that residuals are not autocorrelated, the
test in Figure 4 that they are homoskedastic, both test present high p-values. Finally, saving residuals of
each variables we can test the normality of them. Figure 5 shows that the residuals of gdp are distributed
like a normal (p-value = 0,24, then we accept the null hypothesis of normality). The same test works for infl
and rate. Table 5 shows all details of the VAR(1) estimated, the F test reported are interesting in an
economic point of view. These F tests (in this case equal to the t test because the Var order is 1) suggest
whether the past variables on the right of equation causes in the Granger sense the present value on the
left. Indeed, the great contribute given by Clive William John Granger, Nobel prize for the economy in 2003,
is the assumption that the cause preceded the effect. Considering only the policy interest rate, with a
significance level of 10% it causes negatively, in the Granger sense, the present growth rate of the gdp (-
0,11%). While there is not Granger causality between the policy interest rate and the inflation rate (the
coefficient -0,01% is not significative). All this can be confirmed with the tests F for the delays of the policy
interest rate in Table 5 (null hypothesis of the test, for gdp for example, is that the element of the matrix
a13 is equal to โ0โ, for infl that the element a23 is equal to โ0โ; we consider only the third column of matrix
for the analysis of rate Granger causality). In the reduced form of VAR(1) residuals have not an economics
meaning and donโt represent economics shocks (they are also correlated one to the other). With a
mathematical demonstration we can give an economics interpretation to the residuals, moving from a
reduced form of VAR(1) to a structural VAR(1) one. This with the Cholesky Identification, considering
residuals ๐๐ก = ๐ต๐ข ๐ก, where B is a rotation matrix (lower triangular) that allows to move from error terms to
structural shocks, now uncorrelated, with an economic meaning. In this case SVAR(1) shocks are:
(
๐๐ก
๐๐๐
๐๐ก
๐๐๐๐
๐๐ก
๐๐๐ก๐
) = (
0,42โโโ
0 0
0,12โโโ
0,36โโโ
0
0,25โโโ
0 0,11โโโ
) (
๐ข ๐ก
๐๐๐
๐ข ๐ก
๐๐๐๐
๐ข ๐ก
๐๐๐ก๐
)
This estimate refers to the shocks in the first period (month). Adding a forecast horizon of 24 periods (2
years) we know the reaction of each variable through the time for each economic shock. Focusing on shock
2. Time Series Analysis Project, Dec 2017
of the interest rate (variable rate), therefore the transmission mechanism of the monetary policy, Table 5
shows the reaction of the growth rate of gdp and the inflation rate through 24 periods (2 years).
In a dynamic point of view the impulse response functions (IRF) of a shock in the interest rate causes these
effects in gdp and infl in 2 years:
These graphs are useful to understand the transmission mechanism of the monetary policy, using the
interest rate shock (๐ข ๐ก
๐๐๐ก๐
). The first graph demonstrates that a sudden restrictive monetary policy (interest
rate increase โ shock) doesnโt influence the growth rate of gdp in the first month (how we have evaluated
in SVAR(1)), but only after a month. Indeed, after a month the growth rate of gdp falls by 2% and after 11
months (about 1 year) it restores gradually the value before the shock. This dynamic transmission of the
shock is confirmed by the economic theory. Indeed, an increase of the interest rate reduces the liquidity in
the system, so the demand decreases and gdp too. But the response of gdp is temporarily and not instant.
As the second graph, it demonstrates a particular relationship between the shock in the interest rate and
the inflation rate. Also in this case inflation rate reacts to the shock of the interest rate after a month (how
we expected), precisely it falls by 0,006% after three months. So, the inflation returns gradually to its initial
value after 13 months (about 1 year). But this impact on inflation rate is small and not statistically
significant, how demonstrated by the confidence interval at 95% (green cloud) that covers entirely the โ0โ
line. The result of this estimate is that interest rate shock practically doesnโt influence inflation rate.
However, using economic theory and forcing the statistic estimate (for example considering only the red
line of the graph), we can assert a delayed and negative relationship between the shock of the interest rate
and the inflation rate. Indeed, during a restrictive monetary policy the demand falls and consequently the
level of prices drops with delay.
Finally, a right ARMA(p;q) model for the interest rate can be selected analysing its correlogram in Figure 6.
The correlogram suggests a model AR(p) pure, since the total sample autocorrelations (first part in Figure 6
ACF) come down gradually, while the partial ones (second part in Figure 6 PACF) stop brusquely in the
second delay. The AIC and BIC criteria (Table 7 for all analysis of the right ARMA model) confirm an
ARMA(2;0), without a constant (ฮผ=0). Indeed, all parameters are 1% significative (green numbers of Table 7
are not 1% significative) and BIC is the smallest 184,06. This model was in competition with an ARMA(2;1)
that has the smallest AIC (171,9), but not all parameters are 1% significant. Moreover, AIC criterion doesnโt
penalize extra parameters like the BIC one. So, we maintain the AR(2). Another confirmation comes by the
Ljung-Box test (Q in Table 7) that with 12 delays presents a p-value =0,48 > 5%. We can accept the null
hypothesis of absence of autocorrelation. Already an ARMA(2;4) appears over parametrized, so we can
stop there. ๐ด๐ (2): ๐๐๐ก๐๐ก = 0,95โโโ
๐๐๐ก๐๐กโ1 โ 0,22โโโ
๐๐๐ก๐๐กโ2 + ๐๐ก
The main difference between an ARMA and VAR model is that the first is a stochastic univariate process
that explains the dynamic of a single variable; the second is a multivariate stochastic process that considers
the dynamic of a vector of variables, then their simultaneous responses (in fact the arrangement of
variables in the matrix is fundamental). In both models we can estimate the response impulse function of
variables to unexpected shocks (๐๐ก), which persist because of the persistence of the models. The difference
is that the VAR model gives precise economic signals about the response of an economic variable to the
shock of the other.
3. Time Series Analysis Project, Dec 2017
QUESTION 2:
The money demand function is: ๐ = ๐ฝ0 + ๐ฝ1 ๐ฆ โ ๐ฝ2 ๐ where m is the quantity of money, y the gross
domestic product and i the short-term interest rate. It represents a long run equilibrium. Analysing data
(Figure 7), we understand that m and y are RW which share a trend, also the variable i is a RW stochastic
process and, like the others, needs to the fist difference to be stationary (m, y, i ฬด I(1)). However, the three
not stationary variables together become stationary, in a long run equilibrium (spurious correlation). The
confirm of this assertion comes by the Engle-Granger test, which tests the stationarity of residuals of the
money demand function (๐ง๐ก = ๐ ๐ก โ ๐ฝ0 โ ๐ฝ1 ๐ฆ๐ก + ๐ฝ2 ๐ ๐ก ฬด ๐ผ(0)). The test in Table 8 confirms cointegration,
indeed the variables m, y, i have a unit root, while their residuals not (p-values analysis). Then the
cointegration regression is ๐ ๐ก = โ0,25 + 0,96โโโ
๐ฆ๐ก โ 0,29โโโ
๐ ๐ก , all coefficients are super consistence
(they converge in a point) and this money demand function estimated represent a long run equilibrium
(high ๐ 2
= 0,99). The residuals of this cointegration regression, which fluctuate around โ0โ (๐ธ(๐ง๐ก) = 0
Figure 8), can be consider the equilibrium errors (disequilibria from the cointegrating relation). They
capture the deviations from equilibrium and, in this case, are: ๐ง๐ก = ๐ ๐ก + 0,25 โ 0,96๐ฆ๐ก + 0,29๐ ๐ก .
To verify if and which variables react to the disequilibrium from the cointegrating relation, we can use the
error correction mechanism (ECM Figure 10), estimating an OLS for each variable:
๐๐๐๐๐ ๐ก = 0,06 ๐๐๐๐๐ฆ๐กโ1 โ 0,03๐๐๐๐๐ ๐กโ1 โ 0,03๐๐๐๐๐ ๐กโ1 โ 0,29โโโ
๐ง๐กโ1
๐๐๐๐๐ ๐ก = โ0,05๐๐๐๐๐ฆ๐กโ1 โ 0,05๐๐๐๐๐ ๐กโ1 + 0,01๐๐๐๐๐ ๐กโ1 + 0,15โโโ ๐ง๐กโ1
๐๐๐๐๐ฆ๐ก = โ0,04๐๐๐๐๐ฆ๐กโ1 + 0,002๐๐๐๐๐ ๐กโ1 + 0,04๐๐๐๐๐ ๐กโ1 + 0,002๐ง๐กโ1
The dependent variable is the first difference (all variables are difference-stationary DS), on the right the
first three variables represent the short run dynamic, while the coefficient of the delayed residuals captures
how the system restores the equilibrium of the money demand function (in equilibrium ๐ง๐ก = ๐ง๐กโ1 = 0).
The variables that react to the disequilibrium are those that have the coefficient (๐พ) of the delayed
residuals significative (1%โโโ
). Then the quantity of money and the short-term interest rate react to the
disequilibrium, while the gross domestic product is weakly exogenous. Precisely, being ๐ง๐กโ1 = ๐ ๐กโ1 +
0,25 โ 0,96๐ฆ๐กโ1 + 0,29๐ ๐กโ1 , we can analyse all reaction of m and i for restoring the initial equilibrium. For
the quantity of money: if in t-1 the interest rate rises, in t the equilibrium is restored with a decrease of the
money quantity; if in t-1 the gross domestic product rises, in t the equilibrium is restored with an increase
of the money quantity. For the short-term interest rate: if in t-1 money quantity rises, in t the equilibrium is
restored with an increase of the interest rate; if in t-1 gross domestic product rises, in t the equilibrium is
restored with a decrease of the interest rate. All this is confirmed by the macroeconomic theory, indeed the
equation in the Question 2 represents the long run equilibrium in the money and financial activities market
(LM curve). In equilibrium the money supply is equal to the money demand. A shock of a variable in the
equation (disequilibrium) creates a response of the endogenous variables money quantity (m) and short-
term interest rate (i), ruled by the Central Bank. While the dynamics of the gross domestic product is
weakly exogenous. In the model ๐ฝ1 represents the money demand sensitivity to change in income (gdp),
while ๐ฝ2 the money demand sensitivity to change in short-term interest rate (this relation is negative).
In a multivariate way, all this analysis can be done with a VECM model. Itโs useful to derivate, using the
Cholesky identification seen in the first question, the impulse response function of dependent variables for
restoring the long run equilibrium caused by a momentary disequilibrium (shock of a variable). Using the
same dataset, we can estimate a VECM model: the coefficients are practically similar and m and i are the
only ones that react to the disequilibrium (like before). The four dynamics seen of the economic variables
are also confirmed by the impulse response functions (below is considered only one of the three reactions
of each dependent value, complete graph in Figure 9 โ y confirms to be weakly exogenous: 95% conf. int.
hides the โ0โ line):
4. Time Series Analysis Project, Dec 2017
APPENDIX
Figura 1: gdp, infl and rate time series
Variabile Media Mediana SQM Min Max
gdp -0,0116 -0,0115 0,507 -1,36 1,44
infl 0,0460 0,0516 0,483 -1,18 1,36
rate 0,0736 0,0727 0,481 -1,37 1,47
Tabella 1: descriptive statics time series
5. Time Series Analysis Project, Dec 2017
Tabella 2: ADF test for gdp
Tabella 3: ADF test for infl
Tabella 4: ADF test for rate
6. Time Series Analysis Project, Dec 2017
Figura 2: information criteria for Var(p)
Figura 3: test autocorellation residuals Var(1)
7. Time Series Analysis Project, Dec 2017
Figura 4: test homoskedasticity Var(1)
Figura 5: test normality residuals of gdp in Var(1)
8. Time Series Analysis Project, Dec 2017
Equazione 1: gdp
Errori standard HAC, larghezza di banda 5 (Kernel di Bartlett)
Coefficiente Errore Std. rapporto t p-value
const 0,0164368 0,0213894 0,7685 0,4427
gdp_1 0,524043 0,0423524 12,37 <0,0001 ***
infl_1 โ0,318480 0,0550883 โ5,781 <0,0001 ***
rate_1 โ0,105248 0,0610948 โ1,723 0,0857 *
Somma quadr. residui 71,18443 E.S. della regressione 0,424516
R-quadro 0,305357 R-quadro corretto 0,300081
F(3, 395) 63,35728 P-value(F) 1,83e-33
rho 0,018480 Durbin-Watson 1,961943
Test F per zero vincoli:
Tutti i ritardi di gdp F(1, 395) = 153,1 [0,0000]
Tutti i ritardi di infl F(1, 395) = 33,423 [0,0000]
Tutti i ritardi di rate F(1, 395) = 2,9677 [0,0857]
Equazione 2: infl
Errori standard HAC, larghezza di banda 5 (Kernel di Bartlett)
Coefficiente Errore Std. rapporto t p-value
const 0,0270280 0,0188617 1,433 0,1527
gdp_1 0,270517 0,0378944 7,139 <0,0001 ***
infl_1 0,511354 0,0476192 10,74 <0,0001 ***
rate_1 โ0,0142334 0,0523867 โ0,2717 0,7860
Somma quadr. residui 57,09556 E.S. della regressione 0,380192
R-quadro 0,387085 R-quadro corretto 0,382430
F(3, 395) 97,63396 P-value(F) 2,71e-47
rho 0,021403 Durbin-Watson 1,943554
Test F per zero vincoli:
Tutti i ritardi di gdp F(1, 395) = 50,961 [0,0000]
Tutti i ritardi di infl F(1, 395) = 115,31 [0,0000]
Tutti i ritardi di rate F(1, 395) = 0,07382 [0,7860]
Equazione 3: rate
Errori standard HAC, larghezza di banda 5 (Kernel di Bartlett)
Coefficiente Errore Std. rapporto t p-value
const 0,0238105 0,0141124 1,687 0,0924 *
gdp_1 0,192287 0,0284596 6,756 <0,0001 ***
infl_1 0,279202 0,0333280 8,377 <0,0001 ***
rate_1 0,527889 0,0376379 14,03 <0,0001 ***
Somma quadr. residui 29,52413 E.S. della regressione 0,273395
R-quadro 0,679771 R-quadro corretto 0,677339
F(3, 395) 276,3990 P-value(F) 1,24e-96
rho 0,013375 Durbin-Watson 1,970384
Test F per zero vincoli:
Tutti i ritardi di gdp F(1, 395) = 45,65 [0,0000]
Tutti i ritardi di infl F(1, 395) = 70,181 [0,0000]
Tutti i ritardi di rate F(1, 395) = 196,71 [0,0000]
Tabella 5: Var(1) estimated
9. Time Series Analysis Project, Dec 2017
Month Gdp Infl Rate
Tabella 6:analytics IRF rate 24 months
11. Time Series Analysis Project, Dec 2017
Figura 7: dynamic variables m, y. i
Passo 1: test per una radice unitaria in m
Test Dickey-Fuller aumentato per m
test all'indietro da 12 ritardi, criterio AIC
Ampiezza campionaria 399
Ipotesi nulla di radice unitaria: a = 1
Test con costante
inclusi 0 ritardi di (1-L)m
Modello: (1-L)y = b0 + (a-1)*y(-1) + e
Valore stimato di (a - 1): 0,00112703
Statistica test: tau_c(1) = 0,567808
p-value 0,9887
Passo 2: test per una radice unitaria in y
Test Dickey-Fuller aumentato per y
test all'indietro da 12 ritardi, criterio AIC
Ampiezza campionaria 398
Ipotesi nulla di radice unitaria: a = 1
Test con costante
incluso un ritardo di (1-L)y
Modello: (1-L)y = b0 + (a-1)*y(-1) + ... + e
Valore stimato di (a - 1): -0,000965234
Statistica test: tau_c(1) = -0,441053
p-value asintotico 0,8998
12. Time Series Analysis Project, Dec 2017
Passo 3: test per una radice unitaria in i
Test Dickey-Fuller aumentato per i
test all'indietro da 12 ritardi, criterio AIC
Ampiezza campionaria 399
Ipotesi nulla di radice unitaria: a = 1
Test con costante
inclusi 0 ritardi di (1-L)i
Modello: (1-L)y = b0 + (a-1)*y(-1) + e
Valore stimato di (a - 1): 0,00298417
Statistica test: tau_c(1) = 0,973453
p-value 0,9964
Passo 4: regressione di cointegrazione
Regressione di cointegrazione -
OLS, usando le osservazioni 1973:01-2006:04 (T = 400)
Variabile dipendente: m
coefficiente errore std. rapporto t p-value
--------------------------------------------------------------
const โ0,254378 0,611615 โ0,4159 0,6777
y 0,956123 0,0155740 61,39 9,32e-205 ***
i โ0,294614 0,00994982 โ29,61 1,53e-102 ***
Media var. dipendente 97,48300 SQM var. dipendente 59,21247
Somma quadr. residui 7116,941 E.S. della regressione 4,234006
R-quadro 0,994913 R-quadro corretto 0,994887
Log-verosimiglianza โ1143,329 Criterio di Akaike 2292,658
Criterio di Schwarz 2304,633 Hannan-Quinn 2297,400
rho 0,719074 Durbin-Watson 0,562716
Passo 5: test per una radice unitaria in uhat
Test Dickey-Fuller aumentato per uhat
test all'indietro da 12 ritardi, criterio AIC
Ampiezza campionaria 395
Ipotesi nulla di radice unitaria: a = 1
Modello: (1-L)y = (a-1)*y(-1) + ... + e
Valore stimato di (a - 1): -0,279877
Statistica test: tau_c(3) = -6,39466
p-value asintotico 1,505e-007
Coefficiente di autocorrelazione del prim'ordine per e: 0,010
differenze ritardate: F(4, 390) = 2,225 [0,0657]
Tabella 8: Engle-Granger test for cointegration
13. Time Series Analysis Project, Dec 2017
Figura 8: residuals money demand function estimated
Figura 9: impulse response function VECM