scalation.analytics

ARMA

class ARMA extends Predictor with Error

This class provide basic time series analysis capabilities for Auto-Regressive (AR) and Moving Average (MA) models. In an ARMA(p, q) model, p and q refer to the order of the Auto-Regressive and Moving Average components of the model. ARMA models are often used for forecasting.

Linear Supertypes
Error, Predictor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ARMA
  2. Error
  3. Predictor
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ARMA(y: VectorD, t: VectorD)

    y

    the input vector (time series data)

    t

    the time vector

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val acf: VectorD

  7. def ar(phi: VectorD): VectorD

    Return a vector that is the predictions of a pth order Auto-Regressive (AR(p)) model.

    Return a vector that is the predictions of a pth order Auto-Regressive (AR(p)) model. f_t = phi_0 * x_t-1 + ... + phi_p-1 * x_t-p + e_t

    phi

    the estimated AR(p) coefficients

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def durbinLevinson: MatrixD

    Apply the Durbin-Levinson Algorithm to iteratively compute the psi matrix.

    Apply the Durbin-Levinson Algorithm to iteratively compute the psi matrix. The last row of the matrix gives AR coefficients.

    See also

    http://www.stat.tamu.edu/~suhasini/teaching673/time_series.pdf

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def est_ar(p: Int = 1): VectorD

    Estimate the coefficients for a pth order Auto-Regressive AR(p) model.

    Estimate the coefficients for a pth order Auto-Regressive AR(p) model. x_t = phi_0 * x_t-1 + ... + phi_p-1 * x_t-p + e_t Uses the Durbin-Levinson Algorithm to determine the coefficients. The phi vector is pth row of psi matrix (ignoring the first (0th) column).

    p

    the order of the AR model

  14. def est_ma(q: Int = 1): VectorD

    Estimate the coefficients for a qth order a Moving Average(q) model.

    Estimate the coefficients for a qth order a Moving Average(q) model. x_t = e_t - theta_0 * e_t-1 - ... - theta_q-1 * e_t-q FIX: use Method of Innovations

  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def flaw(method: String, message: String): Unit

    Show the flaw by printing the error message.

    Show the flaw by printing the error message.

    method

    the method where the error occurred

    message

    the error message

    Definition Classes
    Error
  17. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def ma(theta: VectorD): VectorD

    Return a vector that is the predictions of a qth order Moving Average (MA) model.

    Return a vector that is the predictions of a qth order Moving Average (MA) model. x_t = e_t + theta_0 * e_t-1 + ... + theta_q-1 * e_t-q

    theta

    the estimated MA(q) coefficients

  21. val mu: Double

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. var pacf: VectorD

  26. def plotFunc(fVec: VectorD, name: String): Unit

    Plot a function, e.

    Plot a function, e.g., Auto-Correlation Function (ACF), Partial ACF (PACF).

    fVec

    the vector given function values

    name

    the name of the function

  27. def predict(z: MatrixD): VectorD

    Given several time vectors, forecast the y-values.

    Given several time vectors, forecast the y-values.

    z

    the matrix containing row time-vectors to use for prediction

    Definition Classes
    ARMAPredictor
  28. def predict(y: VectorD): Double

    For all the time points in vector t, predict the value of y = f(t) by .

    For all the time points in vector t, predict the value of y = f(t) by ...

    Definition Classes
    ARMAPredictor
  29. def predict(z: VectorI): Double

    Given a new discrete data vector z, predict the y-value of f(z).

    Given a new discrete data vector z, predict the y-value of f(z).

    z

    the vector to use for prediction

    Definition Classes
    Predictor
  30. val sig2: Double

  31. def smooth(l: Int): VectorD

    Smooth the y vector by taking the lth order moving average.

    Smooth the y vector by taking the lth order moving average.

    l

    the number of points to average

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. def train(): Unit

    Fit an ARMA model to times series data.

    Fit an ARMA model to times series data.

    Definition Classes
    ARMAPredictor
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Error

Inherited from Predictor

Inherited from AnyRef

Inherited from Any