Correlogram

scalation.mathstat.Correlogram
trait Correlogram(y: VectorD, adjusted: Boolean)

The Correlogram trait provides functions for computing the Auto-Correlation Function (ACF) and the Partial Auto-Correlation Function (PACF).

Value parameters

adjusted

whether to adjust to account for the number of elements in the sum Σ (or use dim-1)

y

the time series data (response vector)

Attributes

See also

VectorD.acov

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AR
class ARMA
class ARIMA
class AR
class ARMA
class NullModel
class QuadSpline
class RandomWalk
class TrendModel
Show all

Members list

Value members

Concrete methods

inline def acF: VectorD

Return the autocorrelation vector (ACF).

Return the autocorrelation vector (ACF).

Attributes

def durbinLevinson(g: VectorD, ml: Int): MatrixD

Apply the Durbin-Levinson Algorithm to iteratively compute the psi matrix. The last/p-th row of the matrix gives AR coefficients. Note, also known as Levinson-Durbin.

Apply the Durbin-Levinson Algorithm to iteratively compute the psi matrix. The last/p-th row of the matrix gives AR coefficients. Note, also known as Levinson-Durbin.

Value parameters

g

the auto-covariance vector (gamma)

ml

the maximum number of lags

Attributes

See also
def makeCorrelogram(y_: VectorD): Unit

Make a Correlogram, i.e., compute stats, psi and pacf.

Make a Correlogram, i.e., compute stats, psi and pacf.

Value parameters

y_

the current (e.g., training) times-series to use (defaults to full y)

Attributes

inline def pacF: VectorD

Return the partial autocorrelation vector (PACF).

Return the partial autocorrelation vector (PACF).

Attributes

def plotCorrelogram(show: Boolean): Unit

Plot both the Auto-Correlation Function (ACF) and the Partial Auto-Correlation Function (PACF) with confidence bound.

Plot both the Auto-Correlation Function (ACF) and the Partial Auto-Correlation Function (PACF) with confidence bound.

Value parameters

show

whether to show the ACF, PACF values

Attributes

def plotFunc(fVec: VectorD, name: String, show: Boolean): Unit

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

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

Value parameters

fVec

the vector given function values

name

the name of the function

show

whether to show the fVec values

Attributes

inline def psiM: MatrixD

Return the psi matrix.

Return the psi matrix.

Attributes

inline def statsF: Stats4TS

Return basic statistics on time-series y or y_.

Return basic statistics on time-series y or y_.

Attributes