Score-driven currency exchange rate seasonality as applied to the Guatemalan Quetzal/US Dollar

In this paper we introduce new Dynamic Conditional Score (DCS) models for the Skew-Gen- t (SkewedGeneralized t )andNIG(Normal-InverseGaussian)distributions as alternatives to the recent DCS models for the Student’s- t and EGB2 (Exponential Generalized Beta of the second kind) distributions, respectively. The DCS models we propose include stochastic local level, stochastic seasonality, and irregular components with DCS-EGARCH (Exponential Generalized Autoregressive Conditional Heteroscedasticity) volatility dynamics. DCS models are robust to extreme observations, whereas standard ﬁnancial time series models are not. We use data from the Guatemalan Quetzal (GTQ) to United States Dollar (USD) exchange rate for the period of 4th January 1994–30th June 2017. This dataset exhibits signiﬁcant rises and falls in the GTQ/USD that lead to extreme observations, stochastic seasonality with dynamic amplitude, and volatility dynamics. These seasonality dynamics of the GTQ/USD are related to the Guatemalan trade-related currency movements, receipt and payment of foreign loans, and remittance payments of Guatemalans working abroad. We show that the in-sample statistical performance of the DCS-Skew-Gen- t and the DCS-NIG models is superior to that of the DCS- t and the DCS-EGB2 models, respectively. Fur-thermore, we show that the statistical performance of all DCS models is superior to that of the standard ﬁnancial time series model.


Introduction
Historically, Guatemala has ranked among the largest exporters of several agricultural products worldwide. According to the United States Dollar (USD) value of sugar exports, Guatemala is the fourth ranked country in the world, for example, with a value of USD826.2 million during 2017 (that is 3% of total sugar exports worldwide, following Brazil with 41.3%, Thailand with 9.4% and France with 4.9%). Guatemala is the fourteenth ranked country for coffee exports worldwide, with a value of USD748.6 million during 2017 (that is 2.3% of total coffee exports worldwide, following Ethiopia with 2.9%, United States with 2.7% and the Netherlands with 2.3%). Moreover, Guatemala is the fifth ranked country for banana exports worldwide, with a value of USD882.3 million during 2017 (that is 7.1% of total banana exports worldwide, following Ecuador with 24.6%, Belgium with 8.5%, Costa Rica with 8.4% and Colombia with 7.4%). We also highlight that Guatemala is the top cardamom producing country worldwide, with a total value of exports of USD277.1 million during 2016 (that is 55.7% of total cardamom exports worldwide, followed by Nepal with 12.4%, India with 8.7% and the United Arab Emirates with 6.2%). The sugarcane, coffee, banana and cardamom production in Guatemala has a seasonal component related to weather conditions. Therefore, the export-related currency movements of these products may lead to an exchange rate seasonality (i.e. annual seasonality) of the Guatemalan Quetzal (GTQ) to USD (GTQ/USD) exchange rate.
During the last two decades, the relative importance of sugar, coffee, banana and cardamom exports, out of Guatemala's total exports, has decreased significantly (source: Bank of Guatemala, http://www.banguat.gob.gt; see notes of Table 4). This suggests that the impact of the export-related seasonality effects on the GTQ/USD exchange rate may have decreased over time. During the same period, the relative importance of the receipt and payment of foreign loans, and remittance payments to Guatemala (as a fraction of total foreign currency movements of the country) has increased significantly. As the receipt and payment of foreign loans and the remittance payments to Guatemala do not involve significant exchange rate seasonality components (i.e. annual seasonality), the increase in the relative importance of those currency movements may indirectly lower the amplitude of GTQ/USD exchange rate seasonality.
The aforementioned issues motivated the present work and we focus on the insample analysis of the GTQ/USD exchange rate p t . We evaluate the historical evolution of stochastic seasonality effects in the GTQ/USD exchange rate for the sample period of 4th January 1994-30th June 2017. We use information on (1) Guatemalan exportrelated currency movements, (2) import-related currency movements, (3) receipt of Guatemalan USD loans, (4) payment of Guatemalan USD loans, and (5) remittance payments of Guatemalan citizens who are working abroad. To study the stochastic seasonality component of the GTQ/USD exchange rate, we suggest using the new Dynamic Conditional Score (DCS) models (Creal et al. 2013;Harvey 2013) that include both stochastic local level μ t and stochastic seasonality s t components. The new DCS models are flexible and they allow stochastic dynamics in the local level μ t component, the seasonality s t component, and the irregular v t component, within the decomposition of the GTQ/USD exchange rate: p t = μ t + s t + v t .
The use of the DCS models for the time series sample in the present study is motivated by the GTQ/USD time series that exhibits: (1) significant rises and falls that lead to extreme observations, (2) a significant stochastic seasonality component (i.e. annual seasonality) with dynamic amplitude, and (3) significant volatility dynamics. DCS models are robust to extreme observations. Therefore, the new DCS models for the GTQ/USD exchange rate may be more adequate for an effective in-sample measurement of the stochastic seasonality component than the standard financial time series models (i.e. the latter are less robust to extreme observations). Our paper makes several contributions to the body of DCS literature.
Firstly, we introduce the new DCS-Skew-Gen-t (Skewed Generalized t distribution) model with (1) stochastic local level μ t , (2) stochastic seasonality s t , and (3) DCS-EGARCH (Exponential Generalized Autoregressive Conditional Heteroscedasticity) (Harvey 2013) scale dynamics for the irregular component v t . The statistical performance of the DCS-Skew-Gen-t model is superior to that of the DCS Student's-t model (hereinafter, DCS-t) (Harvey 2013;Harvey and Luati 2014), according to all Log-Likelihood (LL)-based metrics of this paper.
Secondly, we introduce the new DCS-NIG (Normal-Inverse Gaussian distribution) model (Barndorff-Nielsen and Halgreen 1977) with (1) stochastic local level μ t , (2) stochastic seasonality s t , and (3) DCS-EGARCH scale dynamics for the irregular component v t . The statistical performance of the DCS-NIG model is superior to that of the DCS-EGB2 (Exponential Generalized Beta distribution of the second kind) model (Caivano et al. 2016), according to the LL-based parsimony metrics.
In this paper, we suggest two new DCS models because their terms, which do the updating, transform extreme observations in a similar way to the benchmark DCS models, as described in the literature: (1) For both the DCS-t and DCS-Skew-Gen-t models, the most extreme observations are trimmed by local level and seasonality (updating terms), and extreme observations in scale (updating term) are Winsorized; (2) For both the DCS-EGB2 and DCS-NIG models, local level and seasonality (updating terms) perform Winsorizing of extreme observations, and scale (updating term) transforms extreme observations according to a linear function. The type of transformation of extreme observations that is more appropriate for local level, stochastic seasonality and volatility, is an open question in the relevant body of DCS literature.
Thirdly, we compare the DCS models with a standard financial time series model that de-composes the GTQ/USD exchange rate to the three components: stochastic local level μ t , stochastic seasonality s t , and irregular v t . We find that all of the DCS models in this paper present a statistical performance that is superior to that of the standard model.
The remainder of this paper is organized as follows. Section 2 reviews the literature on DCS models. Section 3 presents the econometric framework. Section 4 describes the dataset. Section 5 presents the empirical results. Section 6 concludes.

