Exact maximum likelihood estimation of the parameters in a univariate ARMA (auto‑regressive, moving average) time series model.
Required Arguments
W — Vector of length NOBS containing the stationary time series. (Input)
PAR — Vector of length NPAR. On input PAR contains initial estimates for the autoregressive parameters. On output these are replaced by the exact maximum likelihood estimates for the autoregressive parameters. (Input/Output)
PMA — Vector of length NPMA. On input PMA contains initial estimates for the moving average parameters. On output these are replaced by the exact maximum likelihood estimates for the moving average parameters. (Input/Output)
Optional Arguments
NOBS — Number of values in the time series. (Input) Default: NOBS = size(W,1).
NPAR — Number of autoregressive parameters. (Input) Default: NPAR = size(PAR,1).
NPMA — Number of moving average parameters. (Input) Default: NPMA = size(PMA,1).
WMEAN — Estimate of the mean of the time series W. (Input) Default: WMEAN = arithmetic mean of w.
IPRINT — Printing option. (Input)
IPRINT
Action
0
No printing
1
Prints final results only
2
Prints intermediate and final results
Default: IPRINT = 0.
MAXIT — Maximum number of estimation iterations. (Input) Default: MAXIT = 500.
CNST — Estimate of the constant term θ0 in the model. (Output)
AVAR — Estimate of the noise variance. (Output)
F — Value of –2*(ln(likelihood)) for fitted model. (Output)
EWS — Array of length NOBS containing the residuals of the requested ARMA fit. (Output)
FORTRAN 90 Interface
Generic: CALLMAX_ARMA (W, PAR, PMA[, …])
Specific: The specific interface names are S_MAX_ARMA and D_MAX_ARMA.
Description
Routine MAX_ARMA is derived from the maximum likelihood estimation algorithm described by Akaike, Kitagawa, Arahata and Tada (1979), and the XSARMA routine published in the TIMSAC‑78 Library.
Using the notation developed in the introduction to this chapter, the stationary time series Wt with mean μ can be represented by the nonseasonal autoregressive moving average (ARMA) model by the following relationship:
ɸ(B)(Wt−μ) = θ(B)At
where
B is the backward shift operator defined by
and
MAX_ARMA estimates the coefficients
and
using maximum likelihood estimation.
MAX_ARMA checks the initial estimates for the autoregressive coefficients to ensure that they represent a stationary series. If
are the initial estimates for a stationary series then all (complex) roots of the following polynomial will fall outside the unit circle:
MAX_ARMA computes the roots of this polynomial for the initial estimates supplied in the vector PAR. If these estimates represent a non‑stationary series, MAX_ARMA issues a warning message and replaces PAR with initial values that are stationary.
Initial estimates can be obtained using NSPE and NSLSE procedures for calculating the autoregressive and moving average parameters of a series.
MAX_ARMA also validates its final estimates to ensure that they too represent a stationary series. This is done to guard against the possibility that MAX_ARMA converged to a non‑stationary solution. If non‑stationary estimates are encountered, MAX_ARMA quits and issues a fatal message. Routines IERCD and N1RTY (see the Reference Material section of this manual) can be used to verify that the stationary condition was met.
The ARMA process
ɸ(B)(Wt−μ) = θ(B)At
can equivalently be written in the form
where the constant term θ0 is defined by .
MAX_ARMA estimates μ always by the sample mean of the series.
For model selection, the ARMA model with the minimum value for AIC might be preferred
AIC = F+2p
where p = NPAR + NPMA.
Comments
Informational errors
Type
Code
Description
3
1
Input values for autoregressive coefficients are invalid. They do not represent a stationary time series. New values have been generated.
4
1
Maximum number of iterations exceeded. Try increasing MAXIT or use double precision.
4
2
Estimation process converged to a non‑stationary solution.
Example
Consider the Wolfer Sunspot Data (Box and Jenkins, 1976, page 530) consisting of the number of sunspots observed each year from 1770 through 1869. In this example, MAX_ARMA is used to fit the following ARMA model:
For these data, MAX_ARMA calculated the following estimates:
Letting , we can obtain the following equivalent representations: