ARX_MV

scalation.modeling.forecasting.ARX_MV
object ARX_MV

The ARX_MV object supports regression for Time Series data. Multi-horizon forecasting supported via the DIRECT method. Given a response vector y, a predictor matrix x is built that consists of lagged y vectors. Additional future response vectors are built for training. y_t = b dot x where x = [y_{t-1}, y_{t-2}, ... y_{t-lags}].

Attributes

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

Members list

Value members

Concrete methods

def apply(y: VectorD, lags: Int, h: Int, intercept: Boolean, hparam: HyperParameter): RegressionMV

Create a RegressionMV object from a response vector. The input/data matrix x is formed from the lagged y vectors as columns in matrix x.

Create a RegressionMV object from a response vector. The input/data matrix x is formed from the lagged y vectors as columns in matrix x.

Value parameters

h

the forecasting horizon (1, 2, ... h)

hparam

the hyper-parameters (use Regression.hp for default)

intercept

whether to add a column of all ones to the matrix (intercept)

lags

the maximum lag included (inclusive)

y

the original un-expanded output/response vector

Attributes

def exo(y: VectorD, lags: Int, ex: MatrixD, h: Int, intercept: Boolean, hparam: HyperParameter)(elag1: Int, elag2: Int): RegressionMV

Create a RegressionMV object from a response vector. The input/data matrix x is formed from the lagged y vectors as columns in matrix x. In addition, lagged exogenous variables are added.

Create a RegressionMV object from a response vector. The input/data matrix x is formed from the lagged y vectors as columns in matrix x. In addition, lagged exogenous variables are added.

Value parameters

elag1

the minimum exo lag included (inclusive)

elag2

the maximum exo lag included (inclusive)

h

the forecasting horizon (1, 2, ... h)

hparam

the hyper-parameters (use Regression.hp for default)

intercept

whether to add a column of all ones to the matrix (intercept)

lags

the maximum lag included (inclusive)

y

the original un-expanded output/response vector

Attributes

def rescale(y: VectorD, lags: Int, h: Int, intercept: Boolean, hparam: HyperParameter): RegressionMV

Create a RegressionMV object from a response matrix. The input/data matrix x is formed from the lagged y vectors as columns in matrix x. This method provides data rescaling.

Create a RegressionMV object from a response matrix. The input/data matrix x is formed from the lagged y vectors as columns in matrix x. This method provides data rescaling.

Value parameters

h

the forecasting horizon (1, 2, ... h)

hparam

the hyper-parameters (use Regression.hp for default)

intercept

whether to add a column of all ones to the matrix (intercept)

lags

the maximum lag included (inclusive)

y

the original un-expanded output/response vector

Attributes

def rollValidate(mod: PredictorMV & Fit, rc: Int): Unit

Use rolling-validation to compute test Quality of Fit (QoF) measures by dividing the dataset into a TESTING SET (tr) and a TRAINING SET (te) as follows: [ <-- tr_size --> | <-- te_size --> ] This version calls predict for one-step ahead out-of-sample forecasts.

Use rolling-validation to compute test Quality of Fit (QoF) measures by dividing the dataset into a TESTING SET (tr) and a TRAINING SET (te) as follows: [ <-- tr_size --> | <-- te_size --> ] This version calls predict for one-step ahead out-of-sample forecasts.

Value parameters

mod

the forecasting model being used (e.g., ARX_MV)

rc

the retraining cycle (number of forecasts until retraining occurs)

Attributes

See also

RollingValidation

def split_TnT(x: MatrixD, y: MatrixD, ratio: Double): (MatrixD, MatrixD, MatrixD, MatrixD)

Split the x matrix and y matrix into training and testing sets.

Split the x matrix and y matrix into training and testing sets.

Value parameters

ratio

the ratio of the TESTING set to the full dataset (most common 70-30, 80-20)

x

the x data/input matrix

y

the y response/output matrix

Attributes