Robust time series models with trend and seasonal components

We describe observation driven time series models for Student-t and EGB2 conditional distributions in which the signal is a linear function of past values of the score of the conditional distribution. These specifications produce models that are easy to implement and deal with outliers by what amounts to a soft form of trimming in the case of t and a soft form of Winsorizing in the case of EGB2. We show how a model with trend and seasonal components can be used as the basis for a seasonal adjustment procedure. The methods are illustrated with US and Spanish data.


Introduction
Time series are often subject to observations that, when judged by the Gaussian yardstick, are outliers. This is a very real issue for many economic time series. Agustin Maravall's seasonal adjustment program, TRAMO-SEATS, which he developed jointly with Victor Gomez, tackles the problem by identifying outliers and, where appropriate, replacing them by dummy variables. Here we take a different approach in which we employ a new class of robust models where the dynamics of the level, or location, are driven by the score of the conditional distribution of the observations. These called dynamic conditional score (DCS) models have recently been developed by Creal et al. (2011Creal et al. ( , 2013 and Harvey (2013). They are relatively easy to implement and their form facilitates the development of a comprehensive and relatively straightforward theory for the asymptotic distribution of the maximum likelihood estimator.
The changing level of a Gaussian time series is usually obtained from an ARIMA process or explicitly modeled as an unobserved component. The statistical treatment of linear Gaussian unobserved components models is straightforward, with the Kalman filter playing a key role. Additive outliers may be captured by dummy variables. A different way forward is to let the noise have a Student t-distribution, thereby accommodating the outliers. However, the treatment of such a model requires computationally intensive procedures, as described in Durbin and Koopman (2012). The DCS-t model proposed by Harvey and Luati (2014) provides an alternative approach which is observation-driven in that the conditional distribution of the observations is specified. A model of this kind may be compared and contrasted with the methods in the robustness literature; see Maronna, Martin and Yohai (2006, ch 8) and McDonald and Newey (1988), where a parametric approach is called 'partially adaptive'. Robust procedures for guarding against additive outliers typically respond to large observations in one of two ways: either the response function converges to a positive (negative) constant for observations tending to plus (or minus) infinity or it goes to zero. These two procedures are usually classified as Winsorizing or as trimming. The score for a t-distribution converges to zero and so can be regarded as a parametric form of trimming. Similarly a parametric form of Winsorizing is given by the exponential generalized beta distribution of the second kind (EGB2) distribution. The article by Caivano and Harvey (2014) sets out the theory for the DCS location model with an EGB2 distribution and illustrates its practical value.
The article is organized as follows. Section 2 reviews the idea behind the DCS location model and expands on the reason for using the conditional score. The various classifications of distributions in terms of their tails are then set out and this is followed by a discussion of the score as it relates to location and scale and the link with robust estimation. This material leads on to the contrast between the DCS t and EGB2 models in Sect. 3. Section 4 compares the fit of EGB2 and t-distributions for two US macroeconomic time series. A comparison between the way in which Gaussian and DCS models adapt to structural breaks is made in Sect. 5. This issue is important, because it may be thought that the price paid by DCS models for their robustness is a slow response to structural breaks.
DCS models with trend and seasonal components are described in Sect. 6. These models can be regarded as robust counterparts to the unobserved components 'basic structural model' (BSM). Seasonal adjustment can be carried out with the BSM by extracting smoothed components using the standard Kalman filter and smoother. Because DCS models only give filtered components, it is necessary to devise a method for smoothing. In Sect. 7 we apply this method to a monthly series of tourists arriving in Spain and compare the extracted trend and seasonal components with those obtained by fitting a BSM with the outliers handled by dummy variables.

Filters, heavy tails and robust estimation
The first sub-section below sets out a simple unobserved components model and shows how the innovations form of the Kalman filter may be adapted to form a DCS model. The second sub-section provides a rationale for the use of the conditional score. The way in which tails of distributions may be classified is reviewed in the third subsection and in the fourth, tail behaviour is related to the considerations of robustness. The treatment of these topics is more general and integrated than in Harvey (2013).

