PDF version (NAG web site
, 64-bit version, 64-bit version)
NAG Toolbox: nag_tsa_multi_transf_prelim (g13bd)
Purpose
nag_tsa_multi_transf_prelim (g13bd) calculates preliminary estimates of the parameters of a transfer function model.
Syntax
Description
nag_tsa_multi_transf_prelim (g13bd) calculates estimates of parameters
,
in the transfer function model
given cross-correlations between the series
and lagged values of
:
and the ratio of standard deviations
, as supplied by
nag_tsa_multi_xcorr (g13bc).
It is assumed that the series
used to calculate the cross-correlations is a sample from a time series with true autocorrelations of zero. Otherwise the cross-correlations between the series
and
, as defined in the description of
nag_tsa_multi_filter_arima (g13ba), should be used in place of those between
and
.
The estimates are obtained by solving for
the equations
then calculating
where the ‘
’ is used for
and ‘
’ for
,
.
Any value of arising in these equations for is taken as zero. The parameters are checked as to whether they satisfy the stability criterion.
References
Box G E P and Jenkins G M (1976) Time Series Analysis: Forecasting and Control (Revised Edition) Holden–Day
Parameters
Compulsory Input Parameters
- 1:
– double scalar
-
The cross-correlation between the two series at lag , .
Constraint:
.
- 2:
– double array
-
The cross-correlations between the two series at lags to ,
, for .
Constraint:
, for .
- 3:
– int64int32nag_int array
-
The transfer function model orders in the standard form (i.e., delay time, number of moving-average MA-like followed by number of autoregressive AR-like parameters).
Constraint:
, for .
- 4:
– double scalar
-
The ratio of the standard deviation of the series to that of the series, .
Constraint:
.
Optional Input Parameters
- 1:
– int64int32nag_int scalar
-
Default:
the dimension of the array
r.
, the number of lagged cross-correlations in the array
r.
Constraint:
.
Output Parameters
- 1:
– double array
-
.
The preliminary estimates of the parameters of the transfer function model in the order of MA-like parameters followed by the AR-like parameters. If the estimation of either type of parameter fails then these arguments are set to .
- 2:
– int64int32nag_int array
-
Indicators of the success of the estimation of MA-like and AR-like parameters respectively. A value indicates that there are no parameters of that type to be estimated. A value of or indicates that there are parameters of that type in the model and the estimation of that type has been successful or unsuccessful respectively. Note that there is always at least one MA-like parameter in the model.
- 3:
– int64int32nag_int scalar
unless the function detects an error (see
Error Indicators and Warnings).
Error Indicators and Warnings
Errors or warnings detected by the function:
-
-
On entry, | , for , |
or | , |
or | or , |
or | or , for some , |
or | , |
or | , |
or | . |
-
An unexpected error has been triggered by this routine. Please
contact
NAG.
-
Your licence key may have expired or may not have been installed correctly.
-
Dynamic memory allocation failed.
Accuracy
Equations used in the computations may become unstable, in which case results are reset to zero with array
isf values set accordingly.
Further Comments
If ,a local workspace array of fixed length is allocated internally by nag_tsa_multi_transf_prelim (g13bd). The total size of this array amounts to integer elements and double elements.
The time taken by nag_tsa_multi_transf_prelim (g13bd) is roughly proportional to .
Example
This example reads the cross-correlations between two series at lags to . It then reads a transfer function model and calculates and prints the preliminary estimates of the parameters of the model.
Open in the MATLAB editor:
g13bd_example
function g13bd_example
fprintf('g13bd example results\n\n');
r0 = -0.0155;
r = [0.0339; -0.0374; -0.2895; -0.3430; -0.4518; -0.2787];
nna = [int64(3);2;1];
%Standard deviation ratio
s = 1.9256;
[wds, isf, ifail] = g13bd( ...
r0, r, nna, s);
fprintf('Success/failure indicator = %4d%4d\n\n', isf(1:2));
fprintf('Transfer function model B, Q, P = %4d%4d%4d\n\n', nna(1:3));
disp('Parameter initial estimates');
disp(wds');
g13bd example results
Success/failure indicator = 1 1
Transfer function model B, Q, P = 3 2 1
Parameter initial estimates
-0.5575 0.3166 0.4626 0.6169
PDF version (NAG web site
, 64-bit version, 64-bit version)
© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015