Review of the literature on DCS models
DCS models are observation-driven time series models (Cox et al. 1981), in which each dynamic equation is updated by the conditional score of the LL (hereinafter, score function) with respect to a dynamic parameter. The score function discounts the effects of previous observations when the dynamic equations of the DCS model are updated. Thus, DCS models are robust to extreme values in the irregular component (Creal et al. 2013;Harvey 2013). Those models can be applied to the study of I (0) (e.g. financial returns, real GDP growth) or I (1) (e.g. exchange rate level, real GDP level) times series variables (see Hamilton 1994).
The first example of DCS models is Beta-t-EGARCH (Harvey and Chakravarty 2008), which is an outlier-robust alternative to the GARCH model (Engle 1982;Bollerslev 1986). With respect to Beta-t-EGARCH, we refer to the recent applications of Blazsek and Villatoro (2015), Blazsek and Mendoza (2016), and Blazsek and Monteros (2017). Another example of DCS models is QAR (Harvey 2013), which is a nonlinear and outlier-robust alternative to the AR Moving Average (ARMA) model (Box and Jenkins 1970). An additional recent example of DCS models is QVAR (Blazsek et al. , 2018b, which is a nonlinear and outlier-robust alternative to the VARMA model (see, for example, Lütkepohl 2005).
We also refer to the following recent models from the body of DCS literature: Blazsek and Escribano (2016a) suggest a DCS count panel data model, which is an alternative to the dynamic count panel data models of Blundell et al. (2002), Wooldridge (2005), and Escribano (2010, 2016b). Ayala et al. (2017) suggest DCS-EGARCH models with score-driven shape parameters, which are extensions of the DCS-EGARCH models with constant shape (see, for example, Harvey 2013). Blazsek and Ho (2017) introduce the Markov regime-switching Beta-t-EGARCH model. Blazsek et al. (2018c) compare single-regime and regime-switching Betat-EGARCH, Skew-Gen-t-EGARCH, EGB2-EGARCH and NIG-EGARCH volatility models. Ayala and Blazsek (2018a, b) use new DCS copula models for financial portfolios, by considering score-driven Clayton, rotated Clayton, Frank, Gaussian, Gumbel, rotated Gumbel, Plackett, and Student's t copulas.
Related to the new DCS models with stochastic local level and stochastic seasonality components that are suggested in the present paper, we refer to the works of Harvey (2013) and Harvey and Luati (2014), who introduce the dynamic Student's-t location model that includes stochastic local level and stochastic seasonality components. More recently, Caivano et al. (2016) introduce the dynamic EGB2 location model, which includes stochastic local level and stochastic seasonality components. Caivano et al. (2016) compare the dynamic Student's-t location and the dynamic EGB2 location models, and demonstrate that extreme observations are discounted in different ways in those models. For the Student's-t location model, the score function converges to zero as |v t | → ∞, which is described as a soft form of trimming. For the EGB2 location model, the score function converges to a positive or negative non-zero value as |v t | → ∞, which is described as a soft form of Winsorizing.
We also refer to a related recent work of Blazsek and Hernández (2018), who apply DCS-t, DCS-Gen-t (Generalized t distribution) and DCS-EGB2 models of stochastic local level, stochastic seasonality and EGARCH-driven irregular components, to spot electricity prices from El Salvador, Guatemala and Panama that exhibit significant rises and falls.

DCS models with local level and seasonality
The DCS models of this paper are formulated as: p t = μ t +s t +v t = μ t +s t +exp(λ t ) t for days t = 1, . . . , T , where T is the number of observations. The model includes three score-driven components: stochastic local level component μ t , stochastic annual seasonality component s t , and irregular component v t . The irregular component is the product of a dynamic scale parameter exp(λ t ) and a standardized error term t .
For t , we use the Student's-t, Skew-Gen-t, EGB2 and NIG distributions (we present the corresponding density functions in Sect. 3.3). For these probability distributions, the updating terms of the DCS equations either trim or Winsorize the extreme observations, or transform them according to a linear function. Due to these transformations, the DCS models for the GTQ/USD currency exchange rate of the present paper are robust to extreme observations. Firstly, the local level component μ t = μ t−1 + δu μ,t−1 is updated by the scaled score function u μ,t with respect to μ t (u μ,t is defined in Sect. 3.3). We initialize μ t by using the first observation p 1 . As an alternative, we also consider the use of parameter μ 0 to initialize μ t . We obtain very similar results for both cases, thus, in this paper we only report results for μ 1 = p 1 . With respect to these alternatives of initialization, we refer to the work of Harvey (2013, p. 76).
Secondly, the annual seasonality component is s t = D t ρ t = (D Jan,t , D Feb,t , . . . , D Dec,t ) ρ t , where the monthly dummies D j,t with j ∈ {Jan, . . . , Dec} select an element from the 12 × 1 vector of dynamic variables ρ t . The vector ρ t is formulated as ρ t = ρ t−1 + γ t u μ,t−1 . Vector ρ t is updated by the scaled score function u μ,t with respect to μ t (Sect. 3.3), and u μ,t is multiplied by the 12 × 1 vector of dynamic parameters γ t . Each element of the γ t vector is given by γ jt = γ j for D jt = 1 and γ jt = −γ j /(12 − 1) for D jt = 0, where γ j with j ∈ {Jan, . . . , Dec} are seasonality parameters to be estimated. This specification ensures that the sum of the seasonality parameters is zero, hence, s t has mean zero and it is effectively separated from μ t .
We initialize ρ t by estimating the equation p t = a + bt + c Jan D Jan,t + · · · + c Dec D Dec,t + t , under the restriction c Jan + · · · + c Dec = 0. Due to this restriction multicollinearity is avoided, thus, all parameters are identified in the equation. For the estimation, we use data from the first year of the full data window (i.e. the first 259 observations of the GTQ/USD exchange rate sample from year 1994), and we estimate the parameters by using the Non-linear Least Squares (NLS) method. The initial values of ρ t are the NLS estimates of (c Jan , . . . , c Dec ) . With respect to this method of initialization, we refer to the work of Harvey (2013, p. 80).
In the DCS models of this paper, the same scaled score function updates both the local level and the seasonality components. Therefore, the local level and seasonality shocks are correlated. The DCS models with stochastic local level and stochastic seasonality of this paper are alternatives to the recent Unobserved Components Model (UCM) of Hindrayanto et al. (2018) that uses correlated shocks for the local level and seasonality components. Thirdly, we model the time-varying scale of the irregular component v t by using the DCS-EGARCH(1,1) model λ t = ω + βλ t−1 + αu λ,t−1 , which is updated by the score function u λ,t with respect to λ t (u λ,t is defined in Sect. 3.3). DCS-EGARCH models for the Student's-t, Skew-Gen-t, EGB2 and NIG distributions are named Beta-t-EGARCH (Harvey and Chakravarty 2008), Skew-Gen-t-EGARCH (Harvey and Lange 2017), EGB2-EGARCH (Caivano and Harvey 2014) and NIG-EGARCH (Blazsek et al. 2018c), respectively. We initialize λ t by using parameter λ 0 . As an alternative, we also consider DCS-EGARCH with leverage effects (Harvey 2013). However, we find that the parameter that measures leverage effects is not significantly different from zero for the GTQ/USD dataset that is used in this paper.
Motivated by the works of Dacorogna et al. (1993) and Andersen and Bollerslev (1998), we also consider a seasonality component in volatility. We add the seasonality components t into scale, as follows: where we use the Student's t, Skew-Gen-t, EGB2 and NIG distributions for t . The seasonality component is specified ass t = D tρ t = (D Jan,t , D Feb,t , . . . , D Dec,t ) ρ t and ρ t =ρ t−1 + κ t u λ,t−1 . Each element of the κ t vector is given by κ jt = κ j for D jt = 1 and κ jt = −κ j /(12−1) for D jt = 0, where κ j with j ∈ {Jan, . . . , Dec} are parameters to be estimated. This specification ensures that the sum of the seasonality parameters is zero, hence,s t has mean zero and it is effectively separated from λ t . We do not report results for these extended DCS specifications with seasonal volatility, because the ML estimator does not converge to an optimum for the GTQ/USD currency exchange rate dataset of the present paper. Nevertheless, this specification may be helpful in future applications for currency exchange rates involving stochastic seasonality and extreme observations.

Standard financial time series model with local level and seasonality
The standard financial time series model is formulated as: p t = μ t + s t + v t = μ t + s t + λ 1/2 t t for days t = 1, . . . , T . We use the same notation for the local level, seasonality and irregular components as for the DCS models, and for the error term we use t ∼ N (0, 1).
Firstly, the local level component is μ t = μ t−1 +δv t−1 (our motivation for using this updating term is outlined in Sect. 3.3). We initialize μ t by using the first observation p 1 . As an alternative, we also consider the use of parameter μ 0 to initialize μ t . We obtain very similar results for both cases, thus, in this paper we only report results for μ 1 = p 1 .
Secondly, the annual seasonality component is where the monthly dummies D j,t with j ∈ {Jan, . . . , Dec} select an element from the 12 × 1 vector of dynamic variables ρ t . The vector ρ t is formulated as . We initialize ρ t in the same way as for the DCS models. Each element of the γ t vector is given by γ jt = γ j for D jt = 1 and γ jt = −γ j /(12−1) for D jt = 0, where γ j with j ∈ {Jan, . . . , Dec} are seasonality parameters to be estimated. This specification ensures that s t is centred at zero. Thirdly, we model the conditional variance of v t by using the classic GARCH(1,1) specification λ t = ω + βλ t−1 + αv 2 t−1 . We initialize λ t by using parameter λ 0 .

Conditional densities, score functions and updating terms
We use four probability distributions for t in the DCS models. In this section, for each alternative, we present the log conditional density of p t , and the score functions u μ,t and u λ,t . Furthermore, in this section we also present the log conditional density of p t and the properties of the updating terms of μ t and λ t for the standard financial time series model.
where ν ∈ IR influences tail-thickness. The degrees of freedom exp(ν) + 2 parameter specification ensures finite conditional variance for p t . The log conditional density of p t is where (x) is the gamma function. The score function with respect to μ t is given by where the scaled score function u μ,t is defined according to the last equality. The u μ,t term trims extreme observations, because u μ,t → p 0 when | t | → ∞. The discounting that is undertaken by u μ,t is identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). The updating term v t that is used in the local level and stochastic seasonality equations of the standard financial time series model is a limiting special case of the scaled score function u μ,t , because: as ν → ∞. Related to this, we also note that under the same limit t[0, 1, exp(ν) + 2] → d N (0, 1), i.e. the standardized error term of the standard financial time series model is obtained. The score function u λ,t is The updating term u λ,t Winsorizes extreme observations, because u λ,t → p c (c > 0 is a real number) when | t | → ∞. The discounting that is undertaken by u λ,t is identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). We also show the limiting case for u λ,t when ν → ∞: as ν → ∞. The last equality shows that u λ,t performs a quadratic transformation of v t for the limiting case, as per the conditional variance equation in the standard financial time series model. and Michelfelder 2017), where tanh(x) is the hyperbolic tangent function, and τ ∈ IR, ν ∈ IR and η ∈ IR influence the asymmetry, tail-thickness and peakedness, respectively. The Skew-Get-t distribution is a generalization of the Student's t distribution. By setting tanh(τ ) = 0 and exp(η) = 2, Skew-Get-t coincides with Student's t. The degrees of freedom exp(ν) + 2 specification ensures finite conditional variance for p t , as for the Student's t distribution. The log-density of p t is where sgn(x) is the signum function. The score function with respect to μ t is given by where the scaled score function u μ,t is defined according to the second equality. The u μ,t term trims extreme observations, because u μ,t → p 0 when | t | → ∞. The discounting that is undertaken by u μ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). The score function u λ,t is The updating term u λ,t Winsorizes extreme observations, because u λ,t → p c 1 when t → −∞ and u λ,t → p c 2 when t → +∞ (c 1 > 0 and c 2 > 0 are real numbers).
The Winsorizing that is undertaken by u λ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results).
where ξ ∈ IR and ζ ∈ IR influence both asymmetry and tail-thickness. The log conditional density of p t is The score function with respect to μ t is given by where the scaled score function u μ,t is defined as: where (1) (x) is the trigamma function. The u μ,t term Winsorizes extreme observations, because u μ,t → p c 1 when t → −∞ and u μ,t → p c 2 when t → +∞ (c 1 < 0 and c 2 > 0 are a real numbers). The discounting that is undertaken by u μ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). The score function u λ,t is (12) The updating term u λ,t transforms extreme observations according to a linear increasing function, because u λ,t → p ∞ in a linear manner when | t | → ∞. The linear transformation that is undertaken by u λ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results).
Fourthly, t ∼ NIG[0, 1, exp(ν), exp(ν)tanh(η)], where ν ∈ IR and η ∈ IR influence tail-thickness and asymmetry, respectively. The log conditional density of p t is where K (1) (x) is the modified Bessel function of the second kind of order 1. The score function with respect to μ t is given by and the scaled score function u μ,t is defined as: where K (0) (x) and K (2) (x) are the modified Bessel functions of the second kind of orders 0 and 2, respectively. The u μ,t term Winsorizes extreme observations, because u μ,t → p c 1 when t → −∞ and u μ,t → p c 2 when t → +∞ (c 1 < 0 and c 2 > 0 are real numbers). The discounting that is undertaken by u μ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). The score function u λ,t is The updating term u λ,t transforms extreme observations according to a linear increasing function, because u λ,t → p ∞ in a linear manner when | t | → ±∞. The linear transformation that is undertaken by u λ,t is not identical for the positive and negative sides of the probability distribution (see Sect. 5 for empirical results). Finally, we also present the log-density of p t for the standard financial time series model: The updating terms of the equations μ t = μ t−1 + δv t−1 and λ t = ω + βλ t−1 + αv 2 t−1 perform linear and quadratic transformations of t , respectively. For both μ t and λ t , the updating terms go to infinity when | t | → ∞. The linear and quadratic transformations that are undertaken by the updating terms are identical for the positive and negative sides of the probability distribution. Compared to the DCS specifications, the standard financial time series model does not discount extreme observations. We highlight the fact that extreme observations are accentuated in GARCH by the quadratic transformation of shocks, possibly leading to an overestimation of volatility after extreme observations (Blazsek et al. 2018a).