Unobserved components and filters
A simple Gaussian signal plus noise model is where the irregular and level disturbances, ε t and η t respectively, are mutually independent and the notation N I D 0, σ 2 denotes normally and independently distributed with mean zero and variance σ 2 . The autoregressive parameter is φ, while the signalnoise ratio, q = σ 2 η /σ 2 ε , plays the key role in determining how observations should be weighted for prediction and signal extraction. The reduced form (RF) of (1) is an ARMA(1,1) process but with restrictions on θ. For example, when φ = 1, 0 ≤ θ ≤ 1. The UC model in (1) is effectively in state space form and, as such, it may be handled by the Kalman filter (KF); see Harvey (1989). The parameters φ and q may be estimated by maximum likelihood (ML), with the likelihood function constructed from the onestep ahead prediction errors. The KF can be expressed as a single equation which combines μ t|t−1 , the optimal estimator of μ t based on information at time t − 1, with y t in order to produce the best estimator of μ t+1 . Writing this equation together with an equation that defines the one-step ahead prediction error, v t , gives the innovations form of the KF: The Kalman gain, k t , depends on φ and q. In the steady-state, k t is constant. Setting it equal to κ in (3) and re-arranging gives the ARMA model (2) with ξ t = v t and φ − κ = θ. When the noise in (1) comes from a heavy-tailed distribution such as Student's t it can give rise to observations which, when judged against the yardstick of a Gaussian distribution, are additive outliers. As a result fitting a Gaussian model is inefficient and may even yield estimators which are inconsistent. Simulation methods, such as Markov chain Monte Carlo (MCMC) and particle filtering, provide the basis for a direct attack on such non-Gaussian models; see Durbin and Koopman (2012). However, simulationbased estimation can be time-consuming and subject to a degree of uncertainty. In addition the statistical properties of the estimators are not easy to establish.
The DCS approach begins by writing down f t (y t ), the distribution of the t-th observation conditional on past observations. The time-varying parameter is then updated by a suitably defined filter. Such a model is said to be observation driven. In a linear Gaussian UC model, the KF depends on the one step-ahead prediction error. The main ingredient in the DCS filter for non-Gaussian distributions is the replacement of v t in the KF equation by a variable, u t , that is proportional to the score of the conditional distribution; compare Maronna, Martin and Yohai (2006, p. 272-4) and the references therein. Thus the second equation in (3) becomes where u t = ∂ ln f t (y t )/∂μ t|t−1 and κ is treated as an unknown parameter. This filter could be regarded as an approximation to the computer intensive solution for the parameter driven unobserved components model. The attraction of regarding it as a model in its own right is that it becomes possible to derive the asymptotic distribution of the maximum likelihood estimator and generalize in various directions.

Why the Score?
Suppose that at time t − 1 we have θ t−1 the ML estimate of a parameter, θ. Then the score is zero, that is where j (θ ; y j ) = f (y j ; θ). When a new observation becomes available, a single iteration of the method of scoring gives where I t ( θ t−1 ) = t.I ( θ t−1 ) is the information matrix for t observations and the last expression follows because of (5). For a Gaussian distribution a single update goes straight to the ML estimate at time t (recursive least squares).
Remark 1 We may sometimes be able to choose a link function so that the information quantity does not depend on θ.
As t → ∞, I t ( θ t−1 ) → ∞ so the recursion becomes closed to new information. If it is thought that θ changes over time, the filter needs to be opened up. This may be done by replacing 1/t by a constant, which may be denoted as κ. Thus With no information about how θ might evolve, the above equation might be converted to the predictive form by letting θ t+1|t = θ t . Thus For a Gaussian distribution in which θ is the mean and the variance is known to be σ 2 , and (6) is an exponentially weighted moving average (EWMA). If there is reason to think that the parameter tends to revert to an underlying level, ω, the updating scheme might become where |φ| < 1. This scheme corresponds to a first-order autoregressive process. More generally we might introduce lags so as to smooth out the changes or allow for periodic effects.

