nag_tsa_uni_arma_roots (g13dx) calculates the zeros of a vector autoregressive (or moving average) operator.
This function is likely to be used in conjunction with
nag_rand_times_mv_varma (g05pj),
nag_tsa_uni_arima_resid (g13as),
nag_tsa_multi_varma_estimate (g13dd) or
nag_tsa_multi_varma_diag (g13ds).
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.
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.
- 1:
– int64int32nag_int scalar
-
, the dimension of the multivariate time series.
Constraint:
.
- 2:
– int64int32nag_int scalar
-
The number of AR (or MA) parameter matrices, (or ).
Constraint:
.
- 3:
– double array
-
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 ).
None.
The accuracy of the results depends on the original matrix and the multiplicity of the roots.
function g13dx_example
fprintf('g13dx example results\n\n');
k = int64(2);
ip = int64(1);
par = [0.802; 0.065; 0; 0.575];
[rr, ri, rmod, ifail] = g13dx( ...
k, ip, par);
fprintf('%20s%13s\n', 'Eigenvalues', 'Moduli');
fprintf('%20s%13s\n', '-----------', '------');
for i = 1:k*ip
if ri(i)>=0
fprintf(' %10.3f + %6.3f i %8.3f\n', rr(i), ri(i), rmod(i));
else
fprintf(' %10.3f - %6.3f i %8.3f\n', rr(i), -ri(i), rmod(i));
end
end