Abstract
This study uses a family of VAR models with time-varying parameters and stochastic volatility (TVP-VAR-SV) to analyze the impact of external shocks on output growth and inflation in Peru in 1992Q1-2017Q1. The statistical relevance of the models is assessed using the deviance information criterion (DIC) and the marginal log-likelihood calculated using the cross-entropy method. The results show that: (i) it is more relevant to introduce SV than TVP; i.e., the best fitting model admits only varying intercepts and SV; and TVP-VAR and CVAR are the least performing models; (ii) the models’ impulse response functions indicate that the impacts from external shocks are different under high inflation, economic crisis, and monetary policy change, with a greater impact in episodes of high uncertainty; (iii) the impact and importance of external shocks have increased over time; and (iv) the results are robust to changes in the priors, the lag structure, order of the variables, the choice of the external variable, and the selection of the variable for domestic economic activity.
Similar content being viewed by others
Notes
Studies done before this period, such as the works by Obstfeld (1982) and Svensson and Razin (1983), assess the possible impact of the terms of trade (as part of an external shock) on the current account and domestic output (known as the HLM effect), as suggested by Harberger (1950) and Laursen and Metzler (1950). The authors conclude that the effects estimated depend on the duration of shocks: while a negative and transitory shock deteriorates the current account, a permanent external shock does not have a relevant impact on the current account.
Estimation by traditional or frequentist methods is clearly impossible given that our model has 40 parameters if we want to allow each of them to vary over time (32 associated with lags, 4 intercepts and 4 variances). This is why we use Bayesian methods, specifically MCMCS methods through which we approximate the posterior densities through the likelihood together with the prior densities. Although we cannot apply asymptotic frequentist theory (\(T\Rightarrow \infty\)) since we have around 100 observations, the number of draws (after burning, thinning and the number of chains used) allow us to invoke asymptotic properties for the posterior densities as the number of draws (\(N\Rightarrow \infty\)).
For example, when \(n=3\), \(\textbf{W}_{t}\) has the form:
$$\begin{aligned} \textbf{W}_{t}=\begin{bmatrix}0 &{} 0 &{} 0\\ -y_{1,t} &{} 0 &{} 0\\ 0 &{} -y_{1,t} &{} -y_{2,t} \end{bmatrix} \end{aligned}$$where \(y_{it}\) is the ith element of \(\textbf{y}_{t}\) for \(i=1,2\).
Gelfand and Dey (1994), Chib (1995) and Chib and Jeliazkov (2001), among others, propose alternative methods for calculating the marginal likelihood. However, Frühwirth-Schnatter and Wagner (2008) show that using the conditional likelihood or the complete data likelihood obtained through the method suggested by Chib (1995) results in an incorrect choice of models. Moreover, Chan and Eisenstat (2015) use empirical results to show that the CE method is faster and more accurate that the three mentioned before.
Akaike’s information criterion (AIC) selects 4 lags. However, this may imply an over parameterization and loss of efficiency in the estimates. Therefore, in terms of parsimony, we choose 2 lags. Furthermore, we follow Ivanov and Kilian (2005) who recommend using SIC and HQIC for quarterly series.
The Log ML criterion does not offer a trade-off criterion between model complexity and model flexibility; rather, it assesses how likely it is that the observed data is generated by a particular model. Instead, the DIC makes a balance (or trade-off) between the complexity and flexibility of the different models and chooses the model with its lowest value.
We also estimated regime-switching (RS) VAR models with SV, three with 2 regimes (\(r=2\)) and three with 3 regimes (\(r=3\)). The only RS models that are better than the main ones (TVP-VAR and CVAR) are those that allow a change in volatility between regimes, with a log-ML\(_{CE}\) of \(-1059.717\) and \(-1067.507\) for \(r=2\) and \(r=3\text {,}\) respectively. However, both TVP-VAR-SV and CVAR-SV are preferred over the best RS model (RS-VAR-R1-SV, \(r=2\)), as they show a BF of \(1.7\times 10^{21}\) and \(2.8\times 10^{28}\), respectively. This indicates that a smooth and continuous change in the variance, the VAR coefficients, and the intercepts are preferable to an abrupt and discrete change, as in the RS models, and therefore we discard them in this study. Chávez and Rodríguez (2023) estimate an extension of the RS-VAR-SV models, with similar results as ours.
In some cases the share is close to 100% (TVP-VAR-SV, TVP-VAR-R1-SV, and TVP-VAR-R2-SV models).
The share of AD shocks is more important in explaining output fluctuations before IT adoption; and drops to around 20% more recently. In contrast, the share of AS shocks is not important (always below 5%). Additionally, the share of MP shocks is high in the first years of the sample, especially since 1997 due to the interest rate increase caused by the Asian crisis, as suggested by Velarde and Rodríguez (2001), until 2002. This result is in line with Castillo et al. (2009) regarding the high interest rate variability in 1994-2001 and stabilization since 2002.
HD calculation is based on the method suggested by Wong (2017) for non-linear models.
We calculate the IRFs, FEVD, and HD for each robustness exercise. The Figures are in an Appendix available upon request.
References
Adler G, Magud NE, Werner A (2017) Terms-of-Trade Cycles and External Adjustment. IMF Working Paper WP/17/29
Aguirre E (2011) Business cycles in emerging markets and implications for the real exchange rate. PhD Thesis, Columbia University, New York. https://core.ac.uk/download/pdf/161437094.pdf
Ahmed S, Murthy R (1994) Money, output and real business cycles in a small open economy. Can J Econ 27(4):982–993
Ahmed S (2003) Sources of economic fluctuations in Latin America and implications for choice of exchange rate regimes. J Dev Econ 72(1):181–202
Armas A, Grippa F (2008) Metas de inflación en una economía dolarizada: La experiencia del Perú. Revista de Análisis del BCB 10(1):7–44
Becker T, Mauro P (2006) Output drops and the shocks that matter. Working Paper 06-172, International Monetary Fund
Benigno G, Chen H, Otrok C, Rebucci A, Young ER (2013) Financial crises and macro-prudential policies. J Int Econ 89(2):453–470
Benigno G, Chen H, Otrok C, Rebucci A, Young ER (2016) Optimal capital controls and real exchange rate policies: a pecuniary externality perspective. J Monet Econ 84:147–165
Bernanke B, Gertler M (1989) Agency costs, net worth, and business fluctuations. Am Econ Rev 79(1):1–15
Bianchi J (2011) Overborrowing and systemic externalities in the business cycle. Am Econ Rev 101(7):3400–3426
Bianchi J, Mendoza EG (2018) Optimal time-consistent macroprudential policy. J Polit Econ 126(2):588–634
Blattman C, Hwang J, Williamson J (2004) The impact of the terms of trade on economic development in the periphery, 1870-1939: Volatility and secular change. NBER Working Paper 10600. https://doi.org/10.3386/w10600
Broda C (2004) Terms of trade and exchange rate regimes in developing countries. J Int Econ 63(1):31–58
Campos L (2015) An analysis of exogenous shocks using structural vector autorregressions identified with sign restrictions. PhD Thesis, Universidad Complutense de Madrid, Madrid, España. https://eprints.ucm.es/id/eprint/28016/
Canova F (2005) The transmission of US shocks to Latin America. J Appl Economet 20:229–251
Castillo P, Montoro C, Tuesta V (2009) Dinero, inflación y tasas de interés: Cambia el vínculo cuando cambia el instumento de política monetaria?. Working Paper 2009-001, Banco Central de Reserva del Perú
Castillo P, Salas J (2010) The terms of trade as drivers of economic fluctuations in developing economies: An empirical study. Premio de Banca Central Rodrigo Gómez, Centro de Estudios Monetarios Latinoamericanos
Celeux F, Forbes F, Robert CP, Titterington DM (2006) Deviance information criteria for missing data models. Bayesian Anal 1(4):651–674
Chan JCC, Eisenstat E (2015) Marginal likelihood estimation with the Cross-Entropy method. Economet Rev 34(3):256–285
Chan JCC, Eisenstat E (2018) Bayesian model comparison for time-varying parameter VARs with stochastic volatility. J Appl Economet 33(4):509–532
Chan JCC, Grant A (2016) Fast computation of the deviance information criterion for latent variable models. Comput Stat Data Anal 100:847–859
Chan JCC, Jeliazkov I (2009) Efficient simulation and integrated likelihood estimation in state state models. Int J Math Model Numer Optim 1(1/2):101–120
Chávez PA, Rodríguez G (2023) Time changing effects of external shocks on macroeconomic fluctuations in Peru: Empirical application using Regime-Switching VAR models with Stochastic Volatility. Rev World Econ 159:505–544
Chib S (1995) Marginal likelihood from the Gibbs output. J Am Stat Assoc 90:1313–1321
Chib S, Jeliazkov I (2001) Marginal likelihood from the Metropolis-Hastings output. J Am Stat Assoc 96:270–281
Collier P, Goderis B (2008) Commodity prices, growth, and the natural resource curse: Reconciling a conundrum. MPRA Paper 17315, University Library of Munich. http://dx.doi.org/10.2139/ssrn.1473716
Dancourt O, Mendoza W, Vilcapoma L (1997) Fluctuaciones económicas, shocks externos, Perú 1950–1996. Economía 20(39–40):63–102
Drechsel T, Tenreyro S (2018) Commodity booms and busts in emerging economies. J Int Econ 112:200–218
Farias L, Alves da Silva M (2017) Commodity prices and business cycles in small open economies: The role of news shocks. Universidade Federal de Pernambuco, Manuscript
Fernández A, González A, Rodríguez D (2018) Sharing a ride on the commodities roller coaster: common factors in business cycles of emerging economies. J Int Econ 111:99–121
Fernández A, Schmitt-Grohé S, Uribe M (2017) World shocks, world prices, and business cycles: an empirical investigation. J Int Econ 108:S2–S14
Fernández A, Schmitt-Grohé S, Uribe M (2020) Does the commodity super cycle matter? National Bureau of Economic Research, Working Paper 27589
Fisher I (1933) The Debt-Deflation Theory of Great Depressions. Econometrica 1(4):337–357
Florián D, Aguilar J, Toma H, Velásquez C (2018) Impacto de los cambios anticipados de los términos de intercambio en la enconomía. Revista Moneda 174:21–24
Frühwirth-Schnatter S, Wagner H (2008) Marginal likelihoods for non-Gaussian models using auxiliary mixture sampling. Comput Stat Data Anal 52(10):4608–4624
Gefang D, Strachan R (2009) Nonlinear Impacts of International Business Cycles on the U.K. – A Bayesian Smooth Transition VAR Approach. Studi Nonlinear Dyn Econom 14(1). https://doi.org/10.2202/1558-3708.1677
Gelfand AE, Dey DK (1994) Bayesian model choice: Asymptotics and exact calculations. J R Stat Soc B 56(3):501–514
Guevara B, Rodríguez G, Yamuca Salvatierra L (2023) External shocks and macroeconomic fluctuations in Peru: time-varying effects using a mixture innovation TVP-VAR-SV model. Pontificia Universidad Católica del Perú, Manuscript, Department of Economics
Harberger A (1950) Currency depreciation, income and the balance of trade. J Polit Econ 58:47–60
Hernández G (2013) Terms of trade and output fluctuations in Colombia. CEPAL Rev 110:109–131
Hoffmaister AW, Roldós JE (1997) Are business cycles different in Asia and Latin America?. Working Paper 9, International Monetary Fund. https://doi.org/10.5089/9781451927313.001
Hoffmaister AW, Roldós JE, Wickham P (1998) Macroeconomic fluctuations in Sub-Saharan Africa. IMF Staff Pap 45(1):132–160
Ivanov V, Kilian L (2005) A practitioner’s guide to lag order selection for VAR impulse response analysis. Stud Nonlinear Dyn Econom 9(1):1–36
Jiménez F (2009) La economía peruana frente a la crisis y las restricciones al crecimiento económico. In: Dancourt O, Jiménez F (eds) Crisis internacional. Pontificia Universidad Católica del Perú, Impactos y respuestas de política económica en el Perú, Fondo Editorial
Kamber G, Nodari G, Wong B (2016) The impact of commodity price movements on the New Zealand economy. Reserve Bank of New Zealand Analytical Note Series 2016/05
Kim S, Shephard N, Chib S (1998) Stochastic volatility: Likelihood inferenceand comparison with ARCH models. Rev Econ Stud 65(3):361–393
Kiyotaki N, Moore J (1997) Credit cycles. J Polit Econ 105(2):211–248
Koop G, Korobilis D (2010) Bayesian multivariate time series methods for empirical macroeconomics. Found Trends Econom 3(4):267–358
Korinek A, Mendoza EG (2014) From Sudden Stops to Fisherian Deflation: Quantitative Theory and Policy. Ann Rev Econ 6(1):299–332
Kose MA (2002) Explaining business cycles in small open economies: How much do world prices matter? J Int Econ 56:299–327
Kose MA, Riezman R (2001) Trade shocks and macroeconomic fluctuations in Africa. J Dev Econ 65(1):55–80
Kydland FE, Prescott EC (1982) Time to build and aggregate fluctuations. Econometrica 50(6):1345–1370
Lanteri LN (2008) Choques de precios de materias primas, desempeño fiscal y crecimiento. Una propuesta de VAR estructural para la economía Argentina. Estudios Económicos 23(2):163-202. https://doi.org/10.24201/ee.v23i2.135
Laursen S, Metzler L (1950) Flexible exchange rate and the theory of employment. Rev Econ Stat 32(4):281–299
Llosa LG, Pérez Forero FJ, Tuesta V (2022) Choques de incertidumbre y regímenes financieros en Mercados Emergentes. Working Ppaper 009-2022, Banco Central de Reserva del Perú
Lubik TA, Teo WL (2005) Do world shocks drive domestic business cycles? Some evidence from structural estimation. Working Paper 522, John Hopkins University
Mellander E, Vredin A, Warne A (1992) Stochastic trends and economic fluctuations in a small open economy. J Appl Economet 7(4):369–394
Mendoza EG (1995) The terms of trade, the real exchange rate and economic fluctuations. Int Econ Rev 36(1):101–137
Mendoza W (2013) Contexto intenacional y desempeño macroeconómico en América Latina y el Perú: 1980-2012. Documento de Trabajo 351, Pontificia Universidad Católica del Perú
Mendoza W, Collantes Goicochea E (2017) La economía de PPK. Promesas y resultados: la distancia que los separa. Documento de Trabajo 440, Pontificia Universidad Católica del Perú
Misas M, López E, Vásquez D (2004) Tendencias estocásticas comunes y fluctuaciones en la economía colombiana 1950–2002. Borradores de Economía 275
Obstfeld M (1982) Aggregate spending and the terms of trade: Is there a Laursen-Metzler effect? Q J Econ 97(2):251–270
Ojeda Cunya JA, Rodríguez G (2022) Time-varying effects of external shocks on macroeconomic fluctuations in Peru: Empirical application using TVP-VAR-SV models. Working Paper 507, Departament of Economics, Pontificia Universidad Católica del Perú. http://doi.org/10.18800/2079-8474.0507
Pedersen M (2019) The impact of commodity price shocks in a copper-rich economy, The case of Chile. Empir Econ 57:1291–1318
Portilla J, Rodríguez G, Castillo BP (2022) Evolution of monetary policy in Peru: an empirical application using a mixture innovation TVP-VAR-SV model. CESifo Econ Stud 68(1):98–126
Rodríguez G, Vassallo R, Castillo BP (2023) Effects of external shocks on macroeconomic fluctuations in Pacific Alliance countries. Econ Model 124:106302
Rodríguez G, Villanueva Vega P, Castillo Bardalez P (2018) Driving economic fluctuations in Peru: The role of the terms of trade. Empir Econ 53(3):1089–1119
Schmitt-Grohé S, Uribe M (2018) How important are terms of trade shocks? Int Econ Rev 59(1):85–111
Shousha S (2016) Macroeconomic effects of commodity booms and busts: The role of financial frictions. Columbia University, Manuscript
Sims CA (1980) Macroeconomics and reality. Econometrica 48(1):1–48
Spiegelhalter DJ, Best NG, Carlin BP, Van der Linde A (2002) Bayesian measures of model complexity and fit. J R Stat Soc B 64(4):583–639
Svensson LEO, Razin A (1983) The terms of trade and the current account: The Harberger-Laursen-Metzler effect. J Polit Econ 91(1):97–125
Tiawara HNO (2015) The effect of commodity prices on African economic growth. Culminating Projects in Economics 1, St. Cloud State University
Vega M (2018) El Esquema de metas de Inflación y la Inflación peruana. Revista Moneda 173:4–8
Velarde J, Rodríguez M (2001) Efectos de la crisis financiera internacional en la economía peruana 1997-1998: lecciones e implicancias de política económica. Working Paper 36, Centro de Investigación de la Universidad del Pacífico
Wong B (2017) Historical decompositions for nonlinear vector autoregression models. CAMA Working Paper 62/2017, Centre for Applied Macroeconomic Analysis. http://dx.doi.org/10.2139/ssrn.3057759
Author information
Authors and Affiliations
Corresponding author
Additional information
This paper is drawn from the Master’s Thesis of Junior A. Ojeda Cunya at the Graduate School of the Pontificia Universidad Católica del Perú (PUCP). It is a substantially revised version of Ojeda Cunya and Rodríguez (2022). We thank the useful comments of David Florián (Central Reserve Bank of Peru), the Editor-in-Chief of the Journal, Professor George S. Tavlas and two anonymous Referees, all of whom have contributed to improving the document. Any remaining errors are our responsibility.
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Rodriguez, G., Castillo B., P. & Ojeda Cunya, J.A. Time-Varying Effects of External Shocks on Macroeconomic Fluctuations in Peru: An Empirical Application using TVP-VAR-SV Models. Open Econ Rev (2023). https://doi.org/10.1007/s11079-023-09742-5
Accepted:
Published:
DOI: https://doi.org/10.1007/s11079-023-09742-5
Keywords
- Macroeconomic fluctuations
- External shocks
- Autoregressive vectors with time-varying parameters
- Stochastic volatility
- Bayesian estimation and comparison
- Peruvian economy