For a bivariate time series, nag_tsa_gain_phase_bivar (g13cfc) calculates the gain and phase together with lower and upper bounds from the univariate and bivariate spectra.
Estimates of the gain
and phase
of the dependency of series
on series
at frequency
are given by
The quantities used in these definitions are obtained as in
Section 3 in nag_tsa_cross_spectrum_bivar (g13cec).
Confidence limits are returned for both gain and phase, but should again be taken as very approximate when the coherency
, as calculated by nag_tsa_gain_phase_bivar (g13cfc), is not significant. These are based on the assumption that both
and
are Normal with variance
Although the estimate of
is always given in the range
, no attempt is made to restrict its confidence limits to this range.
All computations are very stable and yield good accuracy.
Not applicable.
The time taken by nag_tsa_gain_phase_bivar (g13cfc) is approximately proportional to
ng.
The example program reads the set of univariate spectrum statistics, the 2 univariate spectra and the cross spectrum at a frequency division of for a pair of time series. It calls nag_tsa_gain_phase_bivar (g13cfc) to calculate the gain and the phase and their bounds and prints the results.