procedure ARIMASimulate(const p: TVec; const t: TVec; const d: Integer; const ResInit: TVec; const n: Integer; const aResult: TVec);
Simulate the ARIMA process.
| # | Name | Description |
|---|---|---|
| 1 | p | stores the AR coefficients. Length of the p vector defines AR(p) order. |
| 2 | t | stores the MA coefficients. Length of the t vector defines MA(q) order. |
| 3 | d | defines how many times time series is differentiated (d parameter in ARIMA). |
| 4 | ResInit | defines initial values for integration: r[-d+1],Dr[-d+2],...,D^(d-1)r[0]. The length of ResInit must be equal to d, otherwise an exception will be raised. |
| 5 | n | defines number of points to simulate. |
| 6 | aResult | returns ARIMA (p,d,q) time series. Size of Result vector is adjusted automatiacally. |
Result: stored in self (calling object)
Remarks:
Simulate the ARIMA (p,d,q) process.
Examples
Uses MtxExpr, StatTimeSerAnalysis, Math387;
procedure Example;
var phi,theta,init,ts: Vector;
begin
phi.SetIt(false,[1.0]);
theta.SetIt(false,[-0.25]);
init.SetIt(false,[0,0]);
ARIMASimulate(phi,theta,2,init,100,ts);
// ts now stores 100 points from ARIMA(1,1,2) process.
end;
See Also: StatTimeSerAnalysis.ARMASimulate