Statistical inference
The DCS specifications of this paper are estimated by using the Maximum Likelihood (ML) method (see, for example, Davidson and MacKinnon 2003). The ML estimator is given bŷ where denotes the vector of parameters. We estimate the components μ t , s t and v t jointly, under the initialization methods of μ t , s t and λ t that are presented in Sect. 3.1 (see also Harvey 2013). The standard errors of parameters are estimated by using the inverse information matrix (Creal et al. 2013;Harvey 2013). For some parameters, we estimate their transformed values. We use the delta method to estimate the standard errors for those parameters (see, for example, Davidson and MacKinnon 2003).
For the DCS models of this paper, we use results from the work of Harvey (2013) for the conditions of consistency and asymptotic normality of the ML estimates. For the local level and stochastic seasonality equations, the dynamic parameters of the μ t and ρ t equations are set to one, instead of being estimated. Therefore, the asymptotic properties of the ML estimator hold for those cases (Harvey 2013). With respect to the dynamic log-scale equation, we define the statistic C λ = β 2 + 2βα E(∂u λ,t /∂λ t ) + α 2 E[(∂u λ,t /∂λ t ) 2 ] (Harvey 2013). We estimate C λ numerically for each DCS specification of the present paper. Firstly, the partial derivatives of the score function with respect to λ t are computed numerically. Secondly, the Augmented Dickey and Fuller (1979) (hereinafter, ADF) is performed for each ∂u λ,t /∂λ t time series, in order to justify the use of the sample average estimator for the expectations. For all cases, the ADF test indicates that ∂u λ,t /∂λ t forms a covariance stationary time series. Thus, the sample average is a consistent estimator of the expected value (see, for example, Hamilton 1994). Two conditions for DCS-EGARCH(1,1) are |β| < 1 and C λ < 1.
For the standard financial time series model: (1) we use the ML estimator, (2) we estimate the standard errors of parameters by using the inverse information matrix, and (3) we use the delta method for the transformed parameters. Even if the t ∼ N (0, 1) assumption does not hold, we still get consistent and asymptotically normal estimates of the parameters in accordance with the Quasi-ML (QML) results of Gouriéroux et al. (1984). For the local level and stochastic seasonality equations, the dynamic parameters of the μ t and ρ t equations are not estimated but are set to one. Therefore, the asymptotic properties of ML hold for those cases. For GARCH, a sufficient condition for the asymptotic properties of ML is α + β < 1. from 6th November 1989, when GTQ/USD started to float in the foreign currency market. Until 1994, the Bank of Guatemala used a pegged float exchange rate regime, for which the rate was allowed to fluctuate within a specific band. For the period of 6th November 1989 to 31st December 1993, the GTQ/USD time series shows constant level periods with zero volatility, step function-like evolution in other periods, and significant rises or falls on some days (Fig. 1a, b). Thus, the DCS models of this paper are not adequate for the GTQ/USD time series of this period.
From 1994, a managed float exchange rate regime was introduced, and GTQ/USD became more volatile. In 1997 and 1998, GTQ depreciated in relation to the effects of the Asian Financial Crisis and the Russian Financial Crisis, respectively (Fig. 1c,  d). In 1999, both demand and price of the goods exported from Guatemala decreased significantly, and GTQ depreciated significantly again (Fig. 1c, d) due to a negative current account and a negative capital account in the same year. As a consequence, the Bank of Guatemala intervened in the GTQ/USD exchange rate market in August 1999. In May 2001, the Congress of the Republic of Guatemala approved the Law of Free Foreign Currency Transactions (Act No: 94-2000), and created the Institutional Foreign Currency Market (hereinafter, we use the Spanish language acronym of MID). Those institutions that participate in the MID are obliged to report all foreign currency transactions, on a daily basis, to the Bank of Guatemala. The current exchange rate regime in Guatemala allows the participation of the Bank of Guatemala in the MID. Since 2006, the rules of intervention by the Bank of Guatemala are officially published, and are known by the participants of the MID.
In this paper, we use data for the period of 4th January 1994-30th June 2017 (Fig. 1c,  d). The Bank of Guatemala reports bid and ask prices for GTQ/USD for seven days of the week (Guatemalan banks are open seven days in every week). We use the average of bid and ask prices for each day. We use data for every Monday to Friday from the data window. We do not include bank holidays and weekends in the dataset, since the MID undertakes foreign currency transactions only from Monday to Friday (thus, GTQ/USD does not change during the weekend). As an extension of our models, we also consider a weekly stochastic seasonality component for the GTQ/USD currency exchange rate time series data of this paper. We do not report those results, because weekly seasonality is not significantly different from zero.
We present descriptive statistics for the GTQ/USD level p t and the GTQ/USD log-return ln( p t / p t−1 ) time series in Table 1. We also present results for the ADF test in Table 1, which suggest that p t is a I (1) process, and thus motivate the use of the local level component with unit root in the DCS model. Further, in Table 1, we present the mean p t for each month of the year. Those mean p t estimates indicate the following annual seasonality effects: (1) strengthening GTQ from December to May; (2) relatively stable GTQ from June to August; (3) weakening GTQ from September to November. These results motivate the use of the annual seasonality component s t in the DCS model. Significant rises and falls in GTQ/USD are also observed in Fig. 1c, which motivate the use of different DCS specifications that discount extreme observations in a different manner. Finally, significant volatility clustering is observed in Fig. 1d, which motivates the use of DCS-EGARCH.

