SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.linear.multivariate.stationaryprocess
Class InnovationAlgorithmImpl

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.timeseries.linear.multivariate.stationaryprocess.InnovationAlgorithmImpl
Direct Known Subclasses:
InnovationAlgorithm, InnovationAlgorithm

public abstract class InnovationAlgorithmImpl
extends java.lang.Object

This class implements the part of the innovation algorithm that computes the prediction coefficients, V and Θ. Subclasses implement the actual prediction algorithms for XtHat.

See Also:

Field Summary
protected  MultiVariateTimeSeries XtHat
          the one-step ahead predictors, {X^t+1}
 
Constructor Summary
protected InnovationAlgorithmImpl()
           
 
Method Summary
 ImmutableMatrix covariance(int t)
          Get the covariance matrix for prediction errors at time t for X^t+1.
 ImmutableMatrix getTheta(int i, int j)
          Get the coefficients of the linear predictor.
protected  void run(int t, AutoCovarianceFunction K)
          Run the Innovation Algorithm to compute the prediction parameters.
 MultiVariateTimeSeries XtHat()
          Get all the one-step predictions X^t+1, t ∈ [0, t]
 ImmutableVector XtHat(int t)
          Get the one-step prediction X^t+1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XtHat

protected MultiVariateTimeSeries XtHat
the one-step ahead predictors, {X^t+1}

Constructor Detail

InnovationAlgorithmImpl

protected InnovationAlgorithmImpl()
Method Detail

run

protected void run(int t,
                   AutoCovarianceFunction K)
Run the Innovation Algorithm to compute the prediction parameters. This computes the prediction parameters, V and Θ.

Parameters:
t - time series length
K - the covariance structure of the time series

getTheta

public ImmutableMatrix getTheta(int i,
                                int j)
Get the coefficients of the linear predictor.

Parameters:
i - i, ranging from 1 to t
j - j, ranging from 1 to t
Returns:
Θ[i][j]

covariance

public ImmutableMatrix covariance(int t)
Get the covariance matrix for prediction errors at time t for X^t+1.

Parameters:
t - time, ranging from 0 to t
Returns:
the covariance matrix for prediction errors at time t

XtHat

public ImmutableVector XtHat(int t)
Get the one-step prediction X^t+1.

Parameters:
t - time, ranging from 0 to t
Returns:
the one-step prediction X^t+1

XtHat

public MultiVariateTimeSeries XtHat()
Get all the one-step predictions X^t+1, t ∈ [0, t]

Returns:
all the one-step predictions

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.