Heavy tails
The Gaussian distribution has kurtosis of three and a distribution is said to exhibit excess kurtosis, or to be leptokurtic, if its kurtosis is greater than three. Although some researchers take excess kurtosis as defining heavy tails, it is not, in itself, an ideal measure, particularly for asymmetric distributions. Most classifications in the insurance and finance literature begin with the behaviour of the upper tail for a nonnegative variable, or one that is only defined above a minimum value; see Embrechts et al. (1997). The two which are relevant here are as follows.
A distribution is said to be heavy-tailed if where F(y) = Pr(Y > y) = 1 − F(y) is the survival function. When y has an exponential distribution, F(y) = exp(−y/α), so exp(y/α)F(y) = 1 for all y. Thus the exponential distribution is not heavy-tailed. A distribution is said to be fat-tailed if, for a fixed positive value of η, where c is a non-negative constant and L(y) is slowly varying, 1 that is The parameter η is the tail index. The implied PDF is a power law PDF where If a distribution is fat-tailed then it must be heavy-tailed, but the converse is not true; see Embrechts, Kluppelberg and Mikosch (1997, p. 41-2). The above criteria are related to the behavior of the conditional score and whether or not it discounts large observations. This, in turn, connects to robustness, as shown in the sub-section following. More specifically, consider a power law PDF, (9), with y divided by a scale parameter, ϕ, so that F(y/ϕ) = cL(y/ϕ)(y/ϕ) −η and f (y) ∼ cL(y)ϕ −1 η(y/ϕ) −η−1 . Then and so the score is bounded. With the exponential link function, ϕ = exp (λ), The logarithm of a variable with a fat-tailed distribution has exponential tails. Let x denote a variable with a fat-tailed distribution in which the scale is written as ϕ = exp(μ) and let y = ln x. Then for large y Thus y is not heavy-tailed, but it may exhibit excess kurtosis. The score with respect to location, μ, is the same as the original score with respect to the logarithm of scale and so tends to η as y → ∞.

Robust estimation
The location-dispersion model is where ε t is a standardized variable with PDF denoted exp ρ(ε t ) and the scale, ϕ, is called the dispersion for y t ; see Maronna, Martin and Yohai (2006, p. 37-8). The density for y t is where ξ denotes one or more shape parameters, and the scores for μ and ϕ are given When the scale is parameterized with an exponential link function, ϕ = exp λ, the score is If y t = ln x t , where x t = ϕε t as in (11) and then the logarithm of the scale parameter for x t , that is ln ϕ, becomes the location for y t . Hence ψ L (y t ) = ψ S (x t ).
The ML estimators are asymptotically efficient, assuming certain regularity conditions hold. More generally ρ(.) may be any function deemed to yield estimators with good statistical properties. In particular, the estimators should be robust to observations which would be considered to be outliers for a normal distribution. When normality is assumed, the ML estimators of the mean and variance are just the corresponding sample moments, but these can be subject to considerable distortion when outliers are present. Robust estimators, on the other hand, are resistant to outliers while retaining relatively high efficiency when the data are from a normal distribution.
The M-estimator, which features prominently in the robustness literature, has a Gaussian response until a certain threshold, K , whereupon it is constant; see Maronna, Martin and Yohai (2006, p. 25-31). This is known as Winsorizing as opposed to trimming, where observations greater than K in absolute value are given a weight of zero. 2

