com.numericalmethod.suanshu.stats.timeseries.linear.multivariate.stationaryprocess.arima.arma
Class AutoCovariance
java.lang.Object
com.numericalmethod.suanshu.analysis.function.matrix.R2toMatrix
com.numericalmethod.suanshu.stats.timeseries.linear.multivariate.AutoCovarianceFunction
com.numericalmethod.suanshu.stats.timeseries.linear.multivariate.stationaryprocess.arima.arma.AutoCovariance
- All Implemented Interfaces:
- Function, RntoMatrix
public class AutoCovariance
- extends AutoCovarianceFunction
Compute the Auto-CoVariance Function (ACVF) for a vector AutoRegressive Moving Average (ARMA) model, assuming that
EXt = 0.
This implementation solves the Yule-Walker equation.
The R equivalent function are ARMAacf and TacvfAR in package FitAR.
- See Also:
- "P. J. Brockwell and R. A. Davis, "p. 420. Eq. 11.3.15. The Covariance Matrix Function of a Causal ARMA Process. Chapter 11.3. Multivariate Time Series," in Time Series: Theory and Methods, Springer, 2006."
|
Field Summary |
int |
nLags
the number of lags in the result |
|
Constructor Summary |
AutoCovariance(ArimaModel model,
int nLags)
Compute the auto-covariance function of a vector ARMA model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nLags
public final int nLags
- the number of lags in the result
AutoCovariance
public AutoCovariance(ArimaModel model,
int nLags)
- Compute the auto-covariance function of a vector ARMA model.
To solve Eq. 11.3.15, we "expand" the (p+1) matrix equations into (p+1)*m*m linear equations.
m is the dimension of Gamma (ACVF).
- Parameters:
model - an ARIMA specificationnLags - the number of lags in the result
evaluate
public Matrix evaluate(double x1,
double x2)
- Description copied from class:
R2toMatrix
- Compute
f(x1, x2).
- Specified by:
evaluate in class R2toMatrix
- Parameters:
x1 - x1x2 - x2
- Returns:
f(x1, x2)
evaluate
public Matrix evaluate(double i)
- Get the i-th auto-covariance matrix.
- Parameters:
i - the lag
- Returns:
- the i-th auto-covariance matrix
Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.