Statistical performance
The ML parameter estimates and model diagnostics are presented in Table 2. For all DCS specifications, the ML conditions for local level and stochastic seasonality are satisfied since the dynamic parameters are set to one. Moreover, the EGARCH estimates support the consistency and asymptotic normality of ML (i.e. |β| < 1 and C λ < 1) ( Table 2). With respect to the standard financial time series model, we find statistically significant parameters for the local level, stochastic seasonality and irregular components (Table 2). For the standard model, the ML conditions for local level and stochastic seasonality are satisfied and the estimate of α + β is less than one, which supports the asymptotic properties of ML (Table 2).
We use the following metrics to compare statistical performance: LL, Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC) and Hannan-Quinn Criterion (HQC). According to AIC, BIC and HQC, the in-sample statistical performance of the DCS-Skew-Gen-t model is superior to that of all the alternatives of this paper (Table 2). We also perform a Likelihood-Ratio (LR) test for non-nested models (Vuong 1989). In the LR test, we estimate the linear regression d t = c + t , where d t is the difference between the log-densities of two models for day t. We estimate this equation by using the OLS-HAC (Ordinary Least Squares -Heteroscedasticity and Autocorrelation Consistent) estimator (Newey and West 1987). In Table 2, we report three different LR test results: (1) LR1 compares the LLs of all alternatives with that of the DCS-Skew-Gen-t model (i.e. the model with the highest LL estimate). According to the results, the LL of the DCS-Skew-Gen-t model is significantly higher than the LLs of the alternative models. (2) LR2 compares the LLs of all alternatives with that of the standard financial time series model (i.e. the model with the lowest LL estimate). According to the results, the LLs of all DCS models are significantly higher than the LL of the standard financial time series model. (3) LR3 compares the LLs of those DCS models that undertake trimming in the location equation (i.e. the recent DCS-t model and the new DCS-Skew-Gen-t model), and also compares the LLs of those DCS models that undertake Winsorizing in the location equation (i.e. the recent DCS-EGB2 model and the new DCS-NIG model). According to the results, the LL of the DCS-Skew-Gen-t model is significantly higher than the LL of DCS-t model, while the LLs of DCS-EGB2 and DCS-NIG models do not differ significantly.
The properties of the scaled score functions and score functions that update the local level and log-scale of p t are important with respect to the likelihood-based performance of alternative DCS models. In the following, we present those properties in the empirical analysis that can be related to the mathematical details of those updating terms (Sect. 3.3). The updating terms u μ,t and u λ,t of the DCS-t, DCS-Skew-Gen-t, DCS-EGB2 and DCS-NIG models are presented in Fig. 2a-d, respectively, as functions of t . We evaluate u μ,t and u λ,t by using the ML estimates of the shape parameters, and for λ t we use its unconditional mean estimateω/(1 −β). We also present in Fig. 2e, f the updating terms of the local level μ t and the conditional variance λ t equations for  where d t is the difference between the two log-density functions for day t.
Standard errors are reported in parentheses * and * * * Indicate significance at the 10% and 1% levels, respectively  For the DCS-t and DCS-Skew-Gen-t models, u μ,t undertakes a smooth form of trimming (Fig. 2a). For the greater part of the support of the probability distribution, the DCS-Skew-Gen-t model discounts more observations than the DCS-t model (the only exception is for a small negative interval in the central part of the distribution) (Fig. 2a). Furthermore, for the DCS-t and DCS-Skew-Gen-t models, u λ,t undertakes a smooth form of Winsorizing (Fig. 2b). In the central part of the distribution, observations are discounted in similar ways for the DCS-t and DCS-Skew-Gen-t models (Fig. 2b). In the extreme parts of the distribution, observations are discounted more for the DCS-Skew-Gen-t model than for the DCS-t model (Fig. 2b). All LL-based metrics of Table 2 suggest that the discounting of extreme values for the DCS-Skew-Gen-t model is more effective than the discounting of extreme values for the DCS-t model.
For the DCS-EGB2 and DCS-NIG models, u μ,t undertakes a smooth form of Winsorizing (Fig. 2c), and u λ,t increases linearly as | t | → ∞ (Fig. 2d). We find that, for both u μ,t and u λ,t , observations are discounted more for the DCS-EGB2 model than for the DCS-NIG model (Fig. 2c, d). Moreover, for both the DCS-EGB2 and DCS-NIG models, observations are discounted differently with respect to the left and right tails of the distribution (i.e. observations in the right tail are discounted more than observations in the left tail by both u μ,t and u λ,t ) (Fig. 2c, d). The AIC, BIC and HQC metrics presented in Table 2 suggest that the discounting of extreme values for the DCS-NIG model is more effective than the discounting of extreme values for the DCS-EGB2 model.
With respect to the updating terms of conditional mean μ t and conditional variance λ t for the standard financial time series model, in Fig. 2e, f we present that extreme values in the noise t are transformed according to linear and quadratic functions, respectively, for the empirical GTQ/USD exchange rate dataset. All LL-based metrics of Table 2 suggest that the discounting of extreme values for the DCS models is more effective than the transformation of extreme values for the standard financial time series model.

