gsFit: Estimation of ARMA-GARCH/APARCH models

Description Usage Arguments Details Value Enhances Author(s) References See Also Examples

Description

This function uses Maximum Likelihood technique to estimate the parameters of ARMA-GARCH or ARMA-APARCH model with several conditional distributions. The user can also enforce stationarity during estimation

Usage

1
2
3
4
5
gsFit(formula = ~garch(1, 1), data, cond.dist = c("stableS0", "stableS1", 
"stableS2", "gev", "gat", "norm", "std", "sstd", "skstd", "ged"), 
include.mean = TRUE, algorithm = c("sqp", "sqp.restriction", 
"nlminb", "nlminb+nm"), control = NULL, 
tolerance = NULL, title = NULL, description = NULL)

Arguments

formula

a formula object specifying mean and variance equation. The mean equation should be specified using the names: "arma"", "garch"" or "aparch". For example: ~arma(1,0)-garch(1,0) for AR(1)-ARCH(1), or ~arma(0,1)-garch(2,2) for MA(1)-GARCH(2,2).

data

a numeric vector containing the data of the time series to be estimated.

cond.dist

a character string naming the conditional distribution of innovations. The package was created to accept the following distributions: "stableS0" (stable in S0-parameterization), "stableS1" (stable in S1-parameterization), "stableS2" (stable in S2-parameterization), "gev", "gat" and "skstd" (skew Student's t from Fernandez and Steel (1998)). Other common conditional distribution (normal, Student's t, "sstd" (skew Student's t from fGarch package) and GED) are also allowed since they are very important for testing purposes.

include.mean

This is a boolean variable. It intercept is TRUE than we estimate the model with intercept.

algorithm

The algorithm to be used to search for the optimum value. The current version of the GEVStableGarch package implements four different optimization procedures, namely the "sqp", "sqp.restriction" (enforce stationarity) , "nlminb" and "nlminb+nm". See the details section for more information about the estimation algorithms.

control

Control parameters passed to the optimization routine. For the "sqp" and
"sqp.restriction" algorithms the control parameters are passed to the solnp function from Rsolnp package. For the other algorithms ("nlminb" and
"nlminb+nm") the control parameters are passed to the nlminb function from stats package.

tolerance

Tolerance for parameter estimation. When specified, the tolerance parameter should be passed as a list in the following format
list( TOLG = 1e-8, TOLSTABLE = 1e-2, TOLSTATIONARITY = 1e-3 ), where TOLG is the tolerance used to set the boundary region of the model parameters, TOLSTABLE is the boundary of parameters for stable distribution and
TOLSTATIONARITY is the tolerance parameter used by the "sqp.restriction" algorithm when searching for the stationary solution (see the details).

title

a string with the title.

description

a string with a description.

Details

The starting values of the model parameters are key in getting any possible convergence and they were chosen to reflect this. For example, the GEV shape starting value was chosen to be 0 since in this case the support of the distribution with zero location and unit scale will encompasses both positive and negative parts of the real line (the support is at (-,+)).

The parameters will be interpreted according to the following equations (see Wurtz et al. ,2009)

X_t = μ + ∑_{i=1}^m a_i X_{t-i} + ∑_{j=1}^n b_j \varepsilon_{t-j} + \varepsilon_t

\varepsilon_t = σ_t z_t,\;\;\;z_t \stackrel{iid}{\sim} D(0,1)\;,\\

σ_t^δ = ω + ∑_{i=1}^p α_i(\varepsilon_{t-i}-γ_i|\varepsilon_{t-i}|)^δ + ∑_{j=1}^q β_j σ_{t-j}^δ

where \mathcal{D}_{\vartheta}(0,1) is the density of the innovations with zero location and unit scale and \vartheta are additional distributional parameters that describe the skew and the shape of the distribution.

Etimation Algorithms

Most software packages implement the estimation of GARCH models without imposing stationarity, but restricting the parameter set by appropriate bounds. This last approach was implemented in the GEVStableGarch package through the following algorithms: "sqp", "nlminb" and "nlminb + nm". The first two algorithms search for the optimum value by restricting the parameter set to appropriate lower and upper bounds. The last implements a two step optimization procedure, which consists in starting the search by using the constrained routine nlminb and then performing another search using an unconstrained method (in our case the Nelder-Mead method implemented in the R base function optim). This approach was suggested by Wuertz et al. (2009) since in many cases it leads to an improved solution (in terms of the likelihood function of the data).

Finally, the "sqp.restriction" algorithm performs a constrained search to maximize the log-likelihood function in order to obtain an stationary model. It can be used to estimate models with the following conditional distributions: "stableS1", "gev", "gat", "skstd", "norm", "std" and "ged".

Stationarity Solutions

Since we want to estimate the parameters that better adjust real data to ARMA-APARCH models, the notion of stationarity is crucial. Usually, even when the data set is non-stationary in appearance, we still are able to apply transformation techniques so that the resulting time series can be reasonably modeled as a stationary process (see Brockwell and Davis (1996)).

The APARCH(p,q) model with finite variance innovations has a unique δ-order stationary solution if and only if (see Ling and McAller (2002))

∑_{i=1}^p E(|Z| - γ_i Z)^δ α_i +∑_{j=1}^qβ_j < 1,

The case of infinite variance has a somewhat different historical background. The first assumption made on stable distributions is that the index of stability α must be greater than one, because in this case the innovations have finite first moment. The second assumption is that they must have a δ-moment finite, which means that we must restrict our model to 1 < δ < α.

Diongue et al. (2008) showed that the APARCH(p,q) (all coefficients γ_i = 0) model has a strictly stationary solution if and only if

∑_{i=1}^p E(|Z| - γ_i Z)^δα_i +∑_{j=1}^qβ_j < 1,

where Z has distribution S(α,β;1) (stable in 1-parameterization). The estimation of stationary models is mainly dependent on the time taken to evaluate the expression for the asymmetric stable distribution E(|Z| - γ_i Z)^δ.

The moment expression used to verify the stationarity condition is given by

E(|Z| - γ Z)^δ = \frac{ (1 - γ )^δ\tilde{σ}^{δ+1}Γ(δ+1)Γ(-\frac{δ}{α}) } { α\tilde{σ}Γ\bigg[ \bigg(\frac{1}{2}+\tilde{β}\frac{k(α)}{2α}\bigg)(-δ)\bigg] Γ\bigg[ \frac{1}{2}- \tilde{β}\frac{k(α)}{2α} + \bigg(\frac{1}{2} + \tilde{β}\frac{k(α)}{2α}\bigg)(δ+1)\bigg] }

+ \frac{ (1 + γ )^δ\tilde{σ}^{δ+1}Γ(δ+1)Γ(-\frac{δ}{α}) } { α\tilde{σ}Γ\bigg[ \bigg(\frac{1}{2}-\tilde{β}\frac{k(α)}{2α}\bigg)(-δ)\bigg] Γ\bigg[ \frac{1}{2} + \tilde{β}\frac{k(α)}{2α} + \bigg(\frac{1}{2} - \tilde{β}\frac{k(α)}{2α}\bigg)(δ+1)\bigg] },

where

\tilde{σ} = \bigg[1 + β^2 \tan^2(\frac{απ}{2})\bigg]^{\frac{1}{2α}},

k(α) = ≤ft\{ \begin{array}{rl} α & , α < 1, \\ α-2 & , α > 1, \end{array} \right.

and

\tilde{β} = ≤ft\{ \begin{array}{rl} \frac{2}{πα}\arctan(β\tan(\frac{απ}{2})) & , 0 < α < 1, \\ \frac{2}{π(α-2)}\arctan(β\tan(\frac{π(α-2)}{2})) & , 1 < α < 2. \end{array} \right.

Notice that this expression is only valid for the stable distribution in 1-parameterization, and thus cannot be used to the estimate models with stable distribution in 0 or 2 parameterizations.

The stationarity restriction implemented inside GEVStableGarch package imposes the follow restriction

∑_{i=1}^p E(|Z| - γ_i Z)^δα_i +∑_{j=1}^qβ_j < 1 - TOL.STATIONARITY,

where the variable TOL.STATIONARITY is set to 0.001 by default. For numerical reasons, the value of this variable cannot be greater than 0.05.

Value

gsFit
returns a S4 object of class "GEVSTABLEGARCH" with the following slots:

@call

the call of the gsFit function.

@formula

a list with two formula entries, one for the mean and the other one for the variance equation.

@method

a string denoting the optimization method.

@data

a numeric vector containing the data of the estimated time sereis.

@fit

a list with the results from the parameter estimation:
par - the estimated parameters;
llh - the estimated negative log-likelihood function;
hessian - the hessian matrix returned by the optimization algorithm;
ics - the value of the goodness-of-fit measures (AIC, AICc and BIC) (See Brockwell and Davis, 2002 for more details);
order - a list with the ARMA and GARCH/APARCH orders;
cond.dis - the conditional distribution;
se.coef - standard errors of the estimated parameters;
tValue - tValue of the estimated parameters;
matcoef - an organized matrix with the estimated parameters.

@residuals

a numeric vector with the residual values (\varepsilon_t).

@h.t

a numeric vector with the conditional variance (h_t = σ_t^δ).

@sigma.t

a numeric vector with the conditional standard deviation (σ_t).

@title

a string with the title.

@description

a string with a description.

The entries of the @fit slot show the results from the optimization.

Enhances

The estimation of ARMA-GARCH/APARCH models with conditional stable distribution is mainly dependent on the time taken during the calculation of density points. Although the package can be used with the R stabledist package, the estimation of such models is only feasible if we use the fast implementation of stable densities using the R stable package designed by J.P.Nolan (see http://academic2.american.edu/~jpnolan/stable/stable.html).

The stable package implements a faster computation of stable densities that are accurately enough to perform numerical optimization and is available at http://www.robustanalysis.com.

Author(s)

Thiago do Rego Sousa, Cira Etheowalda Guevara Otiniano and Silvia Regina Costa Lopes

References

Brockwell, P.J., Davis, R.A. (1996). Introduction to Time Series and Forecasting. Springer, New York.

Fernandez, C., Steel, M.F. (1998). On Bayesian Modeling of Fat Tails and Skewness. Journal of the American Statistical Association, Taylor & Francis Group, 93(441), 359–371.

Ling, S., McAller, M. (2002). Necessary and Suficient Moment Conditions for the GARCH(r,s) and Asymmetric Power GARCH(r,s) Models. Econometric Theory, 18(03), 722–729.

Mittnik, S., Paolella, M.S., Rachev, S.T. (2002). Stationarity of stable power-GARCH processes. Journal of Econometrics 106, 97–107.

Nolan, J.P. (1997). Numerical calculations of stable densities and distribution functions. Communications in Statistics - Stochastic Models 13, 759–774.

Nolan, J.P. (1997). Maximum likelihood estimation and diagnostics for stable distribution. In O. E.Barndorff-Nielsen, T. Mikosch, e S. I. Resnick (Eds.), Levy Processes: Theory andApplications, Boston, Birkhauser, 379–400.

Wuertz, D., Chalabi, Y., with contribution from Miklovic, M., Boudt, C., Chausse, P., and others (2013). fGarch: Rmetrics - Autoregressive Conditional Heteroskedastic Modelling, R package version 3010.82, http://CRAN.R-project.org/package=fGarch.

Wuertz, D., Chalabi, Y., Luksan, L. (2009). Parameter Estimation of ARMA Models with GARCH/ APARCH Errors: An R and SPlus SoftwareImplementation. Journal of Statistical Software, forthcoming, http://www-stat.wharton.upenn.edu/~steele/...WurtzEtAlGarch.pdf.

Zhao, X., Scarrott, C.J., Oxley, L., Reale, M. (2011). GARCH dependence in extreme value models with Bayesian inference. Mathematics an Computers in Simulation, 81, Issue 7, 1430–1440.

Yinyu, Ye. (1987). Interior Algorithms for Linear, Quadratic, and Linearly Constrained Non-Linear Programming. Ph.D. Thesis, Department of EES, Stanford University.

See Also

gsSelect

Examples

1
2
3
4
5
# This examples uses the dem2gbp dataset to estimate
# an ARMA(1,1)-GARCH(1,1) with GEV conditional distribution.
data(dem2gbp)
x = dem2gbp[, 1]
gev.model = gsFit(data = x , formula = ~garch(1,1), cond.dist = "gev")

Example output

Loading required package: Rsolnp
Loading required package: skewt

Iter: 1 fn: 1278.4808	 Pars:  -0.14582  0        0        0.05387  0.36624  0        0.48890  2.00000  1.00000 -0.22039
Iter: 2 fn: 1278.4808	 Pars:  -0.14581  0        0        0.05387  0.36624  0        0.48891  2.00000  1.00000 -0.22039
solnp--> Completed in 2 iterations

Final Estimate of the Negative LLH:
-LLH: 1278.481
Coefficient(s):
        Estimate  Std. Error   t value   Pr(>|t|)    
mu     -0.145815    0.010284 -14.17835 < 2.22e-16 ***
omega   0.053869    0.008965   6.00881 < 2.22e-16 ***
alpha1  0.366236    0.031638  11.57589 < 2.22e-16 ***
beta1   0.488905    0.054448   8.97938 < 2.22e-16 ***
shape1 -0.220386    0.006493 -33.94017 < 2.22e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
There were 13 warnings (use warnings() to see them)

GEVStableGarch documentation built on May 2, 2019, 5:53 a.m.