Escolar Documentos
Profissional Documentos
Cultura Documentos
et =Exchange Rate; pt =Price level domestic country; pft =Price level foreign country
= +
For the purpose of model building, it is a necessary condition to test if the series are stationary I(0) or non-stationary
I(d). By inspecting the series, suspicion arises that the series for exchange rates and price levels for both domestic and
foreign countries might be integrated of some order since there is no evidence of mean reversion or timeindependent variance.
Figure 1: Plot of nominal exchange rate series
CALAFFERNANDEZ1E
CALAFFERNANDEZ2P
10
CALAFFERNANDEZ3PF
16
24
20
12
16
0
8
12
-5
8
4
-10
-15
-20
-4
-4
25
50
75
100
125
150
175
200
25
50
75
100
125
150
175
200
25
50
75
100
125
150
175
To formally test for the stationarity of these series several tests are performed, namely Augmented Dickey-Fuller
(ADF) test3 and Phillips-Perron (PP) test4.
The Law of One Price (LOP) = theory stating that price of internationally traded goods should be equal anywhere in
the world providing that the price is expressed in a common currency. Results from arbitrage opportunities, where
riskless profit could be obtained by acquiring a product where the price is low and selling it in a location with a higher
price.
2
Alan M. Taylor, and Mark P. Taylor. "The Purchasing Power Parity Debate."
We use the Augmented Dickey-Fuller (ADF) test instead of Dickey Fuller test since the error term in the latter one is
autocorrelated. A parametric way to correct for serial correlation in error term is using ADF test.
4
Phillips-Perron (PP) test corrects the serial correlation in the error term by modifying the test statistic using a nonparametric approach
200
Figure 4: ADF test with trend and intercept on nominal exchange rates
All of the three series above behave as a random walk without a drift, implying that while performing a unit root test
a trend should not be included. However, to test if a trend should be included, perform the ADF test with intercept
and trend and check for the significance of the trend coefficient.
In the estimation output in figure 4 the coefficient for @trend(1) is highly insignificant implying that a trend should
not be included in the unit root test for stationarity
In the estimation output in figure 5, the coefficient for the intercept (C) is significant implying that it should be
included for performing an ADF test. The p-value obtained, 0.0026, forces us to reject the null-hypothesis and accept
the alternative hypothesis at a 99% level of confidence. Where the hypotheses are as follow
H0 : series has a unit root = series is non stationary
H1 : series has no unit root = series is stationary
The PP test shares the same hypotheses as the ADF test. In figure 6 the results from this test on nominal exchange
rates including and intercept term are shown. The P-value attained makes us reject the null hypothesis and accept the
alternative hypothesis at a 99% level of confidence5.
It should be noted the both the ADF and PP test are feeble test in the sense that there is a probability of rejecting
the null hypothesis when in fact it is true. Moreover, both test share the disadvantage of sensitivity to structural
breaks (which can be observed in the plot of the series Figure 1, 2 and 3) and lack of power in small samples. In
conclusion, it shouldnt be ruled out that the series are non-stationary.
These tests for stationarity are repeated for the other two variables
present in the model ( and ). As it can be observed from figure 2
and 3, the series seems to display neither a deterministic trend nor
do they seem to be fluctuating around a non-zero mean. This implies
that the aforementioned tests for stationarity should not include a
trend but should include an intercept term. The results for the 3 tests
of stationarity are summarised in table 1 and 2 respectively.
Table 1: Unit root test for calaf2p series (domestic price index)
Table 2: Unit root test for calaf3pf series (foreign price index)
In appendix 3, it can be seen that if an ADF test is performed on the first difference of both series (calaf2p and
calaf3pf), they are rendered stationary. This implies that both series are integrated of order 1 (I(1)) and that the series
are a difference stationarity process (DSP).
A central question for continuing the analysis, is finding whether nominal exchange rates are correlated with past
values of the foreign price index series. This can be formally tested using the Granger Causality test. To perform this
test, a necessary condition is that the series being scrutinised have to display a stationary process. Once results are
obtained, there can be unidirectional and bidirectional causality or independence. Essentially, Granger Causality
measures whether current and past values of the foreign price index ( ) aid to forecast future values of nominal
exchange rates ( ), or vice versa.
As abovementioned, the series calaf3pf (log of foreign price index) are I(1), this means that if the first difference is
taken on the series it will be rendered stationary. As a result, a new series will be obtained which would be equal to
the change in foreign price index or equivalently the foreign inflation rate. Although this procedure is necessary, by
differencing the series, useful long run information about the causal relationship between the variables is
condemned.
= 1
3 = 3 31
A Vector Autoregressive Model (VAR) has to be estimated to execute a Granger Causality test. A tool used to select
the correct lag length of a given VAR model, is to compare the Akaike, Schwarz and Hannan-Quinn criterion for
models of different lags and select the model that minimises these values. From the results obtained in Appendix 4,
the conclusion is that a VAR(1) model (Appendix 5) should be estimated to carry out the Granger Causality test. In
other words, the model being estimated is of this sort:
11
(
) = (1 ) + (
21
12
1
1
22 ) + (1 ) + (2 )
0.0130) . Furthermore, the null hypothesis of 12 = 0 is failed to be rejected (p-value 0.6530), ergo concluding that
current values of the nominal exchange rate will not be affected by past values of . These results can be stressed
by looking at the impulse response functions which are used to produce the time path of the dependant variable in a
VAR model to shocks from all the explanatory variables.
This test is formally carried out using the Engle-Granger test for cointegration; however a limitation of Eviews is that
residuals being used for the stationarity test are taken from an OLS regression instead of a DOLS or FMOLS regression.
Hence, the test is carried out manually by saving up the residuals from said regressions and testing their stationarity
with an ADF test. The critical values used to compare the t statistic are found in the Engle-Granger table for residualbased tests.
Finally, Fully Modified OLS also corrects for the endogeneity bias in a
non-parametric manner, allowing it to be an unbiased and efficient
estimator. The same process as before is carried out where the
residuals are obtained from the FMOLS regression (Appendix 10) and
perform an ADF test (Appendix 11) to test the stationarity of the
residuals. The same conclusion of stationarity in the residuals and
cointegration in the series, ergo displaying a long run relationship, is
attained when the t-statistic, -5.742710, is compared with the critical
value at 95% level of confidence, -3.7429. In figure 12, the values can
be interpreted as a 1% increase in the domestic price index will cause
a 1.015556% increase in the nominal exchange rate, whilst a 1% increase in the foreign price index will trigger a
0.914905 decrease in the nominal exchange rate (in the long run).
7
The estimated value of and converge to the true parameters at a rate of T-1 (faster) instead of T-1/2 with a
consistent estimator.
8
Lags and leads were selected using Schwarz Criterion since it is more lenient with more parsimonious models.
In conclusion, these long run relationships are fairly close to the theoretical long run relationship that the PPP
hypothesis predicts (1% increase in domestic price index leading to a 1% increase in nominal exchange rate and 1%
increase in foreign price index causing a 1% decrease in nominal exchange rates), hence the long run PPP hypothesis is
proven using the unrestricted formulation.
A semi restricted formulation of the PPP hypothesis can be used to test for the existence of long run relationship
amongst the variables. The following should be carried out.
Generate series = +
= Where the theoretical cointegrating vector would be [1]
Table 3: Semi-restricted formulation of PPP hypothesis for testing long-run relationship
UT
5
4
3
2
1
0
-1
-2
-3
25
50
75
100
125
150
175
200
stationary,
thus once more the long run relationship in the PPP hypothesis is proven. More over the series could be
interpreted as the real exchange rate between the two countries.
I decide to continue my analysis using the unrestricted formulation of the PPP hypothesis since it allows for a clearer
interpretation of the coefficients.
The following step in our analysis is to construct a model that describes the long run and short run behaviour of the
series, as well as the speed of adjustment at which the dependant variable returns to equilibrium when there is a
shock in the explanatory variables and . A model analysing these dynamics is the Error Correction Model
(ECM). The long run relationship will be captured by the equilibrium error, acting as a gravitational pull after a short
run shock, bringing the series back to its equilibrium. The standard OLS is an efficient estimation for this model;
however it requires variables to be stationary. Subsequently, the variables will have to be differenced to render them
stationary.
Obtaining a good forecast model is crucial for any policymaker and economic agent. As explained previously, countries
with different exchange rate regimes, whether these are floating or fixed exchange rates, are interested in obtaining
accurate forecast of the nominal exchange rates so that their monetary policy could be adjusted accordingly.
Moreover the import, export and financial industries rely heavily on currency exchange rates; hence it is in their
interest to obtain precise predictions on nominal exchange rates.
An AR(p) type model is developed to be compared in terms of in sample predictability and out of sample forecasting
ability with the 3 ECMs developed so far. The procedure used to obtain the AR(2) model is descried in Appendix 24.
= 0 + 1 1 + 2 2
A 10-step-ahead forecast is obtained in all 4 models by removing the last 10 observations in the sample and carrying
out again the regression with the reduced sample size. Ergo, the previous models are estimated with a reduced
sample size ranging from observation 1 until observation 190, and the forecast is obtained from observation 191 until
the end of the sample, observation 200.
Figure 15: Forecast ECM using OLS residuals
Forecast: DCALAF1EF
Actual: DCALAF1E
Forecast sample: 191 200
Included observations: 10
Root Mean Squared Error
Mean Absolute Error
Mean Abs. Percent Error
Theil Inequality Coefficient
Bias Proportion
Variance Proportion
Covariance Proportion
6
4
2
0
-2
-4
-6
191
192
193
194
195
DCALAF1EF
196
197
198
199
200
2 S.E.
1.029700
0.906036
77.57305
0.203536
0.001017
0.005839
0.993144
Forecast: DCALAF1EF
Actual: DCALAF1E
Forecast sample: 191 200
Included observations: 10
Root Mean Squared Error
Mean Absolute Error
Mean Abs. Percent Error
Theil Inequality Coefficient
Bias Proportion
Variance Proportion
Covariance Proportion
1.047171
0.920083
78.72245
0.206957
0.000117
0.006496
0.993387
Forecast: DCALAF1EF
Actual: DCALAF1E
Forecast sample: 191 200
Included observations: 10
Root Mean Squared Error
Mean Absolute Error
Mean Abs. Percent Error
Theil Inequality Coefficient
Bias Proportion
Variance Proportion
Covariance Proportion
1.036103
0.913569
76.94243
0.204674
0.000008
0.007325
0.992666
-4
-6
191
192
193
194
195
196
197
198
199
200
2 S.E.
DCALAF1EF
192
193
194
195
196
197
198
199
200
2 S.E.
DCALAF1EF
Forecast: DCALAF1EF
Actual: DCALAF1E
Forecast sample: 191 200
Included observations: 10
Root Mean Squared Error
Mean Absolute Error
Mean Abs. Percent Error
Theil Inequality Coefficient
Bias Proportion
Variance Proportion
Covariance Proportion
-2
2.489271
2.074111
96.19463
0.934155
0.041616
0.819755
0.138629
-4
-6
191
192
193
194
195
DCALAF1EF
196
197
198
199
200
2 S.E.
It is observed that both the root mean squared error (RMSE) and the mean absolute error (MAE) are relatively high
for all 4 models suggesting that the forecast are not close to the observed values. Furthermore, the mean absolute
percentage errors (MAPE) for all the models are once again relatively high. In the AR(2) model, this high value of
MAPE can be explained due to failure in the model to account for the variability in the out-of sample data. In the
ECMs, these values are marginally lower suggesting that ECMs perform better in their forecasting ability.
The Theils inequality coefficients for the ECMs are somewhat close to 0 suggesting that our forecasts obtained
through these models are reliable. Nevertheless, the Theils inequality coefficient obtained through the AR(2) process
is fairly close to 1, indicating that a nave forecast will perform just as well.
Finally, both the bias and variance proportion in the ECMs are quite low, implying that both the forecasted mean and
variance respectively are fairly close to the observed mean and variance. Conversely, the bias and variance proportion
10
obtained in the forecast of the AR(2) process are higher, suggesting that this model underperforms in terms of out-ofsample forecasting ability.
In table 6 and 7 a comparison is shown on the performance in terms of insample predictability and out-of-sample
forecasting ability.
Table 6: Model comparison in terms of in-sample predictability
The model preferred in terms of fitting past data is the ECM using FMOLS residuals since it marginally minimises all of
the criteria above.
Table 7: Model comparison in terms of out-of-sample forecasting performance
Nonetheless, in terms of forecasting capacity, it is shown that the model that marginally mimeses most of the criteria
used to measure the forecasting aptitude is the ECM using OLS residuals. This result is consistent with our
expectation, since if and are cointegrated (as it has been shown) OLS is super-consistent. Implying that the
estimated parameter for converges to the true value of at a much faster rate.
The preferred model in terms of both out-of-sample forecasting aptitude and in-sample predictability is the ECM using
FMOLS residuals since it manages to correct the endogeneity bias and serial correlation present in the ECM using OLS
residuals.
Furthermore, it is important to note that neither of the ECMs forecasts have managed to yield a forecast for the
nominal exchange rate close to 1, as the theory predicts. This can be explained by the omission of important variables
in the model such as transportation cost or barriers of trade.
In conclusion, the absolute PPP hypothesis has been proven using the data available. The non stationarity of the series
was tested using unit root tests to both avoid meaningless results in Granger Causality tests and to carry out
cointegration tests when all the series were found to be I(1). Cointegration tests were executed on different
formulations of the absolute PPP hypothesis, where the long run relationship was proven since cointegration vectors
were found to be close to the theoretical ones that the theory predicts. Moreover, having found that the series were
cointegrated, the short run dynamics of the series and the adjustment towards the long run equilibrium was tested by
generating ECMs. Finally, the different ECMs were compared against an AR model in terms of in-sample predictability
and out-of-sample forecasting ability, and it was concluded that the ECMs outperformed the AR model in both.
11
Appendices
Appendix 1
ADF test with intercept without trend on calaf2p
Appendix 2
ADF test with intercept without trend on calaf3pf
12
Appendix 3
1st difference ADF test without intercept or trend on calaf2p
Appendix 4
Appendix 5
13
Appendix 6
Appendix 7
RESID_UNRESTRICT_OLS
4
3
2
1
0
-1
-2
-3
-4
25
50
75
100
125
150
175
200
Appendix 8
Appendix 9
RESID_UNRESTRICT_DOLS
5
4
3
2
1
0
-1
-2
-3
-4
25
50
75
100
125
150
175
200
14
Appendix 10
Appendix 11
RESID_UNRESRICT_FMOLS
4
3
2
1
0
-1
-2
-3
-4
25
50
75
100
125
150
175
200
Appendix 12
Appendix 13
RESID_SEMIRESTRICT_OLS
5
4
3
2
1
0
-1
-2
-3
-4
25
50
75
100
125
150
175
200
15
Appendix 14
Appendix 15
RESID_SEMIRESTRICT_DOLS
5
4
3
2
1
0
-1
-2
-3
25
50
75
100
125
150
175
200
Appendix 16
Appendix 17
RESID_SEMIRESTRICT_FMOLS
5
4
3
2
1
0
-1
-2
-3
25
50
75
100
125
150
175
200
16
Appendix 18
Appendix 19
Appendix 20
Appendix 21
17
Appendix 22
Appendix 23
Appendix 24
Correlogram of
18
19
Bibliography
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
Zhenhui Xu. "Purchasing Power Parity, Price Indices, and Exchange Rate Forcasts."Journal of
International Money and Finance 22 (2003): 105-30.
Professor Roy Batchelor. "EVIEWS Tutorial: Cointegration and Error Correction." Lecture. City
University Business School, London & ESCP, Paris. 2000. Web. Jan. 2014.
Jose G. Montalvo. "Comparing Cointegrating Regression Estimators: Some Additional Monte Carlo
Results." Economics Letters 48 (n.d.): 229-34. ME and Department of Economics, Universitat
Pompeu Fabra.
John Elder and Peter E. Kennedy. "Testing for Unit Roots: What Should Students Be
Taught?" JOURNAL OF ECONOMIC EDUCATION (Spring 2001).
Annonymus. "An Engle-Granger Approach to Testing the Purchasing Power Parity."Econometrics B
Project.
Brooks, Chris. Introductory Econometrics for Finance. Cambridge: Cambridge UP, 2002. Print.
Roman Kozhan. Financial Econometrics with Eviews. N.p.: Ventus, n.d.Www.bookboon.com.
Anisul M. Islam, and Syed M. Ahmed. "The Purchasing Power Parity Relationship: Causality and
Cointegration Tests Using Korea-U.S. Exchange Rate and Prices." JOURNAL OF ECONOMIC
DEVELOPMENT 24.2 (1999)
Annonymus. "TESTING FOR CO-INTEGRATION." Bo Sj (2010)
Frederick Wallace. "Cointegration Tests of Purchasing Power Parity." Munich Personal RePEc
Archive (2009): n. pag. Universidad De Quintana Roo
Peter Pedroni. "PURCHASING POWER PARITY TESTS IN COINTEGRATED PANELS." REVIEW OF
ECONOMICS AND STATISTICS 83.4 (2001): 727-31
Verbeek, Marno. A Guide to Modern Econometrics. Chichester: Wiley, 2000. Print.
Robin Best. "School for Quantitative Methods in Social Research." Oxford. 2008.
Zhuo Chen and Yuhong Yang (2004), Assesing Forecast Accuracy Measures, Iowa State University
20