Simulate the ARIMA process.
Example 1
Simulate ARIMA(1,2,1) process with Phi=[1.0], Theta=[-0.25], d=2. 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;
#include "MtxVecCpp.h"
#include "Math387.hpp"
#include "StatTimeSerAnalysis.hpp"
void __fastcall Example();
{
Vector phi,theta,init,ts;
phi->SetIt(false,OPENARRAY(TSample,(1.0)));
theta->SetIt(false,OPENARRAY(TSample,(-0.25)));
init->SetIt(false,OPENARRAY(TSample,(0,0)));
ARIMASimulate(phi,theta,2,init,100,ts);
// ts now stores 100 points from ARIMA(1,1,2) process.
}
using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples
{
private void Example()
{
Vector phi = new Vector(0);
Vector theta = new Vector(0);
Vector init = new Vector(0);
Vector ts = new Vector(0);
phi.SetIt(false, new double[] {1.0});
theta.SetIt(false,new double[] {-0.25});
theta.SetIt(false,new double[] {0.0});
StatTimeSerAnalysis.ARIMASimulate(phi,theta,2,init,100,ts);
// ts now stores 100 points from ARIMA(1,1,2) process.
}
}