Stochastic seasonality component
For the GTQ/USD exchange rate, significant stochastic annual seasonality s t estimates are shown in Fig. 3a-d for the DCS-t, DCS-Skew-Gen-t, DCS-EGB2 and DCS-NIG models, respectively. We also present those seasonality s t estimates for the standard financial time series model in Fig. 3e. With respect to the economic significance of seasonality effects, for the highest local maximum and lowest local minimum points of s t , we estimate approximately +2% and −1.5%, respectively, for s t / p t . The amplitude of seasonality is time-varying. However, for the greater part of the sample period, with respect to the local maximum and local minimum values of s t , we estimate at least + 0.8% and − 0.8%, respectively, for s t / p t .
The presence of the annual seasonality component is against the efficiency of the GTQ/USD exchange rate market. The currency market does not eliminate the GTQ/USD seasonality, because the bid and ask exchange rates for clients, that are offered by financial institutions in Guatemala, are such that it is impossible to obtain profits based on the seasonal movements. As an example, we refer to the bid and ask exchange rates offered by Banco Industrial for 12 November 2018. With respect to total assets in 31 December 2017, Banco Industrial is the largest bank in Guatemala (source: Superintendency of Banks, Guatemala). The corresponding bid and ask prices are 7.60 GTQ/USD and 7.80 GTQ/USD, respectively. According to those prices, the bid-ask spread to the mean GTQ/USD ratio is 2.6%, which is higher than the seasonality amplitude that is estimated for any year of the sample period. This example for the relative bid-ask spread is also representative for other Guatemalan financial institutions, for any year of the sample period. The annual seasonality component can be explained by the evolution of agricultural product exports within each year. During the period of December to May, the amount of USD entering Guatemala increases due to coffee, sugar, banana and cardamom exports. Therefore, during the period of December to May, GTQ becomes stronger with respect to USD (Fig. 3). For the period of June to August, the GTQ/USD exchange rate is relatively stable. For the period of September to November, the amount of USD entering Guatemala reduces due to the finish of agricultural product harvests. As a consequence, during the period of September to November, GTQ becomes weaker with respect to USD (Fig. 3).
According to Fig. 3a, b, the seasonality components are very similar for the DCS-t and DCS-Skew-Gen-t models. Moreover, the seasonality components are also very   (Fig. 3). In the remainder of this section, we present several economic reasons for those regimes.
Firstly, in Table 3, we present the evolution of total exports from Guatemala and total imports to Guatemala, for the period of 1993-2016. The growth rate of total exports from Guatemala decreases over time: the mean growth rates of total exports for (R1), (R2) and (R3) are 15.1%, 7.8% and 3.4%, respectively (Table 3). This reduction in the growth rate of total exports suggests a decreasing amplitude of the annual seasonality for periods (R1)-(R3).
Secondly, the relative importance of total exports, with respect to total currency inflows and outflows, decreases for the data window. In Fig. 4, we present the relative importance of the following foreign currency movements for (R1), (R2) and (R3): (1) total exports from Guatemala (Fig. 4a); (2) total imports to Guatemala (Fig. 4b); (3) receipt of loans to Guatemala (Fig. 4c); (4) payment of loans from Guatemala (Fig. 4d); (5) remittance payments to Guatemala (Fig. 4e). For all cases, we compute relative importance with respect to the sum of total inflows and total outflows of foreign currency, and we estimate average relative importance separately for each month. We find that the relative importance of total exports, on average, significantly decreases from (R1) to (R2) and (R3) (Fig. 4a). Furthermore, we also find that the relative importance of loans and remittance payments that do not have a significant seasonality component, on average, significantly increases from (R1) to (R3) (Fig. 4ce). These results also support the reducing amplitude of GTQ/USD seasonality for the data window.
Thirdly, a further explanation for the decreasing amplitude of the annual seasonality component is the reduction of the relative importance of agricultural product exports within total exports. In Table 4, we present the export income from coffee, sugar, banana and cardamom, which, as aforementioned, are the main agricultural export products of Guatemala. The relative importance of these products reduces significantly during the period of 1994-2016.
These results suggest that the stochastic seasonality component of the GTQ/USD currency exchange rate is significant, both from the statistical and economic points of view, for the period of 1994-2008. The results also suggest that the amplitude of this stochastic seasonality component has decreased for the period of 2009-2017, due to the reduced relative importance of agricultural exports of Guatemala.

