« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Time Series and Stochastic Differential Equations
Test for Integrated Time Series
Check if the given data comes from a weakly stationary process or an integrated time series.
In[1]:=
X
SeedRandom[456346435]; data = RandomFunction[ARIMAProcess[{.3}, 1, {.2}, 1], {0, 250}][ "PathStates"]; ListPlot[data, Filling -> Axis, ImageSize -> 300]
Out[1]=
UnitRootTest
suggests that there is a linear trend.
In[2]:=
X
UnitRootTest[data, Automatic, "TestDataTable"]
Out[2]=
Performing the test on the differenced data suggests all trend has been removed.
In[3]:=
X
UnitRootTest[Differences[data], Automatic, "TestDataTable"]
Out[3]=