Language Reference

FARMACOV Call

CALL FARMACOV (cov, d <, phi> <, theta> <, sigma> <, p> <, q> <, lag> ) ;

This subroutine is supported by the IML procedure and the iml action.

The FARMACOV subroutine computes the autocovariance function for an autoregressive fractionally integrated moving average (ARFIMA) model of the form ARFIMA(p comma d comma q).

The input arguments to the FARMACOV subroutine are as follows:

d

specifies a fractional differencing order. The value of d must be in the open interval left-parenthesis negative 0.5 comma 0.5 right-parenthesis excluding zero. This input is required.

phi

specifies an m Subscript p-dimensional vector that contains the autoregressive coefficients, where m Subscript p is the number of the elements in the subset of the AR order. The default is zero. All the roots of phi left-parenthesis upper B right-parenthesis equals 0 should be greater than one in absolute value, where phi left-parenthesis upper B right-parenthesis is the finite-order matrix polynomial in the backshift operator B, such that upper B Superscript j Baseline y Subscript t Baseline equals y Subscript t minus j.

theta

specifies an m Subscript q-dimensional vector that contains the moving average coefficients, where m Subscript q is the number of the elements in the subset of the MA order. The default is zero.

p

specifies the subset of the AR order. The quantity m Subscript p is defined as the number of elements of phi.

If you do not specify p, the default subset is pequals StartSet 1 comma 2 comma ellipsis comma m Subscript p Baseline EndSet.

For example, consider phi=0.5.

If you specify p=1 (the default), the FARMACOV subroutine computes the theoretical autocovariance function of an ARFIMA(1 comma d comma 0) process as y Subscript t Baseline equals 0.5 y Subscript t minus 1 Baseline plus epsilon Subscript t Baseline period

If you specify p=2, the FARMACOV subroutine computes the autocovariance function of an ARFIMA(2 comma d comma 0) process as y Subscript t Baseline equals 0.5 y Subscript t minus 2 Baseline plus epsilon Subscript t Baseline period

q

specifies the subset of the MA order. The quantity m Subscript q is defined as the number of elements of theta.

If you do not specify q, The default subset is qequals StartSet 1 comma 2 comma ellipsis comma m Subscript q Baseline EndSet.

The usage of q is the same as that of p.

lag

specifies the length of lags, which must be a positive number. The default is lag=12.

The FARMACOV subroutine returns the following value:

cov

is a lagplus 1 vector that contains the autocovariance function of an ARFIMA(p comma d comma q) process.

As an example, consider the following ARFIMA(1 comma 0.3 comma 1) process:

In this process, epsilon Subscript t Baseline tilde NID left-parenthesis 0 comma 1.2 right-parenthesis. The following statements compute the autocovariance of this process:

d = 0.3;
phi = 0.5;
theta = -0.1;
sigma = 1.2;
call farmacov(cov, d, phi, theta, sigma) lag=5;
print cov;

Figure 151: Autocovariance of an ARFIMA Process

cov
4.2493033
3.5806774
2.9152846
2.4381017
2.1068697
1.8743199


For d element-of left-parenthesis negative 0.5 comma 0.5 right-parenthesis minus StartSet 0 EndSet, the series y Subscript t represented as left-parenthesis 1 minus upper B right-parenthesis Superscript d Baseline y Subscript t Baseline equals epsilon Subscript t is a stationary and invertible ARFIMA(0 comma d comma 0) process with the autocovariance function

and the autocorrelation function

Notice that rho Subscript k decays hyperbolically as the lag increases, rather than showing the exponential decay of the autocorrelation function of a stationary ARMA(p comma q) process.

For d element-of left-parenthesis 0.5 comma 0.5 right-parenthesis minus StartSet 0 EndSet, the series y Subscript t is a stationary and invertible ARFIMA(p comma d comma q) process represented as

where phi left-parenthesis upper B right-parenthesis equals 1 minus phi 1 upper B minus phi 2 upper B squared minus ellipsis minus phi Subscript p Baseline upper B Superscript p and theta left-parenthesis upper B right-parenthesis equals 1 minus theta 1 upper B minus theta 2 upper B squared minus ellipsis minus theta Subscript q Baseline upper B Superscript q and epsilon Subscript t is a white noise process; all the roots of the characteristic AR and MA polynomial lie outside the unit circle.

Let x Subscript t Baseline equals theta left-parenthesis upper B right-parenthesis Superscript negative 1 Baseline phi left-parenthesis upper B right-parenthesis y Subscript t, so that x Subscript t follows an ARFIMA(0 comma d comma 0) process; let z Subscript t Baseline equals left-parenthesis 1 minus upper B right-parenthesis Superscript d Baseline y Subscript t, so that z Subscript t follows an ARMA(p comma q) process; let gamma Subscript k Superscript x be the autocovariance function of StartSet x Subscript t Baseline EndSet and gamma Subscript k Superscript z be the autocovariance function of StartSet z Subscript t Baseline EndSet.

Then the autocovariance function of StartSet y Subscript t Baseline EndSet is as follows:

The explicit form of the autocovariance function of StartSet y Subscript t Baseline EndSet is given by Sowell (1992).

Last updated: April 16, 2021