nag_tsa_diff (g13aac) carries out non-seasonal and seasonal differencing on a time series. Information which allows the original series to be reconstituted from the differenced series is also produced. This information is required in time series forecasting.
Let
be the
th value of a time series
, for
after non-seasonal differencing of order
and seasonal differencing of order
(with period or seasonality
). In general,
|
|
|
|
|
|
|
|
Non-seasonal differencing up to the required order
is obtained using
|
|
|
for |
|
|
|
for |
|
|
|
|
|
|
|
for |
Seasonal differencing up to the required order
is then obtained using
|
|
|
for |
|
|
|
for |
|
|
|
|
|
|
|
for |
Mathematically, the sequence in which the differencing operations are performed does not affect the final resulting series of values.
None.
The computations are believed to be stable.
nag_tsa_diff (g13aac) is not threaded in any implementation.