g13dx calculates the zeros of a vector autoregressive (or moving average) operator.
This method is likely to be used in conjunction with g05pj g13as g13dd (G13DSF not in this release).
Syntax
C# |
---|
public static void g13dx( int k, int ip, double[] par, double[] rr, double[] ri, double[] rmod, out int ifail ) |
Visual Basic |
---|
Public Shared Sub g13dx ( _ k As Integer, _ ip As Integer, _ par As Double(), _ rr As Double(), _ ri As Double(), _ rmod As Double(), _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void g13dx( int k, int ip, array<double>^ par, array<double>^ rr, array<double>^ ri, array<double>^ rmod, [OutAttribute] int% ifail ) |
F# |
---|
static member g13dx : k : int * ip : int * par : float[] * rr : float[] * ri : float[] * rmod : float[] * ifail : int byref -> unit |
Parameters
- k
- Type: System..::..Int32On entry: , the dimension of the multivariate time series.Constraint: .
- ip
- Type: System..::..Int32On entry: the number of AR (or MA) parameter matrices, (or ).Constraint: .
- par
- Type: array<System..::..Double>[]()[][]An array of size []On entry: the AR (or MA) parameter matrices read in row by row in the order (or ). That is, must be set equal to the th element of , for (or the th element of , for ).
- rr
- Type: array<System..::..Double>[]()[][]An array of size []On exit: the real parts of the eigenvalues.
- ri
- Type: array<System..::..Double>[]()[][]An array of size []On exit: the imaginary parts of the eigenvalues.
- rmod
- Type: array<System..::..Double>[]()[][]An array of size []On exit: the moduli of the eigenvalues.
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).
Description
Consider the vector autoregressive moving average (VARMA) model
where denotes a vector of time series and is a vector of residual series having zero mean and a constant variance-covariance matrix. The components of are also assumed to be uncorrelated at non-simultaneous lags. denotes a sequence of by matrices of autoregressive (AR) parameters and denotes a sequence of by matrices of moving average (MA) parameters. is a vector of length containing the series means. Let
where denotes the by identity matrix.
(1) |
The model (1) is said to be stationary if the eigenvalues of lie inside the unit circle. Similarly let
Then the model is said to be invertible if the eigenvalues of lie inside the unit circle.
g13dx returns the eigenvalues of (or the eigenvalues of ) along with their moduli, in descending order of magnitude. Thus to check for stationarity or invertibility you should check whether the modulus of the largest eigenvalue is less than one.
References
Wei W W S (1990) Time Series Analysis: Univariate and Multivariate Methods Addison–Wesley
Error Indicators and Warnings
Errors or warnings detected by the method:
On entry, , or .
- An excessive number of iterations are needed to evaluate the eigenvalues of (or ). This is an unlikely exit. All output parameters are undefined.
Accuracy
The accuracy of the results depends on the original matrix and the multiplicity of the roots.
Parallelism and Performance
None.
Further Comments
The time taken is approximately proportional to (or ).
Example
This example finds the eigenvalues of where and and .
Example program (C#): g13dxe.cs