DCS location models
The stationary first-order DCS model corresponds to the Gaussian innovations form, (3), and is where ω = δ/(1 − φ) is the unconditional mean of μ t|t−1 , ε t is a serially independent variate with unit scale 3 and u t is proportional to the conditional score, that is More generally, an ARMA-type model of order ( p, r ) is In the Gaussian case u t = y t −μ t|t−1 and if q is defined as max( p, r +1), then y t is an Nonstationary ARIMA-type models may also be constructed as may structural times series models with trend and seasonal components. Explanatory variables can be introduced into DCS models, as described in Harvey and Luati (2014). Maronna, Martin and Yohai (2006, Sect 8.6 and 8.8) give a robust algorithm for AR and ARMA models with additive outliers. For a first-order model their filter is essentially the same as (13) except that their dynamic equation is driven by a robust ψ − f unction and they regard the model as an approximation to a UC model. 4

Student t model
The Student t ν distribution has fat tails for finite degrees of freedom, ν, with the tail index given by ν. Moments exist only up to and including ν − 1. The excess kurtosis, that is the amount by which the normal distribution's kurtosis of three is exceeded, is 6/(ν − 4), provided that ν > 4.
When the location changes over time, it may be captured by a model in which, conditional on past observations, y t has a t ν -distribution with μ t|t−1 generated by a linear function of 3 The standard deviation is √ ν/(ν − 2) times the scale.
where v t = y t −μ t|t−1 is the prediction error. Differentiating the log-density shows that u t is proportional to the conditional score, ∂ ln f t /∂μ t|t−1 = (ν + 1)ν −1 exp(−2λ)u t . For low degrees of freedom, the score function is such that observations that would be seen as outliers for a Gaussian distribution are far less influential. As |y| → ∞, the response tends to zero. Redescending M-estimators, which feature in the robustness literature, have the same property. For example, Tukey's biweight function is ψ(z) = [1 − (x/4.685) 2 ] 2 + z, where [ ] + denotes the positive part of the term in [ ]. This function implements 'soft trimming', as opposed to metric trimming, where ψ(z) = z for |z| ≤ K and is zero thereafter. The t score function is even softer.
The variable u t can be written is distributed as beta(1/2, ν/2); see Harvey (2013, Chap. 3). Because the u t s are I I D(0, σ 2 u ), μ t|t−1 is weakly and strictly stationary so long as |φ| < 1. Although determining the statistical properties of μ t|t−1 requires assuming that it started in the infinite past, the filter needs to be initialized in practice and this may be done by setting μ 1|0 = ω.
All moments of u t exist and the existence of moments of y t is not affected by the dynamics. The autocorrelations can be found from the infinite MA representation; the patterns are as they would be for a Gaussian model.
Maximum likelihood estimation is straightforward and for a first-order dynamic equation, as in (13), an analytic expression for the information matrix is available.
There are a number of ways in which skewness may be introduced into a tdistribution. One possibility is the method proposed by Fernandez and Steel (1998). There is a minor technical issue in that the score is not differentiable at the mode but as, Zhu and Galbraith (2011) show, the asymptotic theory for the ML estimator still goes through in the usual way. The asymptotic theory for the DCS skew-t location model also goes through; see Harvey (2013, Sect 3.11).

Exponential generalized beta distribution model
The exponential generalized beta distribution of the second kind (EGB2) is obtained by taking the logarithm of a variable with a generalized beta distribution of the second kind (GB2) distribution. What was the logarithm of scale in GB2 now becomes location in EGB. A reparameterization in terms of the standard deviation, σ, gives the PDF as where ξ and ς are shape parameters which determine skewness and kurtosis and h = √ ψ (ξ ) + ψ (ς ) . The EGB2 distribution has exponential tails and all moments exist. When ξ = ς , the distribution is symmetric; for ξ = ς = 1 it is a logistic distribution and when ξ = ς → ∞ it tends to a normal distribution. When ξ = ς = 0 the distribution is double exponential or Laplace. The distribution is positively (negatively) skewed when ξ > ς (ξ < ς) and its kurtosis decreases as ξ and ς increase. Skewness ranges between −2 and 2 and kurtosis lies between 3 and 9. There is excess kurtosis for finite ξ and/or ς. The EGB2 distribution is more peaked than a t with the same kurtosis, but as kurtosis increases, the differences between the peaks become more marked.
Multiplying the score function with respect to location by the variance gives Because 0 ≤ b t (ξ, ς ) ≤ 1, it follows that as y → ∞, the score approaches an upper bound of σ √ 2, whereas y → −∞ gives a lower bound of −σ √ 2. As ς = ξ → ∞, the distribution becomes normal with u t y t − μ t t−1 . Figure 1 shows the score functions for EGB2 and t distributions with a standard deviation of one and an excess kurtosis of two. The shape parameters for the two distributions are ξ = 0.5 and ν = 7. As can be seen, the score for the t-distribution is redescending, reflecting the fact that it has fat tails, whereas the EGB2 score is bounded.

