naginterfaces.library.rand.times_​garch_​exp

naginterfaces.library.rand.times_garch_exp(dist, num, ip, iq, theta, df, fcall, comm, statecomm)[source]

times_garch_exp generates a given number of terms of an exponential process (see Engle and Ng (1993)).

For full information please refer to the NAG Library document for g05pg

https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/g05/g05pgf.html

Parameters
diststr, length 1

The type of distribution to use for .

A Normal distribution is used.

A Student’s -distribution is used.

numint

, the number of terms in the sequence.

ipint

The number of coefficients, , for .

iqint

The number of coefficients, , for .

thetafloat, array-like, shape

The initial parameter estimates for the vector . The first element must contain the coefficient and the next elements must contain the autoregressive coefficients , for . The next elements must contain the coefficients , for . The next elements must contain the moving average coefficients , for .

dfint

The number of degrees of freedom for the Student’s -distribution.

If , is not referenced.

fcallbool

If , a new sequence is to be generated, otherwise a given sequence is to be continued using the information in [‘r’].

commdict, communication object, modified in place

Communication structure for the reference vector.

If , this argument must have been initialized by a prior call to times_garch_exp.

statecommdict, RNG communication object, modified in place

RNG communication structure.

This argument must have been initialized by a prior call to init_repeat() or init_nonrepeat().

Returns
htfloat, ndarray, shape

The conditional variances , for , for the sequence.

etfloat, ndarray, shape

The observations , for , for the sequence.

Raises
NagValueError
(errno )

On entry, is not valid: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

or is not the same as when [‘r’] was set up in a previous call.

Previous value of and .

Previous value of and .

(errno )

On entry, [‘state’] vector has been corrupted or not initialized.

(errno )

Invalid sequence generated, use different parameters.

Notes

An exponential process is represented by:

where , denotes the expected value of , and or . Here is a standardized Student’s -distribution with degrees of freedom and variance , is the number of observations in the sequence, is the observed value of the process at time , is the conditional variance at time , and the set of all information up to time .

One of the initialization functions init_repeat() (for a repeatable sequence if computed sequentially) or init_nonrepeat() (for a non-repeatable sequence) must be called prior to the first call to times_garch_exp.

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