G13FFF (PDF version)
G13 Chapter Contents
G13 Chapter Introduction
NAG Library Manual

NAG Library Routine Document

G13FFF

Note:  before using this routine, please read the Users' Note for your implementation to check the interpretation of bold italicised terms and other implementation-dependent details.

+ Contents

    1  Purpose
    7  Accuracy
    9  Example

1  Purpose

G13FFF forecasts the conditional variances, ht, for t=T+1,,T+ξ from a GJR GARCHp,q sequence, where ξ is the forecast horizon and T is the current time (see Glosten et al. (1993)).

2  Specification

SUBROUTINE G13FFF ( NUM, NT, IP, IQ, THETA, GAMMA, FHT, HT, ET, IFAIL)
INTEGER  NUM, NT, IP, IQ, IFAIL
REAL (KIND=nag_wp)  THETA(IQ+IP+1), GAMMA, FHT(NT), HT(NUM), ET(NUM)

3  Description

Assume the GARCHp,q process can be represented by:
ht = α0 + i=1 q αi + γ It-i ε t-i 2 + i=1 p βi ht-i ,   t=1,2,,T .
where εtψt-1=N0,ht or εtψt-1=Stdf,ht, and It=1, if εt<0, or It=0, if εt0, has been modelled by G13FEF, and the estimated conditional variances and residuals are contained in the arrays HT and ET respectively.
G13FFF will then use the last maxp,q elements of the arrays HT and ET to estimate the conditional variance forecasts, htψT, where t=T+1,,T+ξ and ξ is the forecast horizon.

4  References

Bollerslev T (1986) Generalised autoregressive conditional heteroskedasticity Journal of Econometrics 31 307–327
Engle R (1982) Autoregressive conditional heteroskedasticity with estimates of the variance of United Kingdom inflation Econometrica 50 987–1008
Engle R and Ng V (1993) Measuring and testing the impact of news on volatility Journal of Finance 48 1749–1777
Glosten L, Jagannathan R and Runkle D (1993) Relationship between the expected value and the volatility of nominal excess return on stocks Journal of Finance 48 1779–1801
Hamilton J (1994) Time Series Analysis Princeton University Press

5  Parameters

1:     NUM – INTEGERInput
On entry: the number of terms in the arrays HT and ET from the modelled sequence.
Constraint: maxIP,IQNUM.
2:     NT – INTEGERInput
On entry: ξ, the forecast horizon.
Constraint: NT>0.
3:     IP – INTEGERInput
On entry: the number of coefficients, βi, for i=1,2,,p.
Constraints:
  • maxIP,IQ20;
  • IP0.
4:     IQ – INTEGERInput
On entry: the number of coefficients, αi, for i=1,2,,q.
Constraints:
  • maxIP,IQ20;
  • IQ1.
5:     THETA(IQ+IP+1) – REAL (KIND=nag_wp) arrayInput
On entry: the first element must contain the coefficient αo and the next IQ elements must contain the coefficients αi, for i=1,2,,q. The remaining IP elements must contain the coefficients βj, for j=1,2,,p.
6:     GAMMA – REAL (KIND=nag_wp)Input
On entry: the asymmetry parameter γ for the GARCHp,q sequence.
7:     FHT(NT) – REAL (KIND=nag_wp) arrayOutput
On exit: the forecast values of the conditional variance, ht, for t=T+1,,T+ξ.
8:     HT(NUM) – REAL (KIND=nag_wp) arrayInput
On entry: the sequence of past conditional variances for the GARCHp,q process, ht, for t=1,2,,T.
9:     ET(NUM) – REAL (KIND=nag_wp) arrayInput
On entry: the sequence of past residuals for the GARCHp,q process, εt, for t=1,2,,T.
10:   IFAIL – INTEGERInput/Output
On entry: IFAIL must be set to 0, -1​ or ​1. If you are unfamiliar with this parameter you should refer to Section 3.3 in the Essential Introduction for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value -1​ or ​1 is recommended. If the output of error messages is undesirable, then the value 1 is recommended. Otherwise, if you are not familiar with this parameter, the recommended value is 0. When the value -1​ or ​1 is used it is essential to test the value of IFAIL on exit.
On exit: IFAIL=0 unless the routine detects an error or a warning has been flagged (see Section 6).

6  Error Indicators and Warnings

If on entry IFAIL=0 or -1, explanatory error messages are output on the current error message unit (as defined by X04AAF).
Errors or warnings detected by the routine:
IFAIL=1
On entry,NUM<maxIP,IQ,
orIQ<1,
orIP<0,
ormaxIP,IQ>20,
orNT0.

7  Accuracy

Not applicable

8  Further Comments

None.

9  Example

See Section 9 in G13FEF.

G13FFF (PDF version)
G13 Chapter Contents
G13 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2012