scieee AI-readable full text Open interactive document viewer

Trend-cycle decomposition for Peruvian GDP: Application of an alternative method

Guillén, Ángel,Rodríguez, Gabriel

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Guillén, Ángel; Rodríguez, Gabriel Article Trend-cycle decomposition for Peruvian GDP: Application of an alternative method Latin American Economic Review Provided in Cooperation with: Centro de Investigación y Docencia Económica (CIDE), Mexico City Suggested Citation: Guillén, Ángel; Rodríguez, Gabriel (2014) : Trend-cycle decomposition for Peruvian GDP: Application of an alternative method, Latin American Economic Review, ISSN 2196-436X, Springer, Heidelberg, Vol. 23, Iss. 1, pp. 1-44, https://doi.org/10.1007/s40503-014-0005-3 This Version is available at: https://hdl.handle.net/10419/108953 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. http://creativecommons.org/licenses/by/2.0/ Trend-cycle decomposition for Peruvian GDP: application of an alternative method A ´ngel Guille ´n•Gabriel Rodrı ´guez Received: 1 October 2013 / Accepted: 13 November 2013 The Author(s) 2014. This article is published with open access at Springerlink.com Abstract Perron and Wada (J Monet Econ 56:749–765, 2009) propose a new method of decomposition of the GDP in its trend and cycle components, which overcomes the identification problems of models of unobserved components (UC) and ARIMA models and at the same time, admits non-linearities and asymmetries in cycles. The method assumes that output can be represented by a non-linear model of unobserved components, where disturbances consist of a mixture of normal distributions. In this document, we apply thisalgorithm to Peruvian GDP using quarterly data from 1980 until 2011. As a result of this analysis, we choose the UC-CN model, which presents a mixture of normals in the disturbances of the trend and cycle component of output. The obtained trend clearly reflects the structural change undergone in the early 1990s. After a steep decrease of the trend or potential GDP as a result of drastic adjustment measures, output grew in a more stable way in the following years. In the same way, one can observe an increase in the growth rate of potential GDP from 2002 onwards, which coincides with the monetary reforms that took place at the time. Finally, the obtained cycles are consistent with the evolution of the Peruvian economy and of recession periods that have been traditionally identified. A comparison with other methods of decomposition is also provided. This paper is drawn from the Thesis of A ´ngel Guille ´n at the Department of Economics of the Pontificia Universidad Cato ´lica del Peru ´. For an extended version, see Guille ´n and Rodrı ´guez (2013). We thank useful comments of Paul Castillo, Jose ´Tavera, participants of the XXX Meeting of Economists organized by the Central Bank of Reserve of Peru in October 2012 and participants at the DEGIT XVIII, September 26–27, 2013 at Lima, Peru. We also thank Editor Juan Rosello ´n and comments of an anonymous referee. A ´. Guille ´nG. Rodrı ´guez (&) Department of Economics, Pontificia Universidad Cato ´lica del Peru ´, Av. Universitaria 1801, Lima 32, Lima, Peru e-mail: [email protected]u.pe A ´. Guille ´n e-mail: [email protected] 123 Lat Am Econ Rev (2014) 23:5 DOI 10.1007/s40503-014-0005-3 Keywords Trend Cycle Mixture of Normals Asymmetries  Non-linearities Recessions Filters JEL Classification C22 E32 1 Introduction The determination of the economic cycle is an important input in the formulation of macroeconomic policy. As this is not a recent concern, several methods have been proposed to separate the trend and cyclical components of the output. Since the work of Beveridge and Nelson (1981), Nelson and Plosser (1982) and the later works of Watson (1986) and Clark (1987), a long discussion has taken place regarding the best approach to modeling an economy’s cycles. Both in the ARIMA models of the Beveridge and Nelson (1981) type, and of unobserved components (UC, hereafter) as in Watson (1986) and Clark (1987), the assumptions made end up conditioning the results of the decomposition. For example, in the first group, one assumes a negative correlation between the long and short term component, with the result that most of the variance in the output is explained by long term shocks. Whereas in the second group it is assumed that there is no correlation between long and short term components, which leads to the result that the cyclical component is just as important in explaining the fluctuations in the economy. Morley et al. (2003) propose a model of unobserved components that reconciles both positions, depending on the assumed degree of correlation. However, despite this improvement in the specification, the resulting cycles are symmetrical, which bears no relation to the ample evidence in favor of non-linearities and asymmetries in output as shown in Neftci (1984), Friedman (1993) and Diebold et al. (1993). In order to model these non-linearities, models of regime change are used, such as Hamilton (1989) and the ‘‘plucking’’ model of Kim and Nelson (1999a). These models have an advantage with respect to the previous ones, in that they estimate the probability of being in a recession period and capture the asymmetries in output. However, they assume that the transition from one regime to another is characterized by following a Markov process. This can be a very strong assumption when dealing with emerging economies, since they have undergone large structural changes that are unlikely to be repeated. In the case of the Peruvian economy, several authors have tried to model the behavior of GDP by different methods, which can be classified as linear and nonlinear. Among the former, Cabredo and Valdivia (1999) and Seminario (2007) employ statistical filters and aggregate production functions; Miller (2003) uses a structural VAR; and Rodrı ´guez (2010b,c) proposes a multivariate unobserved components model. Regarding the latter, Rodrı ´guez (2010a) applies the Hamilton (1989) model, the STAR of Tera ¨svirta (1994) and the ‘‘plucking’’ model of Kim and Nelson (1999a). The applied linear models do not contemplate asymmetries in the behavior of GDP, and thus the generated cycles overestimate or underestimate the output gap, 5Page 2 of 44 Lat Am Econ Rev (2014) 23:5 123 especially in the periods before 1990, when Peruvian GDP growth was very irregular. On the other hand, the estimation of Rodrı ´guez (2010a), despite of taking into account non-linearities in output, does not identify correctly the recession periods after 1990. One plausible explanation for this is that the application of the Hamilton (1989) model, or in general the use of a Markov process, are not very useful for Peruvian GDP, which underwent important structural changes in the early 1990s. Perron and Wada (2009) propose a new method of GDP decomposition in trend and cycle, which overcomes the identification problems of UC and ARIMA models, while simultaneously admitting non-linearities and asymmetries in cycles. It is assumed that the data-generating process of output can be represented by a nonlinear model of unobserved components, where shocks are composed by a mixture of normal distributions. This specification admits structural changes that can be reflected in sudden changes in the trend of output. For example, changes in the level that could be caused by large scale shocks but low probability of occurrence, whereas most of the time the dynamic of the trend is led by shocks of lesser magnitude. The assumption behind this behavior is the existence of regimes of high and low variance, each of them with a normal distribution and associated with a likelihood of occurrence. On the other hand, in contrast to the Hamilton (1989) model, the transitions between regimes are not determined by a Markov process, and hence the process of decomposition is well adapted to the structural changes that output may be subject to. In view of these advantages, it is convenient to apply the method of Perron and Wada (2009) for the decomposition of Peruvian GDP between trend and cycle. First, we attempt to capture the effect of non-linearities and asymmetries in output as documented by Rodrı ´guez (2010a). And second, to capture the structural change effect that took place in the early 1990s when important structural reforms were enacted. According to evidence reported by Castillo et al. (2007), these reforms ushered in a phase of more stable growth of the economy. It is important to highlight the fact that previous estimations have not been able to associate that structural break with a behavior in the trend or the cycles of output. The applied method features great flexibility and allows the modeling of structural breaks in output trend, which reflects potential output; or in the slope, which measures the long term growth rate. Furthermore, it allows asymmetrical behaviors in the output cycles. For this reason, we set out seven models with each of the possible specifications. This exercise assumes the risk of generating cycles that are sensitive to the type of specification. For example, if it is assumed that there are high and low variance regimes related only to the output trend, one obtains a predominance of long term shocks on output variations; instead, if one admits also regimes with high and low volatility in the cyclical component, both long term and short term shocks are relevant. For this reason, a model validation process is carried out by an assessment of residuals, and also a model selection process by using information criteria and a likelihood ratio test following the specification by Davies (1987). Lat Am Econ Rev (2014) 23:5 Page 3 of 44 5 123 From this analysis, we opt for the UC-NC model 1 , which presents a mixture of normals in the disturbances of the trend and cyclical components of output. The thusly obtained trend clearly reflects the structural change that took place in the early 1990s. After a sharp decrease in the trend or potential GDP, a result of the severe adjustment measures that were carried out, GDP grew in a more stable fashion in the following years. In a similar way, an increase in the potential GDP growth rate can be observed from 2002 onwards, which coincides with the enactment of monetary reforms. Finally, the obtained cycles are congruent with the evolution of the Peruvian economy and with the recession periods that have been traditionally considered. The remainder of this document is structured as follows. Section 2contains a review of the literature and the rationale behind the chosen method, Sect. 3 describes the applied methodology and presents a brief analysis of the data, Sect. 4 contains the results and Sect. 5presents the conclusions. 2 Literature review A first approximation in cycle analysis was given by Burns and Mitchell (1946), who compiled the first timeline of business cycles for the United States. The cycle was defined as the expansion of several economic activities, followed by a recession and then a period of recovery. Several macroeconomic indicators were used and the simultaneous switch of signs was analyzed. A cycle was established for each indicator and an index was built for the whole economy’s cycles. Subsequently, NBER 2 applied this methodology for the classification of cycles. The main disadvantage of this classification is the lack of measurement of the economic cycle and the delays in the identification of the recessionary cycles in a rapidly growing economy. Regarding the first point, Fellner (1956) estimates the business cycle as the residual between a series and its trend, where the trend is deterministic and is modeled as a polynomial that depends on time. As to the second point, Zarnowitz and Boschan (1977) provide a new approach, identifying ‘‘growth cycles’’ that have a lead with respect to the NBER chronology. Beveridge and Nelson (1981) reject the imposition of a deterministic trend as the trend component of a series. They suggest that the trend component follows a stochastic process that may not necessarily be stationary. By means of a stationary ARIMA model in first differences, they estimate the trend component, while the cyclical component is estimated by residual. This procedure is applied to all macroeconomic indicators used by NBER for the classification of cycles. Each of the series is modeled as an ARIMA(p,1,q) process, using the Box and Jenkins (1976) method for the identification of the parameters. Finally, a composite index is assembled by weighting the obtained cycles and then compare the results with the 1 UC-CN means unobserved components model with mixtures of normals in the disturbances of the cycle (C) of output, and of the trend level (N). 2 The National Bureau of Economics Research is the institution in charge of establishing the duration of economic cycles in the United States. 5Page 4 of 44 Lat Am Econ Rev (2014) 23:5 123 NBER chronology and that by Zarnowitz and Boschan (1977). Their results show a lead in the cycle periods and the same duration in the expansions and recessions. This is a contrast to NBER, which marks longer expansionary cycles and shorter recession periods. Nelson and Plosser (1982) maintain the idea that output is led by a stochastic trend, and they analyze the principal yearly macroeconomic series of the United States from 1909 to 1970. They apply a unit root test (Dickey and Fuller 1979; Said and Dickey 1984), and conclude that the majority of the series, including GDP, do not reject the hypothesis of unit root. That is, the series are not stationary around a trend. Hence, the permanent or trend component follows a random walk, whereas the cyclical component follows a stationary behavior. In order to identify these components, they suggest a model of unobserved components, estimating the cycle through a signal extraction method (Friedman 1957; Muth 1960). Their results indicate that the real perturbations that affect the permanent component of output are the main sources of economic fluctuations. This idea was reinforced by Campbell and Mankiw (1987), who find persistence in the long term shocks on US GNP; according to these authors, an innovation of 1 % on real GNP is associated with an increase of more than 1 % in the long-term trend, and from that a negative correlation between the trend and cyclical components is drawn. One feature of the decomposition by ARIMA models is that the identification of the trend and the cycle is only possible if a negative correlation between real innovations and the transitory cycle is assumed. Another form of decomposition involves the use of unobserved component models (UC), where identification implies a null correlation between the innovations of the cyclical and the trend components. From this perspective, Watson (1986) studies the annual series of GNP, available income and the consumption of non-durable goods in the United States from 1950 to 1985. GNP is modeled as an ARIMA(0, 1, 1), income as an ARIMA(0, 1, 4) and consumption as an ARIMA(0, 1, 0). Similarly, each series is modeled in non-observed components, where the trend is a random walk with drift, the cycle is an AR(p=q?1) stationary process, and the perturbations between both components are not correlated. Watson (1986) finds that in the unobserved components model, innovations have a lower impact on output fluctuations. However, this model is not significantly better than the ARIMA model. From this, he concludes that the sole specification of the model has consequences in the determination of cycles and hence, in economic policy decisions. In a similar way, Clark (1987) applies a model of unobserved components with quarterly information for GDP and the industrial production of the United States from 1947 to 1985. He retains the assumption of non-correlation between errors, but modifies the behavior of the trend, whose slope is now assumed to follow a random walk. At the same time, the cyclical component follows an AR (2) process for both series. From this specification, he concludes that the fluctuations in output depend almost in 50% of innovations in the cyclical component. An alternative in the area of unobserved components is given by Kitagawa (1987). His model includes the presence of disturbances that do not follow a Gaussian distribution. According to the author, this allows one to deal with problems of outliers or non-linearity in the trend component. However, the Lat Am Econ Rev (2014) 23:5 Page 5 of 44 5 123 component filter and the smoothing require large amounts of computational resources. Stock and Watson (1988) summarize the main findings in the decomposition of output on the basis of ARIMA models or unobserved components. A distinct difference between both models is the importance of real innovations in the former and to a lesser degree in the latter. They argue that this is due to the presence of a stochastic trend and the hereby derived specification. On the one hand, the perfect correlation in ARIMA models is originated because in them, both the trend and the cyclical component are subject to only one type of shock. In this case, the correlation tends to be negative and allows one to define the cycle as an adjustment process in economic growth caused by a real shock, although the opposite is difficult to justify. Whereas, the null correlation between the cycle and trend lead to a higher relevance of the cyclical component. In both cases, identification defines in a certain way the preponderance of the one or the other types of shocks; however, there remain obstacles in the identification of the real source of the shock. On the other hand, the authors conclude that the assumption of the existence of a stochastic trend in the main macroeconomic series is valid and resembles the behavior of the United States data. Additionally, they conclude that in general, the permanent component has a higher impact on the economic fluctuations of that country. In contrast, Cochrane (1988) puts in discussion the presence of a unit root in the GNP series of the United States. He concludes that in any case, its presence is minor and thus the shocks on the trend component are less important. On the other hand, Perron (1989) rejects the existence of a unit root for several of the series, including GNP, previously analyzed by Nelson and Plosser (1982). He posits as alternative hypothesis that the data generating process is stationary with a broken trend. The novelty in his proposal is the inclusion of two exogenous shocks that have a permanent effect on output. The first, due to the 1929 crisis, prompts a change in the trend level of GNP; the second, due to the oil crisis of 1973, brings about a change in the slope of the trend, which can be interpreted as the growth rate of potential GNP. The author concludes that the economic fluctuations are stationary around a broken deterministic trend. In consequence, changes in transitory behavior have a higher weight on business cycles. The multivariate model of Blanchard and Quah (1989) presents a variant to the ARIMA and unobserved components models. They suggest a structural VAR model for quarterly output and unemployment in the United States from 1950 to 1987. They solve the identification problem of univariate models by assuming that shocks of unemployment or demand do not have a permanent impact on output. On that basis, the authors find that demand shocks are relevant in the short and medium term, whereas supply shocks have a permanent impact on output and accumulate over time. Another multivariate model is proposed by King et al. (1991), who posit the existence of a common stochastic trend for output, consumption and investment. By means of a cointegration analysis, they manage to eliminate that trend and to estimate the cyclical component of output. The authors find that more than 60 % of real fluctuations is due to productivity shocks, although this share decreases to less than half if nominal variables are included. Hence, output fluctuations cannot be explained exclusively by real shocks. 5Page 6 of 44 Lat Am Econ Rev (2014) 23:5 123 An important feature of the previously described models is that they assume linearity in the series and symmetry in the disturbances. However, the empirical evidence shows that negative shocks have a short duration and have a more profound impact on the output level. Friedman (1964) called this empirical peculiarity the ‘‘plucking’’ effect. The length of a recession is correlated to the length of the subsequent expansion, but not the opposite; that is, there is an asymmetry between positive and negative shocks. Besides, the drop of output varies in intensity, but always returns to the potential level. Friedman (1993) analyzes the output of the United States from 1975 to 1990 and finds evidence in favor of the ‘‘plucking’’ effect. In a similar way, Neftci (1984) finds that in unemployment cycles in the United States, the transition from a recession to an expansion takes place without drastic changes; that is, there are asymmetries in the unemployment cycles. This effect is known in the business cycle literature as ‘‘duration dependence’’. A positive dependence on duration would indicate that expansions or recessions are more likely to end when they mature over time. Sichel (1991), Diebold and Rudebusch (1990), and Diebold et al. (1993) find evidence in favor of duration dependence in the GNP series of the United States, Great Britain and France. However, in all cases the dependence is asymmetrical, that is, it occurs only in recessions or in expansions. Sichel (1993) finds asymmetry in the depth of the unemployment cycle, industrial production and United States’ GNP. That is, during recessions, output drops below trend more than it rises during expansions. Taking into consideration the evidence of non-linearity of the series, Hamilton (1989) proposes a non-linear model with regime changes. In that model there are two regimes, one of positive output growth and one of negative growth. According to the author, the output in differences depends not only on its lags, but there is also a discrete change in the mean that generates a transition between positive and negative growth regimes. The change in the mean is caused by an unobserved exogenous variable that follows a first-order Markov process. One of the advantages of the model is the estimation of regime changes from data in the series. Additionally, it is possible to estimate the probabilities of being in a given regime, for example, a recession. Hamilton (1989) employs an AR (4) specification in order to model the quarterly growth rate of US GNP from 1950 to 1985. He finds a recurrence in the regime changes. The transition from expansion to recession is associated with a drop of 3 % of real output and a similar drop in the permanent component; that is, permanent shocks dominate output fluctuations. Later, Krolzig (1997) carries out a characterization of the different variables of the Markovswitching model, with changes in the mean, variance and/or intercept. Additionally, he generalizes Hamilton’s proposal to a multivariate analysis. Whereas, Goodwin (1993) applies the Hamilton model to 8 countries of OECD without finding significant gains in comparison to other linear models, although the symmetry hypothesis is rejected for the majority of the countries. Other alternative proposals of non-linear models are the ‘‘Exponential Autoregressive’’ model (EAR) of Haggan and Ozaki (1981), the ‘‘Threshold Autoregressive’’ model (TAR) of Tsay (1989) and the ‘‘Smooth Transition Autoregressive’’ model (STAR) of Tera ¨svirta (1994), which can be considered to contain the previous two. Lat Am Econ Rev (2014) 23:5 Page 7 of 44 5 123 This latter model considers the existence of two regimes and the change between them follows a transition function that can be modeled with a logistic or exponential distribution. This function depends on an observable transition variable and is increasing when approaching or surpassing a given threshold. From this starting point, a smoothed transition between regimes is generated. It is important to note that a previous step to the application of the model is to reject the non-linearity of the series, the alternative hypothesis being the logistic or exponential STAR model. Following these criteria, Tera ¨svirta and Anderson (1992) estimate the STAR model for the quarterly production index or 13 OECD economies. They find that the model is adequate in describing the non-linearities and asymmetries of the series. In the area of multivariate models, Kuttner (1994) exploits the theoretical relation between output and inflation through the Phillips curve. He proposes a bivariate decomposition of unobserved components. Output is decomposed in trend and cycle in a similar way as in the Clark (1987) model, whereas inflation depends on past inflation and the deviation of output from its potential level. One of the advantages of this method resides in the possibility of incorporating in a simple way the theoretical relations between output and other economic variables. In his analysis, Kuttner (1994) finds that the coefficient that measures the sensitivity between the output gap and inflation is significant; that is, the Phillips curve is relevant in the analysis of both series. Besides, the permanent shocks have larger impacts on output, in comparison to a univariate model. Taking into consideration the evidence of asymmetry in cycles, Kim and Nelson (1999a) specify a model of unobserved components denominated ‘‘plucking’’. In this model, the cyclical component follows an AR (2) process, with disturbances composed by a mix of two types of shocks: symmetrical and asymmetrical. The existence of the latter depends on the probability of occurrence of a recession; that is, in normal times only the symmetrical shock remains. The trend component is modeled as a random walk that suffers two types of disturbances: one on the level and another that affects the trend rate of growth. The authors follow Friedman (1993) in specifying the output trend as a ‘‘ceiling’’ trend; according to this, output reaches a maximum level in normal times and deviates below trend during recessions. The model is applied to quarterly GNP series and the unemployment rate in the United States for the 1951:1995 period, generating negative cycles during the recession periods. In consequence, in normal times output is driven by permanent shocks; real business cycle models are thus ideal in explaining the behavior of output. However, in times of recession the transitory shocks predominate, and monetary and other demand-oriented models are pertinent. A later application of the ‘‘plucking’’ model is carried out by Mills and Wang (2002) for the G7 countries. There are additionally other methods of decomposition in trend and cycle using statistical filters. One of the most commonly used is the filter proposed by Hodrick and Prescott (1997), where the trend is extracted through a least squares criterion. It is assumed that there is symmetry in the cycles and that the trend follows a smoothed behavior. This filter can be catalogued as ‘‘high-pass’’, for it eliminates the low-frequency cycles. Other methods are those proposed by Baxter and King (1990) and by Christiano and Fitzgerald (2003), which are filters of the type ‘‘band- 5Page 8 of 44 Lat Am Econ Rev (2014) 23:5 123 the high variance regime r i2 2 . The estimation method starts from the following statespace representation: yt¼Hxtþxt xt¼Fxt1þGut;ð6Þ where H0¼ 1 1 0 0 2 6 6 43 7 7 5;xt¼ st ct ct1 bt 2 6 6 43 7 7 5;F¼ 10 01 0/1/20 01 00 00 01 2 6 6 43 7 7 5;G¼I;ut¼ gt t 0 tt 2 6 6 43 7 7 5ð7Þ In contrast to conventional models, the disturbance vector u t does not follow a normal distribution. However, it is feasible to assign a normal distribution with possible states to the state-space representation. The variance and covariance matrix of u t takes Mpossible states that are generated as a result of the combination of values taken by the Bernoulli random variables. For example, in a model with a mixture of normals there are only two possible states that are associated with periods of low and high variance, whereas in a model with two mixtures of normals, four possible states will exist associated with combinations of high and low variance for each disturbance. In consequence, there are 2 m possible states, where mis the number of disturbances with mixtures of normals. The Qvariance and covariance matrix for a model with only one mixture of normals such as UC-C 7 is given by: Q¼ r2 g000 0r2 100 0000 000r2 t 2 6 6 43 7 7 5 r2 g000 0r2 200 0000 000r2 t 2 6 6 43 7 7 5 8 > > < > > : 9 > > = > > ; ; where each state or regime occurs with probabilities a 1 and ð1a1Þ. The Qmatrix for a model with two mixtures of variables like UC-CN would be: Q¼ r2 g1000 0r2 100 0000 000r2 t 2 6 6 43 7 7 5 r2 g2000 0r2 100 0000 000r2 t 2 6 6 43 7 7 5 r2 g1000 0r2 200 0000 000r2 t 2 6 6 43 7 7 5 r2 g2000 0r2 200 0000 000r2 t 2 6 6 43 7 7 5 8 > > < > > : 9 > > = > > ; ; where each state occurs with probabilities a1a2;a11a2 ðÞ;1a1 ðÞa2, and ð1 a1Þð1a2Þrespectively. Finally, the Qvariance and covariance matrix for a model with 3 mixtures of normals would be defined as: 7 The representation can be generalized for the other cases. Lat Am Econ Rev (2014) 23:5 Page 15 of 44 5 123 Q¼ r2 g1000 0r2 100 0000 000r2 t1 2 6 6 6 6 4 3 7 7 7 7 5 r2 g1000 0r2 100 0000 000r2 t2 2 6 6 6 6 4 3 7 7 7 7 5 r2 g2000 0r2 100 0000 000r2 t1 2 6 6 6 6 4 3 7 7 7 7 5 r2 g2000 0r2 100 0000 000r2 t2 2 6 6 6 6 4 3 7 7 7 7 5 r2 g1000 0r2 200 0000 000r2 t1 2 6 6 6 6 4 3 7 7 7 7 5 r2 g1000 0r2 200 0000 000r2 t2 2 6 6 6 6 4 3 7 7 7 7 5 r2 g2000 0r2 200 0000 000r2 t1 2 6 6 6 6 4 3 7 7 7 7 5 r2 g2000 0r2 200 0000 000r2 t2 2 6 6 6 6 4 3 7 7 7 7 5 8 > > > > > > > > > > > > > > < > > > > > > > > > > > > > > : 9 > > > > > > > > > > > > > > = > > > > > > > > > > > > > > ; ; where each state occurs with probabilities a1a2a3;a1a2ð1a3Þ;a1ð1a2Þa3;a1ð1 a2Þð1a3Þ;ð1a1Þa2a3;ð1a1Þa2ð1a3Þ;ð1a1Þð1a2Þa3and ð1a1Þð1 a2Þð1a3Þrespectively. The estimation process starts with the application of the Kalman filter, which follows the same principles as the state-space model with normal disturbances laid out by Harvey (1989). Afterwards, the Hamilton filter is added according to the approach of Kim and Nelson (1999b). The Kalman filter considers the estimation of the expected value of the x t vector, conditional to the information available until period t. This new vector x t|t is called filtered estimator. In a second stage, we built an estimator conditional to all information available in the sample, vector x t|T , which is called smoothed estimator and is obtained after utilizing a smoothing algorithm. This last vector is relevant for the study, for the aim is to carry out an inference of the nonobservable components ðst;ctÞfrom the basis of all information available. The steps of that estimation are described as follows. Step 1: Kalman Filter We look for the best estimator of the state vector and its variance and covariance matrix. To this end, we know that in a model with normal disturbances, the best linear estimator of the state vector is the linear minimum mean square error estimator (MMSE), x t|t-1 , which is forecast on the basis of all information available up to the period t-1. For its part, P t|t-1 is the mean square error (MSE) or the variance of the forecast error of x t|t-1 . Formally: xtjt1¼E½xtjYt1;ð8Þ Ptjt1¼E½ðxtxtjt1Þðxtxtjt1Þ0jYt1:ð9Þ However, there are high and low variance regimes that are represented in the different states taken by the Qvariance and covariance matrix. Hence, if we denominate S t as the variable that indicates the regime (low or high volatility) in which the state vector is located in time t, we obtain: xij tjt1¼E½xtjYt1;St1¼i;St¼ji;j¼1;...;Mð10Þ Pij tjt1¼Eðxtxtjt1Þðxtxtjt1Þ0jYt1;St1¼i;St¼j  ;ð11Þ where the superindices (ij) show that the value of the variable is conditional to the fact of being in state iin the period t-1 and in state jin the period t, and Mis the 5Page 16 of 44 Lat Am Econ Rev (2014) 23:5 123 number of possible states. This representation is similar to the Markov Switching model by Hamilton (1989). The fundamental difference is that the probability of being in the regime S t does not depend on the past probability of being in the regime S t-1 , which only affects the state variables. In a simple example, one could assert that if in t-1 the probability of being in a high volatility period was very low, this does not imply that in tthe volatile period takes place. Conditional to S t-1 =iand S t =j, the following algorithm of the Kalman filter is obtained: xij tjt1¼Fxi t1jt1;ð12Þ Pij tjt1¼FPi t1jt1F0þGQjG0;ð13Þ vij tjt1¼ytHxij tjt1;ð14Þ fij tjt1¼HPij tjt1H0þR;ð15Þ xij tjt¼xij tjt1þPij tjt1H0fij tjt1 hi 1vij tjt1;ð16Þ Pij tjt¼IPij tjt1H0fij tjt1 hi 1H  Pij tjt1;ð17Þ where x t-1|t-1 i is the value that x t-1 is inferred to take on the basis of information available up to t-1 and conditional to being in the state S t-1 =i;x t|t-1 ij is the inference of x t until t-1 given S t-1 =iand S t =j. On the other hand, P t|t-1 ij is the mean square error of x t|t-1 ij conditional to S t-1 =iand S t =j,v t|t-1 ij is the forecast error of y t based on the information available until t-1 and conditional to S t-1 =iand S t =j;f t|t-1 ij is the conditional variance of the forecast error v t|t-1 ij . Finally, x t|t ij and P t|t ij are the values that the variables are inferred to take after the updating process of the Kalman filter takes place. Step 2: Hamilton Filter We aim to infer the probability associated with the state vector estimator and its variance and covariance matrix. At the start of the iteration process, for the period t, given S t-1 =iand S t =jand taking into consideration that both variables are independent 8 , we can calculate the joint probabilities of being in a given regime S t and to originate from another S t-1 regime, conditional to the past realizations Y t-1 in the following way: PrðSt1¼i;St¼jjYt1Þ¼PrðSt¼jjSt1¼iÞPrðSt1¼ijYt1Þ; PrðSt1¼i;St¼jjYt1Þ¼PrðSt¼jÞPrðSt1¼ijYt1Þ:ð18Þ Besides, we have the joint density function of y t ,S t-1 and S t : pðyt;St1¼i;St¼jjYt1Þ¼pðytjSt1¼i;St¼j;Yt1ÞPrðSt1¼i;St¼jjYt1Þ; ð19Þ where the marginal density function of y t is given by: 8 In contrast with the model of Hamilton (1989), where PrðSt1¼i;St¼jÞis the probability of transition. Lat Am Econ Rev (2014) 23:5 Page 17 of 44 5 123 pðytjYt1Þ¼X M j¼1X M i¼1 pðytjSt1;St;Yt1ÞPrðSt1¼i;St¼jjYt1Þ;ð20Þ and the conditional density function pðytjSt1;St;Yt1Þis calculated on the basis of the forecast error and its variance, which are obtained from the equations of the Kalman filter: pðytjSt1;St;Yt1Þ¼ 1 ffiffiffiffiffiffi 2p pfij tjt1 1=2exp  vij0 tjt1fij tjt1  1vij tjt1 2 8 > < > :9 > = > ;:ð21Þ When Y t is observed in period t, it is possible to update the probability PrðSt1¼ i;St¼jjYt1Þas follows: PrðSt¼jÞPrðSt1¼ijYtÞ¼PrðSt1¼i;St¼jjyt;Yt1Þ¼pðyt;St;St1jYt1Þ pðytjYt1Þ; PrðSt1¼i;St¼jjYtÞ¼pðytjSt;St1;Yt1ÞPrðSt1¼i;St¼jjYt1Þ pðytjYt1Þ; ð22Þ and to obtain the probability associated with each regime S t conditional to the information available until period t: PrðSt¼j;YtÞ¼X M i¼1 PrðSt1¼i;St¼jjYtÞ:ð23Þ Finally, being YT¼ðy1;y2;...;ytÞthe vector of data available in period t, the likelihood function is maximized: ln½pðYTÞ ¼ ln X T t¼1 pðytjYt1Þ "# :ð24Þ Step 3: Collapsing There is a dimensionality problem if one aims to estimate the previously described algorithm, since it requires the estimation of 4 t estimators and their respective mean squared errors. In order to render the Kalman filter operable, a process of ‘‘collapsing’’ is employed, which re-approximates the estimators x t|t ij and P t|t ij in each period tto x t|t j and P t|t j . Following Wada and Perron (2006), we adopt the method of Harrison and Stevens (1976), where: xj tjt¼PM i¼1PrðSt1¼i;St¼jjYtÞxij tjt PrðSt¼jjYtÞ;ð25Þ Pj tjt¼PM i¼1PrðSt1¼i;St¼jjYtÞPij tjtþxi tjtxij tjt  xi tjtxij tjt  0 no PrðSt¼jjYtÞ:ð26Þ The first equation indicates that in each period Mvectors of state x t|t ij are generated, and each of them is weighted by the probabilities of coming from a given regime 5Page 18 of 44 Lat Am Econ Rev (2014) 23:5 123 S t-1 and of being in another regime S t . One proceeds in similar fashion for the Mvariances P t|t ij that are generated in each period. Since the state variable is conditional only to being in the regime S t =j, the estimator filtered in each period tis obtained as follows: xtjt¼X M j¼1 PrðSt¼jjYtÞxj tjt:ð27Þ The collapsing allows one to reduce the possible states that the variables can take. For example, if one starts in t=1 there are jpossible states, in t=2 each of them generates jadditional possible states, and so on; in time, the dimension of states grows. With the proposed method, in each period tthere will only be jpossible states that are of interest for the analysis of cycles; that is, those linked to periods of high and low variance. 3.2 Initial values The recursive method of the Kalman filter requires initial values for the state vector x 0|0 and for the variance of the forecast error P 0|0 . These values are chosen after the proposal of Wada and Perron (2006). For example, in the case of the state vector, we have: x0j0¼s0;0;0;b0 ½ 0; where the initial trend value, s 0 , is the first observation of GDP. The initial value of the slope, b 0 , corresponds to the simple average of the growth rate of the first four quarters. 9 Whereas, the initial values of the cycles, c t and c t-1 , are their steady state values. On the other hand, the initial values of the variance of the forecast error are given by: P0j0¼ 1eþ08 0 0 0P0 001eþ08 2 43 5; where the submatrix Pis obtained from vecðPÞ¼ I2F1F1 ½ 1vecðQ1Þ;with F1¼/1/2 10  Q1¼r2 10 0r2 2  Submatrix Prepresents the inconditional variance of the cyclical component and is estimated assuming the stationarity of that component. Since the trend and its slope are not stationary, it is not possible to estimate their variances in the same way. One alternative is to follow the proposal of Harvey and Phillips (1979), which considers extremely large numbers, with which the variance and covariance matrix approaches its exact value after several iterations. It is important to highlight that the state variables (trend and cycle) are not sensitive to these specifications. 9 Wada and Perron (2006) take as initial value of the slope the first rate of growth of the series. However, the growth of Peruvian GDP during the first periods is very irregular. Thus, we take an average. Lat Am Econ Rev (2014) 23:5 Page 19 of 44 5 123 3.3 Restrictions and initial conditions The proposed model, and in general the models with mixture of gaussian errors, present a parameter identification problem. The likelihood function remains constant given a permutation of their individual components, and the estimation parameters cannot be obtained. This problem is known as ‘‘label switching’’ and is analyzed by Hamilton et al. (2004). In the specific case of p(y t |Y t-1 ) we obtain that: py tjst1;st;Yt1 ðÞPr st1¼i;st¼jjYt1 ðÞ þpy tjst1;st;Yt1 ðÞPr st1¼i;st¼jjYt1 ðÞ ¼py tjst1;st;Yt1 ðÞPr st1¼i;st¼jjYt1 ðÞ þpy tjst1;st;Yt1 ðÞPr st1¼i;st¼jjYt1 ðÞ: ð28Þ In consequence, it is not possible to identify the states iand iwithout carrying out a normalization. Wada and Perron (2006) impose restrictions in the parameters of the distributions with mixture of normals. And the restrictions vary for each of the G7 countries under analysis. For example, in the case of the United States, they assign a minimum probability a2¼0:9ðÞto the fact that the slope disturbances are in the low variance regime and that the maximum value of such variance is r2 t1¼0:01. We consider that for the Peruvian case, such values are very restrictive. We only impose as a restriction that the variances associated with the high volatility regime be higher than those associated with the low volatility regime, whereas the probability of being in the low volatility regime be at least 0.5. More than a restriction, this represents a normalization of the parameters that does not affect the decomposition into trend and cycle. 3.4 Smoothing The estimation process is completed with the inference on the state vector x t and on the probabilities associated with each regime s t , taking into consideration all available information. That is, we aim to estimate Pr st¼jjYT ½yxtjT1;2;...;TðÞ.To this end, the smoothing algorithm developed by Kim and Nelson (1999b)is employed. The main steps are described as follows. The first step in the smoothing process is to backwards estimate the state vector and its variance for each period t=T-1, T-2,…, 1 on the basis of estimated values in the filtering process, according to the following algorithm: xjk tjT¼xj tjtþe Pjk txk tþ1jTxjk tþ1jt  ;ð29Þ Pjk tjT¼Pj tjtþe Pjk tPk tþ1jTPjk tþ1jt  e Pjk0 t;ð30Þ where e Pjk t¼Pj tjtF0Pjk tþ1jT hi 1, whereas x t|T jk and P t|T jk are the values taken by the state variables and their mean squared error, conditional to the availability of all information and that S t =jand S t-1 =k. 5Page 20 of 44 Lat Am Econ Rev (2014) 23:5 123 In the second step, the probabilities associated with each regime are estimated. Here, the following derivation of the joint probability of S t =jand S t?1 =kis made, conditional to the availability of all information: PrðSt¼j;Stþ1¼kjYTÞ¼Pr Stþ1¼kjYT ðÞPrðSt¼jjStþ1¼k;YTÞ Pr Stþ1¼kjYT ðÞPrðSt¼jjStþ1¼k;YtÞ ¼Pr Stþ1¼kjYT ðÞPrðSt¼j;Stþ1¼kjYtÞ Pr Stþ1¼kjYt ðÞ ;ð31Þ and PrðSt¼j;YTÞ¼X M k¼1 PrðSt¼j;Stþ1¼kjYTÞ:ð32Þ Since each state variable depends on its regime, M9Mestimators of x t|T jk and of P t|T jk are generated, so that a collapsing process similar to the one previously described is undertaken, where: xj tjT¼PM k¼1Pr St¼j;Stþ1¼kjYT ðÞxij tjT PrðSt¼jjYTÞ;ð33Þ Pj tjT¼PM k¼1Pr St¼j;Stþ1¼kjYT ðÞPjk tjTþxj tjTxik tjT  xj tjTxik tjT  0 no PrðSt¼jjYtÞ:ð34Þ Finally, the smoothed state vector x t|T is built as the weighted average of the Mvectors x t|T j , given their respective probabilities: xtjT¼X M j¼1 Pr St¼jjYT ðÞxj tjT:ð35Þ 3.5 Computation The program of the model is available to the public 10 and has been built using GAUSS, taking as a basis the code written by Chang-Jin Kim in Kim and Nelson (1999b). We made variations in order to estimate all the models under consideration. In order to maximize the possibility of obtaining a global maximum in the likelihood function, we reestimated each model 900 times with different initial values which originate, in equal number, from the normal distributions Nð0;1Þ;Nð0;2Þand Nð0;3Þ. In each case, a convergence criterion 1e- 05 from the command optmum of Gauss has been used to optimize the likelihood function. 10 http://people.bu.edu/perron. Lat Am Econ Rev (2014) 23:5 Page 21 of 44 5 123 3.6 The data The data utilized correspond to the seasonally adjusted quarterly series 11 of the logarithm of GDP from 1980 to 2011, which is shown in Fig. 1. The source of information is the Peruvian Reserve and Central Bank. In terms of motivation about the presence of structural changes, Fig. 1shows the possibility that the GDP may be approximated by a fitted trend with a broken intercept and a broken trend. Peruvian GDP shows a very irregular behavior, as expected from a developing country. First, there are clear differences in the periods before and after 1990; and second, within each subperiod, the behavior of output has also been irregular, albeit less so. In the early 1990s a process of significant economic adjustment took place, and at the same time a number of institutional reforms were enacted that drastically changed the dynamic of output. In the subperiod from 1980 to 1990, the average growth rate of GDP was approximately 0 % yearly. Large recessions occurred with an unusually high frequency and output was very volatile. In contrast, in later periods the average growth rate of GDP was more than 4 % yearly, recessions were less frequent and had a lower magnitude, and output followed a more stable path. Within each subperiod the behavior has also been irregular, as a result of recessions with varying origins and impact. For example, the 1983 recession, which was related to the ‘‘El Nin ˜o’’ phenomenon and a balance of payments crisis, produced a large contraction in output that did not recover until 1985. For their part, the big recessions of 1988–1989 and 1990, associated with periods of hyperinflation and internal conflict, produced contractions in output that were not overcome until Fig. 1 Peruvian GDP and fitted broken trend 11 The UC model employed can admit the series with the seasonal component; however, we choose not to include that component in order to facilitate the estimation. Besides, the main concern is to identify the non-linearities in the trend and the asymmetry in the cycles. 5Page 22 of 44 Lat Am Econ Rev (2014) 23:5 123 1995. From then on, the recessionary periods had a lower impact, although they did not share the same nature or consequences. For example, the recession of 1998 was linked to a banking crisis that had a negative influence on the long term growth rate; the 2000 recession corresponded to a period of political instability; and the 2009 recession, associated with the international financial and economic crisis, brought about a sharp contraction in output but it was rapidly overcome. A more detailed explanation of each of these recessions is provided in Dancourt et al. (1997) and Dancourt and Mendoza (2009). Finally, but equally important, one has to take into consideration the monetary and fiscal reforms that were implemented in the 2001–2002 period, which led to an acceleration in the rate of growth of output. In terms of econometrics, a rigorous analysis of the series would involve a test of stationarity; that is, to find out whether the series has a stochastic trend. The advantage of utilizing disturbances with a mixture of normals lies in the fact that they allow one to model both a stochastic and a deterministic trend. For example, if the probability of being in the high variance regime is very small and the other regime has a variance close to zero, a deterministic trend is generated, with shocks that produce a change in the level or slope. Even so, a unit root test would be useful in the identification, for in the analyzed models we consider that output has a double root. Using an ADF GLS test as in Elliott et al. (1996), we observe that the null hypothesis that the series is an Ið2Þprocess is rejected at 5 % but not at 1 %. 12 Although this result favors a single root in output, we retain the flexible specification of (1)to(5) as it is more general and does not generate an overidentification of the models, as is explained in the next section (see, in particular, Sect. 4.4). 4 Results Before starting 13 the analysis of the different models that are considered in the methodology, it is convenient to estimate a base model, UC-0, that does not include any mixture of normals, and follows the specification of Clark (1987). The obtained cycles capture the big recessions of 1988–1989 and 1990 well, but henceforward the cycle presents a positive bias; for example during the recessions of 1998 and 2009 output is above its potential or trend level. On the other hand, the cycles are long and have a large amplitude 14 , reaching a maximum deviation of 10 % in the mid- 1990s. 12 The t-statistic—including and intercept and a time trend—for H 0 :I(1) process is -1.297 implying a non-rejection. The t-statistic of the H 0 :I(2) process is -2.076 implying a rejection at 5 % but not at 1 %. Application of a rolling ADF GLS statistic allows similar results. However, Oh and Zivot (2006) find evidence rejecting the imposition of two unit roots. 13 We only include tables and figures concerning the selected model (UC-CN). Other results are available upon request or they may be found in the Working Paper version; see Guille ´n and Rodrı ´guez (2013). 14 Following definition of Castillo et al. (2007), amplitude is the distance between the maximum and minimum values of the cycle. Lat Am Econ Rev (2014) 23:5 Page 23 of 44 5 123 Estimations of the UC-0 model show that the cyclical component presents a large and significant standard deviation, whereas the standard deviations of the other components are close to zero. Hence, short term shocks end up explaining almost 100 % of the deviations of output. With respect to the autoregressive coefficients of the cycle, they add up to 0.932; that is, the cycle practically does not revert to mean. Besides, an analysis of its associated characteristic polynomial indicates that the roots are not complex, and hence, that the stationary component does not follow a cyclical pattern. These results, together with the upward bias in the cycles in periods after 1990, would indicate that the Clark (1987) specification does not seem adequate for modeling Peruvian GDP. 4.1 Models with one mixture of normals Among the proposed models, the first estimation corresponds to the UC-C model that contains a mixture of normals in the disturbance of the cyclical component (t). The cyclical component is negative during the recessive periods. Moreover, the cyclical component is most of the time below the steady state 15 ; only during periods of high growth, as in 1986–1987 or 2008, does it take positive values. That is, there is a large asymmetry in the cycles. The obtained decomposition is similar to that which can be obtained through the ‘‘plucking’’ model of Kim and Nelson (1999a), where output grows most of the time at its potential level or ‘‘ceiling’’, and only in recessive periods does it deviate negatively from trend. It is observed that recessions are associated mainly with periods of high variance. In contrast to the ‘‘plucking’’ model of Kim and Nelson (1999a), the observed probabilities do not correspond exactly to recession and normal periods, but rather to periods of high and low volatility. In general, the higher volatility is associated with a strong drop in output and its subsequent recovery, but can also take place in normal periods. For instance, in the first quarter of 1994, seasonally adjusted GDP grew 5.48 % and in 2002, after a brief decrease, there was a swift recovery in output and its average variation in absolute terms was of 3.53 %. This explains why those periods have a higher than 0.5 probability of being within the high variance regime. Estimations of this model reveal: the standard deviations of the disturbances, the autoregressive coefficients and the probability associated with being in the low variance regime. The existence of asymmetry in cycles is confirmed; the standard deviation of the cyclical component associated with the high variance regime (r2 2) is much higher than that associated with the low variance regime (r2 1), although the restriction admits that they can be almost equal. Both standard deviations are significant and relatively higher than the others, whereas the standard deviation of the trend level (rg) is statistically non-significant. This translates into a smooth behavior of the trend. With respect to the autoregressive parameters (/ 1 ,/ 2 ), they add up to 0.952; that is, short-term shocks generate cycles of high persistence or duration. On the other hand, real roots of the characteristic polynomial are obtained, and hence, the stationary component does not follow a properly cyclical pattern. 15 Steady state is defined as the point at which the cyclical component is zero or GDP is exactly at its potential level. 5Page 24 of 44 Lat Am Econ Rev (2014) 23:5 123 (r g ) and of the slope for both regimes (r2 t1;r2 t2) are not significant. Moreover, the probability of occurrence of the low variance regime in the slope is almost 1 and non-significant. Taking this into consideration, two additional estimations were made which imposed, first, a restriction of nullity on the standard deviation of the trend (r g ) and then, due to its non-significance, another restriction on the standard deviation of the measurement equation (r x ). In contrast to the previous models, the estimators are affected, although not the decomposition. This would indicate a higher sensitivity of the model. After the restrictions are made, all parameters become significant, although the standard deviations (r2 t1;r2 t2) of the slope are almost the same and their probability associated with the low variance regime (a 2 ) is higher than 0.9. Moreover, the values reached are similar to those of the UC-C model. For example, in both models the standard deviation of the cycle in the high variance regime (r2 2) and the complement of its associated probability (a 1 ) are almost the same. Besides, in this model as in the UC-C, the characteristic polynomial of the cycle presents non-imaginary roots, and the sum of all autoregressive coefficients is 0.930. All this seems to indicate that the mixture of the cyclical component completely dominates the mixture of the slope, and that there is an over-specification when both mixtures are specified jointly. The sixth estimated model was UC-NP, which presents a mixture of normals in the disturbances of the trend level and slope (g t ,t t ). The decomposition features two characteristics. The first one is that cycles are short and the trend fits closely to the output. The second is that, although most of the negative cycles coincide with periods of recession, the magnitude of the falls is relatively small. These two characteristics can be explained by the higher relative weight of long term shocks on the variation of output. As can be estimated from the parameters shown on Table 2, 1985 1990 1995 2000 2005 2010 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 year Variation (%) Fig. 4 UC-CN model, growth rate of the trend Lat Am Econ Rev (2014) 23:5 Page 31 of 44 5 123 the joint variance of shocks to the trend (r2 g1;r2 g2) and its slope (r2 m1;r2 m2) explain 89.5 % of the variation in output. On the other hand, the standard deviation of the cyclical component (r) is lower than the other deviations, whereas the sum of the autoregressive coefficients is of 0.28, that is, the cycles are not only small, but they also revert more quickly to the mean in comparison to other models. This represents a big difference with respect to other models. For example, in the UC-N and UC-P models which take into consideration mixtures on long term disturbances, the sum of the autoregressive coefficients is of 0.69 and 0.77 respectively. Yet by combining both mixtures one obtains cycles with a much shorter duration. This would indicate that, if this model were correct, the previously described persistence in the cycle itself would correspond to long-term shocks that occur during ‘‘atypical’’ periods. As to the regimes of high and low variance, it is more likely that the transition between them is caused by shocks to the trend (1 -a 1 ) than by shocks to the slope (1 -a 2 ). The results obtained do not deviate significantly from those obtained in models UC-N and UC-P. Nevertheless, in combining both mixtures in the disturbances to the trend and the slope, one finds a higher relevance of the former, and in consequence, to model only mixtures in the slope would not yield a good specification. Regarding the slope, it takes negative values during the great recession of the late 1980s, a similar result to that of model UC-P, although with lower magnitude and volatility. Besides, it shares the cyclical evolution of the model UC-N. Starting from the inclusion of a second mixture of normals, one can make the following remarks. First, the methodology is still useful in obtaining cycles that fit most of the expansion or recession periods of the Peruvian economy. And second, the duration and amplitude of the cycles differ depending on whether one admits asymmetries in the shocks of the trend component, or on those of the cyclical component as well. If one models allowing mixtures in both kinds of shocks simultaneously, one obtains that the short term shocks are as important as those of the long term when explaining the fluctuations in output. 4.3 Model with three mixtures of normals Finally, we estimated the UC-CNP model which has a mixture of normals in the disturbances or the cyclical, trend and slope components (t;gt;tt). For estimations, the variances of the cyclical and trend components are both significant, and the variance of the measurement equation is not significant, whereas regarding the slope, only the variance in the low-intensity regime is significant and associated with a probability of almost unity. Taking into consideration the non-significance of the standard deviation of the measurement equation (r x ), we did an additional estimation imposing a nullity restriction on this parameter. The additional estimation presents a higher value of the likelihood function, and thus it does not represent a better specification than the non-restricted model. In contrast to the previous models, the nullity restriction on a non-significant parameter whose value is close to zero changes the magnitude of the 5Page 32 of 44 Lat Am Econ Rev (2014) 23:5 123 other parameters in a significant way. This may be due to the substantial sensitivity of the initial values with respect to the probabilities of regimes and the lack of convergence in the final parameters. On the other hand, short term shocks represent 45.4 % of the variation in output. Despite the fact that the addition of mixtures of normals in both long term components could condition the relative weight of shocks, the cyclical component is still important in explaining output fluctuations. Moreover, in normal periods, short terms shocks explain more than 60 % of the variance in output. Taking into consideration that the standard deviation of the slope in high volatility periods (r2 t2) is non-significant, an additional estimation imposing a nullity restriction on this parameter could be formulated. To do this would lead to the UCCN model. However, if one observes the decomposition of cycles and the probabilities of the states, there are clear differences with respect to the UC-CN model. First, the cycles are shorter and have less amplitude, and second, the higher volatility is associated with shocks on the trend, rather than on the cyclical component. On the other hand, the slope presents the cyclical behavior that has been previously commented with negative values during the big recessions of the late 1980s and early 1990s. The divergence in the decomposition between this model and UC-CN, even if the additional mixture appears not to be relevant, could be explained by the sensitivity of the estimation algorithm. By including three mixtures, a global maximum is not reached and hence neither is the decomposition that would more tightly fit the data generating process. In general, the diverse estimated models present different decompositions of trend and cycle. It is therefore necessary to establish model selection criteria, which are reviewed in the following section. 4.4 Assessment and selection of models Before presenting the statistical tests that allow one to assess the convenience of a given model over another, it is convenient to make a brief comparison with some theoretical predictions and empirical regularities regarding the decomposition of cycles, as well as other methods that are also usually employed. First, modern macroeconomic theory predicts that both short terms and permanent shocks are relevant in explaining output fluctuations. Additionally, if the existence of the ‘‘plucking’’ effect is considered, it would follow that short term shocks are important during recessions, whereas permanent shocks would be relevant in normal times. Table 2shows that only the UC-CN and UC-CNP models follow this pattern. Models UC-C and UC-CP feature an absolute domination of short term shocks 19 ; that is, these models may be overestimating the cyclical component and its relative importance in the fluctuations of the economy. In the 19 In both models the variance of the irregular component r w 2 is different from zero. Even when a restriction of nullity on that variable is imposed, all the variation of the component is transferred to the cyclical component, instead of the long-term component. Lat Am Econ Rev (2014) 23:5 Page 33 of 44 5 123 other models, long-term shocks predominate, although the variance of the cyclical component is between 10 and 24 %. Second, the evidence supports the fact that the cycles behave differently in emerging and developed countries, with the former showing a higher volatility. Some theories attempt to explain these differences. One of them is Aguiar and Gopinath (2007), which presents a model where the shocks to the growth rate of output are the main factor behind cycles in emerging countries. What is interesting about this study is that it takes into account countries of the Latin American region, including Peru. Among the estimated models, those that admit a change in the trend level (with the exception of the UC-CN model) present a slope or long-term growth rate with cyclical behavior. This would be consistent with the proposal of Aguiar and Gopinath (2007). However, in the Peruvian case one finds that the fluctuations in output are explained, in atypical times, by large shocks to the trend level and not to the long term growth rate; whereas in normal periods, both permanent shocks to the growth rate as well as shocks to the transitory component are relevant. Third, regarding the specification of models, all of them include potentially a double unit root in the trend of output. The results show that this type of specification is convenient when one includes mixtures of normals in the modeling of the trend. Let us consider the following examples. First, assume that there is a mixture in the trend (s t ), that is, the model UC-N. If the results indicate that most of time r2 g1¼r2 g2¼0 and changes come from r2 v, it means that we have an I(1) process. Second, assume a mixture in b t . If most of times r2 v1¼0 and there is only a 5.0 % of probability that r2 v2[0, it means that most of the times the process is I(1) but there is a small probability that the process is I(2). As third example, let us consider a double mixture (in s t and b t ). We may obtain that the estimates of r2 g1[0 and r2 g2[0 and statistically significant, however the variance of the slope (b t ) most of times is zero and there is a small probability where r2 v2[0. In this case, we have again an I(1) process most of time but there is an I(2) process with a small probability. Finally, consider the case of the UC-CN model. The results (Table 1) indicate that r2 g1¼r2 g2¼0 whereas r2 1[0 and r2 2[0 are statistically significant. Regarding r v 2 , it is statistically not significant at 10.0 %. If it is the case, we have an I(0) process altered for some abrupt structural changes as in Perron (1989). However, r v 2 is statistically significant at 13.0 %. If we accept this result (marginally at 10.0 %), we have an I(1) process. Table 2 Components participation on the variance of output UC-C (%) UC-N (%) UC-P (%) UC-CN (%) UC-CP (%) UC-NP (%) UC-CNP (%) r g 2 0.0 82.6 19.7 48.5 0.0 79.2 49.9 r2 93.1 16.6 23.5 51.3 93.0 10.5 45.4 r m 2 0.2 0.8 56.8 0.2 0.2 10.3 4.6 r x 2 6.7 0.0 0.0 0.0 6.8 0.0 0.0 5Page 34 of 44 Lat Am Econ Rev (2014) 23:5 123 Fourth, one expects that the short term component, which follows an AR(2) process, has a cyclical pattern characterized by the presence of imaginary roots in its characteristic polynomial. Table 3shows the roots of each polynomial and the implicit duration of the cycles. Both the basis model, as well as the UC-C and UCCP models show real roots, and thus they may not be adequate for the identification of the short term cyclical component. On the other hand, there is an important difference between the UC-CN model and the rest; the former presents cycles of long duration, practically exceeding the conventionally accepted limit (32 quarters). In this model, the first cycle lasts from 1980 to 1986 and registers an amplitude of 16 %, the second cycle starts in 1986 and ends in 1994 with an amplitude of 23.8 %; and the third cycle comprises the 1994–2006 period with an amplitude of 11 %. This timeline is consistent with the estimation of complete cycles by Castillo et al. (2007), where the most important stylized fact is a reduction in the amplitude of the cycles and their higher duration in the last decade; that is, the Peruvian economy currently fluctuates closer to its steady state and presents higher persistence. Fifth, there are different methods for separating the trend and cyclic components. Table 4shows the simple correlations between these methods and the estimated models. The numbers in boldface show the higher correlation with respect to each method. The first four methods in the table correspond to estimations of deterministic trends, where tis a linear trend, t 2 is a squared trend, tq1is a linear trend with a break in the third quarter of 1990, and tq2adds a break in the slope in the first quarter of 2002. The two first methods (t,t 2 ) have a better correlation with the UC-C and UC-CP models, and in a lesser degree with the UC-CN model. However, Fig. 5shows that the cycles of the tand t 2 methods tend to overestimate the expansionary periods previous to 1990 and after 2007; for example, they do not identify the 2009 recession. 20 Table 3 Business-cycles duration UC-0 UC-C UC-N UC-P UC-CN UC-CP UC-NP UC-CNP Autoregressive parameters /11.353 1.496 1.361 1.276 1.416 1.506 1.159 1.276 /2-0.432 -0.544 -0.676 -0.504 -0.519 -0.553 -0.878 -0.770 Roots of the inverse polynomial k10.837 0.875 0.68 ?0.5i 0.64 ?0.3i 0.71 ?0.1i 0.873 0.58 ?0.7i 0.64 ?0.6i k20.515 0.621 0.68 -0.5i 0.64 -0.3i 0.71 -0.1i 0.634 0.58 -0.7i 0.64 -0.6i Implicit duration of cycles (years) 2.6 3.5 8.5 1.7 2.1 The implicit duration of cycles is given by d¼2p h;cos hðÞ¼a R;where aand Rare the real part and the module of root k 20 In Figs. 5,6and 7, dotted line represents the cyclical component obtained from the UC-CN model. Lat Am Econ Rev (2014) 23:5 Page 35 of 44 5 123 The next models are the trends with break tq1and tq2that show cycles that are more in line with the recessionary periods. Regarding the latter, the higher correlation is obtained with the UC-CN model. An interesting result is a correlation higher than 90 % with the tq1method. This appears to indicate that the trend is almost deterministic most of the time, and it only presents discrete changes in its Table 4 Correlations with others methods UC-C UC-N UC-P UC-CN UC-CP UC-NP UC-CNP t0.81 0.28 0.29 0.54 0.81 0.06 0.51 t 2 0.88 0.42 0.37 0.66 0.87 0.15 0.60 tq10.65 0.41 0.51 0.80 0.65 0.05 0.67 tq20.84 0.50 0.62 0.94 0.84 0.17 0.83 HP 1600 0.71 0.69 0.50 0.76 0.71 0.39 0.72 BK 0.74 0.68 0.46 0.77 0.74 0.36 0.73 CF 0.68 0.75 0.52 0.75 0.68 0.46 0.75 BW 0.65 0.75 0.54 0.72 0.65 0.49 0.74 Clark 0.71 0.34 0.26 0.83 0.71 0.10 0.77 Rodrı ´guez 0.87 0.36 0.40 0.68 0.87 0.09 0.67 Hamilton 0.33 0.45 0.45 0.68 0.34 0.12 0.47 Plucking 0.88 0.31 0.33 0.81 0.88 0.12 0.81 Promedio 0.73 0.50 0.44 0.74 0.73 0.21 0.69 Rodrı ´guez (2010c) use a multivariate Kalman filter t, lineal trend; t 2 , quadratic trend; t q1 , lineal trend with break in level (1990q3); t q2 , linear trend with break in level (1990q3) and slope (2002q1) 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Linear trend year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Quadratic trend year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Linear trend with break in trend year Deviation (%) Deviation (%) Deviation (%) Deviation (%) 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Linear trend with break in trend and slope year Fig. 5 Cycles of UC-CN model, comparision with others methods 5Page 36 of 44 Lat Am Econ Rev (2014) 23:5 123 level when facing structural adjustment processes or reforms such as those of 1990 and 2002. The next four methods in the table correspond to statistical filters. HP 1600 is the Hodrick and Prescott (1997) filter with a smoothing parameter of 1600, ByK is the Baxter and King (1999) filter, and CyF is the Christiano and Fitzgerald (2003) filter, whereas BW is a Butterworth filter similar to that proposed by Harvey and Timbur (2003). These filters produce cycles that are very similar to each other, but the ByK and CyF filters show smoother cycles due to their band-pass nature. Th highest correlation of these filters, with the exception of the BW filter, occurs with the model UC-CN. The comparison of this model with the featured filters is shown in Fig. 6. Finally, we carry out a comparison with econometric ‘‘filters’’ that model the GDP series on the basis of theoretical fundamentals or empirical regularities. We estimated the univariate model of non-observable components of Clark (1987), the bivariate model of Rodrı ´guez (2010c) which employs a Phillips curve, the Hamilton (1989) model in the state space representation proposed by Kim and Nelson (1999b), and the ‘‘plucking’’ model of Kim and Nelson (1999a). The cycles of each model are shown in Fig. 7, and the highest correlation is given with the cycles generated in the UC-C and UC-CN models. Summing up this comparison exercise, one can conclude that the UC-CN model obtains the highest correlations with a larger quantity of methods. In order to statistically assess the good specification of a model, we carried out an analysis of residuals. The residuals correspond to the prediction error of each model and have been normalized with respect to the variance of the prediction error. Several tests have been applied to the residual vector of each model, and the results are shown in Table 5. The first was the Lagrange multiplier test (LM Test) for detecting residual autocorrelation, and it showed that no model rejects the null 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Hodrick and Prescott year Deviation(%) Deviation(%) Deviation(%) Deviation(%) 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Baxter and King year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Christiano and Fitzgerald year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Buttherworth year Fig. 6 Cycles of UC-CN model, comparision with others methods Lat Am Econ Rev (2014) 23:5 Page 37 of 44 5 123 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Clark year Deviation (%) Deviation (%) Deviation (%) Deviation (%) 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Rodríguez bivariate model year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Hamilton year 1985 1990 1995 2000 2005 2010 -30 -20 -10 0 10 20 Plucking year Fig. 7 Cycles of UC-CN model, comparision with others methods Table 5 Residuals analysis Statistic UC-C UC-N UC-P UC-CN UC-CP UC-NP UC-CNP Autocorrelation LM Test (p-values) LM 0.236 0.238 0.125 0.998 0.455 0.962 0.324 LM(1) 0.181 0.579 0.685 0.829 0.829 0.196 0.136 LM(2) 0.240 0.930 0.723 0.657 0.657 0.234 0.721 LM(3) 0.790 0.217 0.410 0.847 0.847 0.730 0.206 LM(4) 0.016 0.025 0.006 0.027 0.027 0.016 0.066 LM(5) 0.296 0.158 0.087 0.517 0.517 0.311 0.162 LM(6) 0.975 0.387 0.931 0.223 0.223 0.972 0.673 LM(7) 0.567 0.207 0.751 0.486 0.486 0.535 0.869 LM(8) 0.590 0.206 0.070 0.388 0.388 0.598 0.266 Autoregressive conditional heteroscedasticity test (p-values) ARCH 0.989 0.727 0.379 0.896 0.992 0.264 0.024 ARCH(1) 0.922 0.431 0.977 0.760 0.993 0.297 0.059 ARCH(2) 0.916 0.926 0.168 0.723 0.898 0.253 0.111 Normality test (p-values) Jarque–Bera 0.053 0.084 0.808 0.049 0.057 0.047 0.000 Independence test (p-values) BDS (m=2, 0.7) 0.817 0.817 0.960 0.523 0.870 0.049 0.000 BDS (m=3, 0.7) 0.498 0.498 0.448 0.560 0.538 0.217 0.000 BDS (m=4, 0.7) 0.345 0.345 0.179 0.654 0.350 0.507 0.000 BDS (m=5, 0.7) 0.404 0.404 0.124 0.662 0.379 0.875 0.000 BDS (m=6, 0.7) 0.380 0.380 0.103 0.904 0.315 0.998 0.000 Null hypothesis over residuals of LM, ARCH, Jarque–Bera y BDS tests are no autocorrelation, no autoregressive conditional heteroscedasticity, normality and independence, respectively 5Page 38 of 44 Lat Am Econ Rev (2014) 23:5 123 hypothesis of non-correlation. The second test was the autoregressive conditional heteroskedasticity in residuals test (ARCH Test). In this case only the UC-CNP model shows ARCH effects in the residuals. The third test was the residual normality test (Jarque–Bera test). Only the UC-CNP model rejects the null hypothesis of normality, whereas the UC-CN, UC-CP and UC-NP models are at the threshold of significance. Finally, the residual independence test (BDS test) was applied, where the null hypothesis implies independence of residuals; in this case only the UC-CNP model rejects independence. For the selection between models we relied in the first place on information criteria, and secondly on a likelihood ratio according to the specification of Davies (1987). 21 Table 6shows the Akaike and Schwartz Information Criteria (AIC and BIC, respectively). The model with the lowest value according to both criteria is UC-CN, whereas the UC-CP model is the second option. On the other hand, Table 7 shows the p-values of the likelihood ratio, where each model that contain mixtures of normals is compared with the base and nested models. The null hypothesis is that the restricted model, in this case the nested model, is equivalent to the unrestricted one. The results indicate that the UC-CN and the UC-CP models are superior to the rest. The results of these tests favor the use of the UC-CN and UC-CP models. However, the UC-CP model would be an over-specification of the UC-C model, since both present the same decomposition. Besides, we found that the UC-CP and UC-C models presented inconsistencies with certain empirical regularities of cycles, such as the total domination of short term shocks 22 , the lack of imaginary roots, and the low correspondence with other usually employed methods. In consequence, we Table 6 Information criteria UC-0 UC-C UC-N UC-P UC-CN UC-CP UC-NP UC-CNP AIC 632.04 630.84 632.63 649.89 603.32 610.27 622.29 636.07 BIC 649.16 653.65 655.45 672.71 631.84 638.79 650.81 670.29 AIC =-2ln(L)?2k, while BIC ¼2lnðLÞþln TðÞk 21 In a non-linear model that presents regimes for certain variables, the maximum likelihood test does not have a standard asymptotical distribution. The problem arises from the fact that some parameters are not identified under the null hypothesis (Andrews and Ploberger 1994). Davies (1987) works under the idea of assigning certain variables to the parameters under the alternative hypothesis and builds a statistic on the basis of these values. A lower bound is thus obtained for the degree of significance of the likelihood ratio test under the null hypothesis. The estimation of this statistic is done following Garcı ´a and Perron (1996), who work with an estimation that is simpler to estimate. 22 For example, Stock and Watson (1988) and King et al. (1991) find that in the case of the United States, both long term and short term shocks are important. Aguiar and Gopinath (2007) find that in the case of developing countries, productivity shocks explain an important portion of output fluctuations. On the other hand, the results of Rodrı ´guez (2010c) show that the variance of the trend component of Peruvian GDP is as important as the variance of the cyclical component, especially from 1990 onwards. Finally, although Perron (1989) and Perron and Wada (2009) propose a non-stochastic trend for most of the time, this goes in hand with structural changes in the trend during some periods; however, this is not the case in the UC-C and the UC-CP models. Lat Am Econ Rev (2014) 23:5 Page 39 of 44 5 123 consider that the UC-CN model is the most appropriate in order to identify the cycles of the Peruvian economy. 5 Conclusions From 1980 to the present, different recessions and expansions took place with varying magnitude and duration. Moreover, a series of structural reforms were carried out, which changed the dynamic of output in the long term. This irregular pattern of Peruvian GDP leads to non-linearities in the long-term component and to asymmetries in the cycles. Multiple methods to estimate trend and cycles of the Peruvian economy have been used; linear methods, either univariate or multivariate, tend to underestimate the recessionary cycles or overestimate the expansionary cycles, especially in the period before the structural reforms of the early 1990s. On the other hand, the nonlinear methods such as Markov switching identify adequately the periods of big recessions, but they lose power in identifying the recessions after 1990. Two facts act against these two types of methods. First, they assume symmetrical cycles, which conditions the decomposition to recession or boom periods of similar magnitude, whereas empirical evidence shows the opposite. Second, the structural reforms of the early 1990s implied a profound change in the behavior of GDP, so that it is not useful to assume a Markov process for the entirety of the series. In view of this evidence, we applied the methodology developed in Wada and Perron (2006) and Perron and Wada (2009) to the estimation of the trend and cycle of the Peruvian GDP. This model contemplates the presence of a mixture of normal distributions in the terms of disturbance, generating regimes of high and low variance. Starting from this specification, there may arise abrupt changes in the trend level that are associated with adjustment periods or with structural reforms, as well as to an asymmetric evolution of the cyclical component. The methodology hereby applied is flexible and the results are in line with the literature and with the evidence supporting non-linearities in output and asymmetries in the cycles. Seven univariate models were estimated, with different setups of mixture of normals. The estimations maintain certain regularities with respect to the behavior of the trend and cycles in the Peruvian economy. For example, before the 1990s, the cycles show higher amplitude and the periods of high volatility in either Table 7 Likelihood ratio test (pvalues) UC-C UC-N UC-P UC-CN UC-CP UC-NP UC-CNP UC-0 0.514 0.754 0.001 0.012 0.823 1.000 UC-C 0.000 0.000 1.000 UC-N 0.000 0.022 1.000 UC-P 0.000 0.000 0.221 ln(L)-307.42 -308.32 -316.95 -291.66 -295.13 -301.14 -306.03 Results in p-values following Davies’ specification (1987) 5Page 40 of 44 Lat Am Econ Rev (2014) 23:5 123