Skip to content
Prev 6903 / 15274 Next

Questions on fitted garch(1,1)

Mark,
the
for the
No these are not predictions for the next day. The term "predict" is
maybe somewhat misleading. "Fitted Values" is more appropriate, and in
fact both functions give the same results, e.g.

all.equal(predict(garch.fitted)[,1],fitted.values(garch.fitted)[,1])
[1] TRUE

For a two-step-ahead forecast I would use the predict function on the
fGARCH Object and would set the n.ahead argument to 2:

predict(fgarch.fitted, n.ahead = 2)
  meanForecast   meanError standardDeviation
1 0.0005044188 0.008436248       0.008436248
2 0.0005044188 0.008482511       0.008482511
Because you have just modeled the variance equation and the mean
equation has only a constant. Garch will help you forecasting the
variance of the returns but not the returns themselves. If you want
return forecasts you should model the mean equation, e.g. 

fgarch.fitted <- fGarch::garchFit(~ arma(2,1)+garch(1,1), data =
as.zoo(na.omit(r)), trace =  FALSE)
meanForecast   meanError standardDeviation
1 -0.0009371963 0.008495794       0.008495794
2 -0.0003940789 0.008556624       0.008539586
3  0.0004374707 0.008608828       0.008582793
4  0.0005284133 0.008651758       0.008625429
5  0.0005093462 0.008693970       0.008667503

Hope this helps

Zeno


-----Original Message-----
From: r-sig-finance-bounces at stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Mark
Breman
Sent: Dienstag, 9. November 2010 12:51
To: Patrick Burns
Cc: r-sig-finance at stat.math.ethz.ch
Subject: Re: [R-SIG-Finance] Questions on fitted garch(1,1)

Hi everyone,

As a followup on my three fitted garch questions;

Yes indeed, if I give the estimated coefficients of fgarch.fitted as
initial
values to garch() the results are much more inline with each other:
control=garch.control(start=c(1.3705e-06,8.1789e-02,9.0995e-01))))

 ***** ESTIMATION WITH ANALYTICAL GRADIENT *****


     I     INITIAL X(I)        D(I)

     1     1.370500e-06     1.000e+00
     2     8.178900e-02     1.000e+00
     3     9.099500e-01     1.000e+00

    IT   NF      F         RELDF    PRELDF    RELDX   STPPAR   D*STEP
NPRELDF
     0    1 -1.093e+04
     1   13 -1.093e+04  4.54e-09  1.67e-08  1.1e-09  4.3e+13  2.1e-09
 3.63e+05
     2   24 -1.093e+04 -1.30e-14  2.64e-14  8.1e-15  1.6e+00  1.5e-14
-1.22e-03

 ***** FALSE CONVERGENCE *****

 FUNCTION    -1.093479e+04   RELDX        8.076e-15
 FUNC. EVALS      24         GRAD. EVALS       2
 PRELDF       2.641e-14      NPRELDF     -1.222e-03

     I      FINAL X(I)        D(I)          G(I)

     1    1.372553e-06     1.000e+00    -1.965e+04
     2    8.178900e-02     1.000e+00     2.046e+00
     3    9.099500e-01     1.000e+00    -1.478e+01

          a0           a1           b1
1.372553e-06 8.178900e-02 9.099500e-01

Very nice, thank you!

Now only question 2 and 3 remain a mystery to me.

Kind regards,

-Mark-

2010/11/4 Patrick Burns <patrick at burns-stat.com>
"mu"
running
to="2010-11-04",
as.zoo(na.omit(r)),
models
the
for the
questions
questions
questions
_______________________________________________
R-SIG-Finance at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.

EBS European Business School gemeinnuetzige GmbH, Universitaet fuer Wirtschaft und Recht i.Gr. - Amtsgericht Wiesbaden HRB 19951 - Umsatzsteuer-ID DE 113891213 Geschaeftsfuehrung: Prof. Dr. Christopher Jahns,  President; Prof. Dr. Rolf Tilmes, Dean Business School; Sabine Fuchs, CMO; Prof. Dr. Dr. Gerrick Frhr. v. Hoyningen-Huene, Dean Law School; Verwaltungsrat: Dr. Hellmut K. Albrecht, Vorsitzender