Autoregressive and Distributed

Download Report

Transcript Autoregressive and Distributed

Agung Harjaya Buana
Budi Suhendar
Krismiyati
Yogi Sugiawan
Yusuf Wicaksono
Static Models
β€’ A time series model where only
contemporaneous explanatory variables affect
the dependent variable
β€’ Relate a time series variable to other time series
variables
β€’ The effect is assumed to operate within a same
period
Dynamic Models
β€’ A time series model where the lagged value of
explanatory variables and/or dependent variable
affect the present value of dependent variable
π‘Œπ‘‘ = 𝛼 + 𝛽0 𝑋𝑑 + 𝛽1 π‘‹π‘‘βˆ’1 + 𝛽2 π‘‹π‘‘βˆ’2 + 𝑒𝑑
π‘Œπ‘‘ = 𝛼 + 𝛽𝑋𝑑 + π›Ύπ‘Œπ‘‘βˆ’1 + 𝑒𝑑
What is the role of lags in economics?
ο‚ž What are the reasons for the lags?
ο‚ž Is there any theoretical justification for the
commonly used lagged models in empirical
econometrics?
ο‚ž What is the relationship, if any, between
autoregressive and distributed lag models? Can
one be derived from the other?
ο‚ž What are some of the statistical problems
involved in estimating such models?
ο‚ž Does a lead-lag relationship between variables
imply causality? If so, how does one measure it?
ο‚ž
DistributedLag Model
OLS
Almon
Aproach (PDL)
LAG
Autoregressive
Model
Koyck
Approach
Instrumental
Variable
Causality
Adaptive
Expectations
Granger
Causality Test
PAM
π‘Œπ‘‘ = 𝛼 + 𝛽0 𝑋𝑑 + 𝛽1 π‘‹π‘‘βˆ’1 + 𝛽2 π‘‹π‘‘βˆ’2 + β‹― + 𝛽2 π‘‹π‘‘βˆ’π‘˜ + 𝑒𝑑
Examples
β€’ The consumption function
β€’ Demand deposit (creation of bank
money)
β€’ Link between money and prices
β€’ Lag between R&D expenditure and
productivity
β€’ The J curve of international economic
β€’ The accelerator model of investment
Psychological
Technological
Institutional
Lags
π‘Œπ‘‘ = 𝛼 + 𝛽0 𝑋𝑑 + 𝛽1 π‘‹π‘‘βˆ’1 + 𝛽2 π‘‹π‘‘βˆ’2 + β‹― + 𝑒𝑑
π‘Œπ‘‘ = 8.37 + 0.171 𝑋𝑑
π‘Œπ‘‘ = 8.27 + 0.111 𝑋𝑑 + 0.064π‘‹π‘‘βˆ’1
π‘Œπ‘‘ = 8.27 + 0.109 𝑋𝑑 + 0.071π‘‹π‘‘βˆ’1 βˆ’ 0.055π‘‹π‘‘βˆ’2
π‘Œπ‘‘ = 8.32 + 0.108 𝑋𝑑 + 0.063π‘‹π‘‘βˆ’1 + 0.022π‘‹π‘‘βˆ’2 βˆ’ 0.020π‘‹π‘‘βˆ’3
π›½π‘˜ = 𝛽0 πœ†π‘˜
π‘˜ = 0,1, …
∞
π›½π‘˜ = 𝛽0
π‘˜=0
1
1βˆ’πœ†
π‘Œπ‘‘ = 𝛼 + 𝛽0 𝑋𝑑 + 𝛽0 πœ†π‘‹π‘‘βˆ’1 + 𝛽0 πœ†2 π‘‹π‘‘βˆ’2 + β‹― + 𝑒𝑑
π‘Œπ‘‘βˆ’1 = 𝛼 + 𝛽0 π‘‹π‘‘βˆ’1 + 𝛽0 πœ†π‘‹π‘‘βˆ’2 + 𝛽0 πœ†2 π‘‹π‘‘βˆ’3 + β‹― + π‘’π‘‘βˆ’1
πœ†π‘Œπ‘‘βˆ’1 = πœ†π›Ό + πœ†π›½0 π‘‹π‘‘βˆ’1 + 𝛽0 πœ†2 π‘‹π‘‘βˆ’2 + 𝛽0 πœ†3 π‘‹π‘‘βˆ’3 + β‹― + πœ†π‘’π‘‘βˆ’1
π‘Œπ‘‘ βˆ’ πœ†π‘Œπ‘‘βˆ’1 = 𝛼 1 βˆ’ πœ† + 𝛽0 𝑋𝑑 + (𝑒𝑑 βˆ’ πœ†π‘’π‘‘βˆ’1 )
π‘Œπ‘‘ = 𝛼 1 βˆ’ πœ† + 𝛽0 𝑋𝑑 + πœ†π‘Œπ‘‘βˆ’1 + [𝑒𝑑 βˆ’ πœ†π‘’π‘‘βˆ’1 ]
log 2
π‘€π‘’π‘‘π‘–π‘Žπ‘› πΏπ‘Žπ‘” = βˆ’
log πœ†
π‘€π‘’π‘Žπ‘› πΏπ‘Žπ‘” =
πœ†
1 βˆ’πœ†
π‘Œπ‘‘ = 𝛽0 + 𝛽1 𝑋 βˆ— 𝑑 + 𝑒𝑑
𝑋 βˆ— 𝑑 βˆ’ 𝑋 βˆ— π‘‘βˆ’1 = 𝛾 (𝑋𝑑 βˆ’ 𝑋 βˆ— π‘‘βˆ’1 )
π‘Œπ‘‘ = 𝛽0 + 𝛽1 𝛾𝑋𝑑 + 1 βˆ’ 𝛾 𝑋 βˆ— π‘‘βˆ’1 ) + 𝑒𝑑
π‘Œπ‘‘ = 𝛾𝛽0 + 𝛾𝛽1 𝑋𝑑 + 1 βˆ’ 𝛾 π‘Œπ‘‘βˆ’1 + [𝑒𝑑 βˆ’ 1 βˆ’ 𝛾 π‘’π‘‘βˆ’1 ]
π‘Œ βˆ— 𝑑 = 𝛽0 + 𝛽1 𝑋𝑑 + 𝑒𝑑
π‘Œπ‘‘ βˆ’ π‘Œπ‘‘βˆ’1 = 𝛿 (π‘Œ βˆ— 𝑑 βˆ’ π‘Œπ‘‘βˆ’1 )
π‘Œπ‘‘ = π›Ώπ‘Œ βˆ— 𝑑 + (1 βˆ’ 𝛿)π‘Œπ‘‘βˆ’1
π‘Œπ‘‘ = 𝛿𝛽0 + 𝛿𝛽1 𝑋𝑑 + 1 βˆ’ 𝛿 π‘Œπ‘‘βˆ’1 + 𝛿𝑒𝑑
Comments
β€’ The PAM model resembles
both the Koyck and the AE
model in that it is
autoregressive
β€’ Its disturbance term is
simpler
PAM vs AE Model
The gradual adjustment due to rigidities
β€’ AE model is based on
uncertainty of the future
(interest rate, prices, etc)
β€’ PAM model is based on
technical or institutional
rigidities
Koyck and AEM
π‘Œπ‘‘ = 𝛼 1 βˆ’ πœ† + 𝛽0 𝑋𝑑 + πœ†π‘Œπ‘‘βˆ’1 + [𝑒𝑑 βˆ’ πœ†π‘’π‘‘βˆ’1 ]
π‘Œπ‘‘ = 𝛾𝛽0 + 𝛾𝛽1 𝑋𝑑 + 1 βˆ’ 𝛾 π‘Œπ‘‘βˆ’1 + [𝑒𝑑 βˆ’ 1 βˆ’ 𝛾 π‘’π‘‘βˆ’1 ]
β€’ Presence of stochastic explanatory
variables and possibility of serial
correlation.
β€’ Cannot be estimated by using OLS
Partial Adjustment
β€’ OLS estimation of PAM yield consistent
estimates although tend to bias.
π‘Œπ‘‘ = 𝛿𝛽0 + 𝛿𝛽1 𝑋𝑑 + 1 βˆ’ 𝛿 π‘Œπ‘‘βˆ’1 + 𝛿𝑒𝑑
π‘Œπ‘‘ = 𝛼0 + 𝛼1 𝑋𝑑 + 𝛼2 π‘Œπ‘‘βˆ’1 + 𝑣𝑑
Comments
β€’ Although PAM provides consstent
estimation, one should not assume that it
applies rather than the Koyck or adaptive
expectations model.
β€’ A model should be chosen on the basis of
strong theoretical considerations.
OLS for Koyck and AEM
β€’Cannot be used because the explanatory variable tends to be
correlated with error term
β€’Can be used if the correlation can be removed
How to Remove It?
β€’Use a proxy called Instrumental Variable (IV)
β€’Based on Liviatan suggestion, Xt-1 is the instrumental variable for Yt-1
Does It Solve the Problem?
β€’No, a problem with multicollinearity occurs
β€’Thus, although Liviatan procedure yields consistent estimates, the
estimator are likely to be inefficient
How to Find a Good Proxy?
β€’Refer to the previous presentation
Can we use d stat?
β€’ No, we cannot, because the computed d value in
such model generally tends toward 2
How to detect it?
β€’ Durbin propose the h statistic test
𝑛
β„Ž= 𝜌
1 βˆ’ 𝑛[π‘£π‘Žπ‘Ÿ 𝛼2 ]
β€’ where
𝑑
πœŒβ‰ˆ1βˆ’
2
Features of the h statistic
β€’ To compute h, we need consider only the
variance of the coefficient of the lagged
Yt-1
β€’ The test is not applicable if [nvar(a2)]
exceeds 1
β€’ Since the test is a large-sample test, its
application in small samples is not strictly
justified (Inder and Kiviet). It has been
suggested to use the more powerful test,
the BG test.
Koyck Scheme
Almon Polynomial-Lag Scheme
1st Step
β€’ Rewrite the finite distributed-lag model into a more compact
form:
π‘˜
π‘Œπ‘‘ = 𝛼 +
𝛽𝑖 π‘‹π‘‘βˆ’π‘– + 𝑒𝑑
𝑖=0
2nd Step
β€’ By following the Weierstrass’ theorem, Almon assumes that Ξ²i
can be approximated by:
𝛽𝑖 = π‘Ž0 + π‘Ž1 𝑖 + π‘Ž2 𝑖 2 + β‹― + π‘Žπ‘š 𝑖 π‘š
3rd Step
β€’ Substitutes the equation from the second step to the first step
we get:
π‘˜
(π‘Ž0 + π‘Ž1 𝑖 + π‘Ž2 𝑖 2 + β‹― + π‘Žπ‘š 𝑖 π‘š )π‘‹π‘‘βˆ’π‘– + 𝑒𝑑
π‘Œπ‘‘ = 𝛼 +
𝑖=0
4th Step
β€’ Defines new variables Z’s:
π‘˜
π‘˜
𝑍0𝑑 =
π‘‹π‘‘βˆ’π‘– ;
𝑖=0
𝑍1𝑑 =
π‘˜
π‘–π‘‹π‘‘βˆ’π‘– ; … … ;
𝑖=0
𝑖 π‘š π‘‹π‘‘βˆ’π‘–
π‘π‘šπ‘‘ =
𝑖=0
5th Step
β€’ Rewrite the equation in the third step by using the
new variables
π‘Œπ‘‘ = 𝛼 + π‘Ž0 𝑍0𝑑 + π‘Ž1 𝑍1𝑑 + β‹― + π‘Žπ‘š π‘π‘šπ‘‘ + 𝑒𝑑
6th Step
β€’ Estimates the equation on the fifth
step by using OLS
β€’ Satisfies the CLRM assumption
β€’ Estimates Ξ² from a’s:
𝛽0 = π‘Ž0
𝛽1 = π‘Ž0 + π‘Ž1 + π‘Ž2
𝛽2 = π‘Ž0 + 2π‘Ž1 + 4π‘Ž2
𝛽3 = π‘Ž0 + 3π‘Ž1 + 9π‘Ž2
πœ·π’Œ = π’‚πŸŽ + π’Œπ’‚πŸ + π’ŒπŸ π’‚πŸ
Determine the Length of Lag (AIC or SIC)
Omission of relevant variable
bias
Inclusion of irrelevant variable
bias
Degree of Polynomial
Number of turning points
the choose of m is subjective
Constructing Z’s
π‘˜
𝑖 π‘š π‘‹π‘‘βˆ’π‘–
π‘π‘šπ‘‘ =
𝑖=0
Imply Causality
β€’ . . . time does not run backward. That is, if event A
happens before event B, then it is possible that A is
causing B. However, it is not possible that B is causing
A. In other words, events in the past can cause events
to happen today. Future events cannot …
Predictive Causality
β€’ . . . the statement β€œyi causes yj” is just shorthand for
the more precise, but longwinded, statement, β€œyi
contains useful information for predicting yj (in the
linear least squares sense), over and above the past
histories of the other variables in the system.” To save
space, we simply say that yi causes yj
GDP and Money Supply
𝑛
𝐺𝐷𝑃𝑑 =
𝑛
𝛼𝑖 π‘€π‘‘βˆ’1 +
𝑖=1
𝑛
𝑀𝑑 =
𝛽𝑗 πΊπ·π‘ƒπ‘‘βˆ’1 + 𝑒1𝑑
𝑖=1
𝑛
πœ†π‘– π‘€π‘‘βˆ’1 +
𝑖=1
𝛿𝑗 πΊπ·π‘ƒπ‘‘βˆ’1 + 𝑒2𝑑
𝑖=1
β€’ Assumes that u1t and u2t are uncorrelated
Four Possible Cases from F-test
β€’ Unidirectional causality from GDP to M
β€’ Unidirectional causality from M to GDP
β€’ Feedback, or bilateral causality
β€’ Independence
1st Step
β€’ Regress current GDP on all lagged GDP terms and
other variables (if any)
β€’ Calculate the restricted residual sum of squares, RSSR
2nd Step
β€’ Regress all variables including the lagged M terms
β€’ Calculate the unrestricted residual sum of squares,
RSSUR
3rd Step
β€’ The null hypothesis is H0: Ξ±i = 0, i = 1,2,…, n, that is
lagged M terms do not belong in the regression
4th Step
5th Step
6th Step
β€’.
(𝑅𝑆𝑆𝑅 βˆ’ π‘…π‘†π‘†π‘ˆπ‘… )/π‘š
𝐹=
π‘…π‘†π‘†π‘ˆπ‘… /(𝑛 βˆ’ π‘˜)
β€’ If the computed F value exceeds the critical F value at
the chosen level of significance, we reject the null
hypothesis
β€’ M causes GDP
β€’ Repeat steps 1 to 5 to test whether GDP causes M
Stationarity
β€’ We have to be sure that all variables are stationary, if
they are not, make them stationary
β€’ Beware of spurious causality
Number of Lag
β€’ AIC or SIC
β€’ The direction of causality may depend critically on
the number of lagged terms included
No Autocorrelation
β€’ Make sure that the error terms entering the causality
test are uncorrelated
Exogeneity
Weak
Estimating
and Testing
Strong
Forecasting
Super
Policy
Analysis
Koyck, AEM and PAM
β€’ The Koyck is developed based on a purely algebraic
approach, meanwhile the AEM and PAM are built based on
economic principles
β€’ A unique feature of all of those model is that they all are
autoregressive in nature
β€’ Bias and inconsistency are the case with the Koyck and
AEM. To overcome them, we can use the instrument
variable
Almon PDL
β€’ Avoid the estimation problems associated with
autoregressive model
β€’ Problems in determining the lag length and the degree of
the polynomial