ARIMA_diff

scalation.modeling.forecasting.ARIMA_diff
object ARIMA_diff

The ARIMA_diff object provides methods for taking first and second order differences, as well as transforming back to the original scale.

diff: position y --> velocity v --> acceleration a (actual) | | | backform, undiff: position yp <-- velocity vp <-- acceleration ap (predicted)

Attributes

See also

stats.stackexchange.com/questions/32634/difference-time-series-before-arima-or-within-arima

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ARIMA_diff.type

Members list

Value members

Concrete methods

def backform(vp: VectorD, y: VectorD, d: Int): VectorD

Backform by transforming back the predicted values of a differenced time series to the original scale using actual values y. E.g., for d = 1: Velocity vp -> Position yp.

Backform by transforming back the predicted values of a differenced time series to the original scale using actual values y. E.g., for d = 1: Velocity vp -> Position yp.

Value parameters

d

the order of simple differencing (defaults to 1)

vp

the predicted differenced (velocity/acceleration) time series

y

the actual position time series vector (first d values needed)

Attributes

def diff(y: VectorD, d: Int): VectorD

Take the d'th difference of the position time series for d in {0, 1, 2}. A new vector (of length y.dim-d) is returned even when there is no difference taken (d = 0), to ensure the original is preserved. E.g., for d = 1: Position y --> Velocity v.

Take the d'th difference of the position time series for d in {0, 1, 2}. A new vector (of length y.dim-d) is returned even when there is no difference taken (d = 0), to ensure the original is preserved. E.g., for d = 1: Position y --> Velocity v.

Value parameters

d

the order of simple differencing (defaults to 1)

y

the actual position time series to be differenced

Attributes

def transformBack(vf: MatrixD, y: VectorD, d: Int): MatrixD

Transform the forecast values in the FORECAST MATRIX of a differenced time series back to the original scale for all horizons (1 to h).

Transform the forecast values in the FORECAST MATRIX of a differenced time series back to the original scale for all horizons (1 to h).

Value parameters

d

the order of simple differencing

vf

the matrix of all multi-horizon forecasted values (differenced)

y

the original actual time series vector (undifferenced)

Attributes

def transformBack(vh: VectorD, y: VectorD, d: Int, t: Int): VectorD

Transform the forecast values from time point t of a differenced time series back to the original scale for all horizons (1 to h).

Transform the forecast values from time point t of a differenced time series back to the original scale for all horizons (1 to h).

Value parameters

d

the order of simple differencing

t

the time point being forecasted (@see the forecast method)

vh

the vector of forecasted differenced values for times t+1, ... t+h

y

the original actual time series vector (undifference)

Attributes

def undiff(v: VectorD, y0: Double): VectorD

Undifference the velocity time series by adding the difference to the previous value. Velocity v -> Position y.

Undifference the velocity time series by adding the difference to the previous value. Velocity v -> Position y.

Value parameters

v

the differenced time series (velocity)

y0

the first value in the original time series

Attributes

inline def Δ(y: VectorD): VectorD