Language Reference

FARMALIK Call

computes the log-likelihood function of an ARFIMA(p,d,q) model

CALL FARMALIK( lnl, series, d <, phi, theta, sigma, p, q, opt>);

The inputs to the FARMALIK subroutine are as follows:


series
specifies a time series (assuming mean zero).

d
specifies a fractional differencing order. This argument is required; the value of d should be in the open interval (-1,1) excluding zero.

phi
specifies an m_p-dimensional vector containing the autoregressive coefficients, where m_p is the number of the elements in the subset of the AR order. The default is zero.

theta
specifies an m_q-dimensional vector containing the moving-average coefficients, where m_q is the number of the elements in the subset of the MA order. The default is zero.

sigma
specifies a variance of the innovation series. The default is one.

p
specifies the subset of the AR order. See the FARMACOV subroutine for additional details.

q
specifies the subset of the MA order. See the FARMACOV subroutine for additional details.

opt
specifies the method of computing the log-likelihood function.


opt=0
requests the conditional sum of squares function. This is the default.
opt=1
requests the exact log-likelihood function. This option requires that the time series be stationary and invertible.

The FARMALIK subroutine returns the following value:


lnl
is a three-dimensional vector. lnl[1] contains the log-likelihood function of the model; lnl[2] contains the sum of the log determinant of the innovation variance; and lnl[3] contains the weighted sum of squares of residuals. The log-likelihood function is computed as -0.5x (lnl[2]+lnl[3]). If the opt=0 is specified, only the weighted sum of squares of residuals returns in lnl[1].

Consider the following ARFIMA(1,0.3,1) model:
(1-0.5b)(1-b)^{0.3}y_t = (1+0.1b){\epsilon}_t
In this model, \epsilon_t \sim nid(0, 1.2). To compute the log-likelihood function of this model, you can use the following code:
  
    d    = 0.3; 
    phi  = 0.5; 
    theta= -0.1; 
    sigma= 1.2; 
    call farmasim(yt, d, phi, theta, sigma); 
    call farmalik(lnl, yt, d, phi, theta, sigma); 
    print lnl;
 


The FARMALIK subroutine computes a log-likelihood function of the ARFIMA(p,d,q) model. The exact log-likelihood function was proposed by Sowell (1992); the conditional sum of squares function was proposed by Chung (1996).

The exact log-likelihood function only considers a stationary and invertible ARFIMA(p,d,q) process with d\in (-0.5,0.5)\backslash \{0\} represented as
\phi(b)(1-b)^dy_t = \theta(b){\epsilon}_t
where {\epsilon}_t \sim nid(0,\sigma^2).

Let y_t=[y_1,y_2, ... ,y_t ]' and the log-likelihood function is as follows without a constant term:
\ell = -{1 \over 2} (\log|\sigma| + y_t'\sigma^{-1}y_t )
where \sigma = [ \gamma_{i-j} ] for i,j=1,2, ... ,t.

The conditional sum of squares function does not require the normality assumption. The initial observations y_0, y_{-1},  ... and {\epsilon}_0, {\epsilon}_{-1},  ... are set to zero.

Let y_{t} be an ARFIMA(p,d,q) process represented as
\phi(b)(1-b)^dy_t = \theta(b){\epsilon}_t
then the conditional sum of squares function is
\ell = -{t \over 2}\log    ( {1 \over t}\sum_{t=1}^t{\epsilon}_t^2  )

Previous Page | Next Page | Top of Page