Conclusions
We have studied the stochastic seasonality of the GTQ/USD currency exchange rate, by using daily exchange rate data for the period of January 1994-June 2017. For this period, when a managed float currency exchange rate regime has been used in Guatemala, reliable GTQ/USD exchange rate data are available from the Bank of Guatemala.
The seasonality analysis of this paper is motivated by the significant agricultural exports of Guatemala, which lead to significant foreign currency inflows after the harvest periods in every year. The seasonality analysis is also motivated by: (1) the relative importance of agricultural exports in Guatemala has decreased during the past decade, while (2) the relative importance of the non-seasonal receipt of loans, payment of loans and remittance payments to Guatemala have increased during the same period. We have found that the stochastic seasonality of the GTQ/USD exchange rate is significant, both statistically and economically. We have explained the changing amplitude for the period of January 1994-June 2017 by the following points: (1) reducing growth rate of total exports; (2) reducing relative importance of total exports, and increasing relative importance of non-seasonal foreign currency movements (i.e. loans and remittance payments); (3) reducing relative importance of agricultural product exports to total exports.
In the in-sample statistical analysis of this paper, we have introduced the DCS-Skew-Gen-t and DCS-NIG models that include stochastic local level, stochastic seasonality, and irregular components with DCS-EGARCH scale dynamics. Those models are alternatives to the DCS-t and DCS-EGB2 models, respectively. We have also compared the statistical performance of the DCS models with the performance of a standard financial time series model that includes GARCH volatility dynamics. We have focused on the in-sample analysis of the GTQ/USD exchange rate and we have not performed out-of-sample analyses, because the models used in the present paper aim to examine particular empirical features of the historical time series of GTQ/USD exchange rates, such as seasonality and different volatility regimes.
The statistical performance of DCS models is related to the score functions that update the local level and log-scale equations. We have presented the properties of the updating terms of all DCS models. We have shown the trimming, Winsorizing or linear transformation of extreme observations for each DCS updating term. As a consequence, DCS models are robust to extreme observations. We have compared the DCS updating terms with the linear and quadratic updating terms of the standard financial time series model. We have shown that the standard model is not robust to extreme observations. We have found that (1) the DCS-Skew-Gen-t model is superior to all alternatives, (2) all DCS models are superior to the standard financial time series model, (3) the DCS-Skew-Gen-t model is superior to the DCS-t model, (4) the DCS-NIG model is superior to the DCS-EGB2 model according to AIC, BIC and HQC, and (5) the LLs of the DCS-NIG and DCS-EGB2 models do not differ significantly.
The new methodologies of the present work involve the stochastic analyses of the level and seasonality components of currency exchange rate, and we also propose the use of a new stochastic seasonality model in currency exchange rate volatility. Those outlier-robust new methods may be applied in future analyses of currency exchange rates by, for example, central bankers, policy makers, international organizations, private firms and financial investors.
Ethical approval Both authors approve that their work complies with the ethical standards of the editorial to which the present paper was submitted.
Informed consent Both authors of this paper agree with the submission of the paper to the Journal of the Spanish Economic Association (SERIEs). All of the data used in this paper were obtained from publicly available sources from the Bank of Guatemala.
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.