Macroeconomic time series
Dynamic location models were fitted to the growth rate of US GDP and industrial production using EGB2, Student's t and normal distributions. GDP is quarterly, ranging from 1947q1 to 2012q4. Industrial production data are monthly and range from January 1960 to February 2013. All data are seasonally adjusted and taken from the Federal Reserve Economic Data (FRED) database of the Federal Reserve of St. Louis. When first-order Gaussian models are fitted, there is little indication of residual serial correlation. There is excess kurtosis in all cases, but no evidence of asymmetry. For example, with GDP the Bowman-Shenton statistic is 30.04, which is clearly significant because the distribution under the null hypothesis of Gaussianity is χ 2 2 . The non-normality clearly comes from excess kurtosis, which is 1.9, rather than from skewness, which is only 0.18 (with a p value of 0.24). Comparing the residuals with a fitted normal shows them to have a higher peak at the mean, as well as heavier tails; see Fig. 2.
Tables 1 and 2 report the estimation results and Table 3 compares goodness of fit. The Student-t model and the EGB2 outperform the Gaussian model with the shape parameter, ν or ξ, confirming the excess kurtosis. The λ parameter is the logarithm of scale, ν, but the estimates of σ are shown because these are comparable across different distributions. For GDP the EGB2 models gives a slightly better fit, whereas the t-distribution is better for industrial production. However, the differences between the two are small compared with the Gaussian model.

Structural breaks
It might be thought that the EGB2 and t filters will be less responsive to a permanent change in the level than the linear Gaussian filter. However, for moderate size shifts, the score functions in Fig. 1 suggest that this might not be the case, because only for large observations is the Gaussian response bigger than the response of the robust filters. For example, for the logistic (EGB2 with unit shape parameters), the score is only smaller than the observation (and hence the linear filter) when it is more than (approximately) 1.6 standard deviations from the mean. The behaviour of the t-filter is similar. In order to investigate the issue of adapting to a permanent change in level, an upward shift was added to the US industrial production data at the beginning of 2010. The size of the shift was calibrated so as to be proportional to the sample standard deviation of the series. The results are shown in the Figs. 3 and 4. For a one standard deviation shift the paths of all three filters after the break are similar. For two standard deviations the Gaussian filter adapts more quickly, but it is still well below the new level initially and after 9 or 10 months it is virtually indistinguishable from the other two filters.

Trend and seasonality
The simplest nonstationary unobserved components model is the Gaussian local level model, that is a random walk plus noise. In this case the Kalman filter is an exponentially weighted moving average (EWMA) of past observations. For the DCS-t filter and the initial value, μ 1|0 ,is treated as an unknown parameter that needs to estimated along with κ and ν. Since u t = (1 − b t )(y t − μ t|t−1 ), re-arranging the dynamic equation gives which can be regarded as an EWMA modified to deal with outliers: when y 2 t is large, b t is close to one. Generalizing the above model to include a slope and seasonals provides the basis for a robust treatment of seasonal adjustment.

Basic structural model
Stochastic trend and seasonal components may be introduced into Gaussian unobserved components models for location. These models, called structural time series models, are implemented in the STAMP package of Koopman et al. (2009). The BSM is made up of mutually independent trend, seasonal and irregular components. Thus where μ t is a local linear trend with a stochastic level and slope and γ t is a stochastic seasonal. The trend is where ζ t and η t are independent of each other and of ε t . The random walk plus noise or local level model is a special case. As regards the seasonal component, let γ jt denote the effect of season j at time t and define γ t = (γ 1t , ..., γ st ) . The full set of seasonals evolves as a multivariate random walk Although all s seasonal components are continually changing, only one affects the observations at any particular time, that is γ t = γ jt when season j is prevailing at time t. The requirement that the seasonal components always sum to zero is enforced by the restriction that the disturbances sum to zero at each t. This restriction is implemented by the correlation structure of ω t , where V ar i ω t = 0, coupled with initial conditions constraining the seasonals to sum to zero at t = 0.
The multiplicative seasonal ARIMA model known as the 'airline model' is Box and Jenkins (1976, pp. 305-6) gave a rationale for this model in terms of EWMAs at monthly and yearly intervals. The reduced form of the BSM is s y t ∼ M A (s + 1). Maravall (1985), compared the autocorrelation functions of s y t for the BSM and airline model for some typical values of the parameters and finds them to be quite similar, particularly when the seasonal MA parameter, , is close to minus one. In the limiting case when is equal to minus one, the airline model is equivalent to a BSM with σ 2 ζ = σ 2 ω = 0.

Stochastic trend and seasonal in the DCS model
The DCS model for trends and seasonals, has a structure which is similar to that of the innovations form of the Kalman filter for the BSM. The filter for the trend is An integrated random walk (IRW) trend in the UC local linear trend model implies the constraint κ 2 = κ 2 1 /(2 − κ 1 ), 0 < κ 1 < 1, which may be found from Harvey (1989, p. 177). The restriction can be imposed on the DCS-t model by treating κ 1 = κ as the unknown parameter, but without unity imposed as an upper bound. The filter for the seasonal is where the s × 1 vector z t picks out the current season from the vector γ t|t−1 . If κ jt , j = 1, .., s, denotes the jth element of κ t , then in season j we set κ jt = κ s , where κ s is a non-negative unknown parameter, whereas κ it = −κ s /(s − 1), i = j, i = 1, .., s. The amounts by which the seasonal effects change therefore sum to zero. The initial conditions at time t = 0 are estimated by treating them as parameters.
The above filter may be regarded as a robust version of the well-known Holt-Winters filter; see Harvey (1989, p. 31). However, it differs from Holt-Winters in the Gaussian case by enforcing the restriction that the seasonals sum to zero. This is an important advantage.

Seasonal adjustment
In contrast to the Gaussian BSM, the DCS model has no exact solution for smoothing. Some possibilities are suggested in Harvey (2013, Sect 3.7), but these are difficult to generalize beyond the local level model. The best way to employ the DCS model for seasonal adjustment is to use it to mitigate the effects of outliers by modifying them rather than eliminating them by dummy variables. A dummy variable effectively means that the corresponding observation is treated as though it were missing; in other words it corresponds to hard trimming.
We first fit the DCS model and use it to construct pseudo-observations from the signal, that is μ s t|t−1 = μ t|t−1 + γ t|t−1 . Thus For the DCS-t model we can write where b t is as in (16) with μ t|t−1 replaced by μ s t|t−1 . In the EGB2, we work directly with (18).
The pseudo-observations are now used to estimate the parameters in a BSM and the signal is estimated by smoothing. This new signal, denoted μ s t|T , is then used to construct new pseudo-observations as for the t-distribution and by for the EGB2. The BSM may be re-estimated and the whole process iterated until convergence. If desired, λ and σ can be updated at each step using the sample variance of the u t s. The relationship between variance of the u t s and λ for the t-distribution is given in Harvey (2013, p. 62). For the EGB2 (with ξ = ς) it follows from Caivano and Harvey (2014) that σ 2 u = σ 2 h 2 ξ 2 /(2ξ + 1). The seasonally adjusted observations are constructed as where v t|T = y t − μ s t|T . If it is felt that the outliers should be modified to make them less extreme, we could let y s t = μ t|T + u t|T . The above procedure could be implemented with TRAMO-SEATS rather than the unobserved components BSM.

Tourists in Spain
The logarithm of the number of tourists entering Spain from January 2000 to April 2014 (source: Frontur) is plotted in Fig. 5. Comparing a Gaussian unobserved components model with dummy variables with a DCS-t model provides a contrast between hard and soft trimming.
Fitting a BSM gives a Bowman-Shenton statistic of 19.29 for the residuals so normality is clearly rejected. (The 1 % critical value for a χ 2 2 is 9.21.) The automatic outlier detection option in STAMP finds five outliers, three of which are in 20012, along with a small structural break which, although not sudden, is attributed to April 2008. The corresponding (edited) output is shown below. Fitting a BSM with dummy variables included for the outliers and break gives the smoothed components shown in Fig. 5  The figures in parentheses are numerical standard errors and the initial value for the last seasonal factor is γ 0,12 = 0.018 which is constructed by from the others and thus has no standard error.
The filtered DCS-t trend shown in Fig. 6 appears not to be affected by the outliers, which are downweighted, and the trend, shown in the two top panels, adjusts to the fall in 2008 as quickly as the Gaussian filter from the outlier-adjusted BSM which is fitted with a dummy for a break in 2008(4). The figure also shows the seasonal component and contrasts the prediction errors (irregular component) and scores; it is evident that extreme observations are downweighted by the score. The autocorrelation functions  Fig. 7. The autocorrelations of the scores tend to be slightly bigger in absolute value, reflecting the fact that they are not weakened by outliers in the same way as the raw predictions errors. Figure 8 shows the filtered trend together with the smoothed trends for the first three iterations, obtained as described in Sect. 6.3. The trend at the second iteration is almost indistinguishable from the one obtained at the third. The above procedure was repeated, but using TRAMO-SEATS to obtain a smoothed estimate of the trend from the DCS pseudo-observations. The result is shown in Fig. 9, together with the smoothed trend obtained from the full (automatic) TRAMO-SEATS procedure As can be seen, the two trends are very close. Figure 10 shows the corresponding smoothed irregular components. We also fitted an EGB2 model, but the fit was not as good as for the DCS-t model. Generally the results were similar except that the seasonal pattern for EGB2 was found to be deterministic. The ML estimates for the asymmetric model were: The two shape parameters are very close and there is virtually no loss in imposing symmetry, that is ξ = ς.

Conclusions
This article has shown how DCS models with changing location and/or scale can be successfully extended to cover EGB2 conditional distributions. Most of the theoretical results on the properties of DCS-t models, including the asymptotic distribution of ML estimators, carry over to EGB2 models. However, whereas the t-distribution has fattails, and hence subjects extreme observations to a form of soft trimming, the EGB2 distribution has light tails ( but excess kurtosis) and hence gives a gentle form of Winsorizing. The examples show that the EGB2 distribution can give a better fit to some macroeconomic series. The way in which DCS models respond to breaks was examined and it was shown that, contrary to what might be expected, they adjust almost as rapidly as Gaussian models.
A seasonal adjustment procedure may be carried out with DCS models that include both trend and seasonal components. Having fitted the DCS model, the scores are used to adjust the data before smoothing using a standard Gaussian model. Two or three iterations seem to be sufficient. The method was illustrated with data on tourists in Spain. There is a case for a structural break in April, 2008, but the DCS model quickly adjusts to it and indeed it could be reasonably argued that it is better to let the change take place over several months rather than assigning it to just one. In summary, our new DCS procedure, like TRAMO-SEATS, provides a practical approach to seasonal adjustment in the presence of outliers.