SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.linear.univariate.stationaryprocess.arima.arma
Class ConditionalSumOfSquares

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.timeseries.linear.univariate.stationaryprocess.arima.arma.ConditionalSumOfSquares
All Implemented Interfaces:
ArmaFitting

public class ConditionalSumOfSquares
extends java.lang.Object
implements ArmaFitting

This class does fitting for the ARIMA model by minimizing the conditional sum of squares (CSS). The CSS estimates are conditional on the assumption that the past unobserved errors are 0s.

The values produced here can be used as a starting point for the maximum likelihood algorithm.

Note that the order of integration is taken as an input, not estimated.

See Also:
"P. J. Brockwell and R. A. Davis, "Chapter 8.7. Model Building and Forecasting with ARIMA Processes," in Time Series: Theory and Methods, Springer, 2006."

Constructor Summary
ConditionalSumOfSquares(TimeSeries xt, int p, int d, int q)
          Fit an ARIMA model for the observations.
 
Method Summary
 double AIC()
          Compute the AIC, a model selection criterion.
 double AICC()
          Compute the AICC, a model selection criterion.
 ImmutableMatrix covariance()
          Compute the asymptotic covariance matrix for the estimated parameters, φ and θ.
 ArmaModel getFittedARMA()
          Get the ARMA coefficients, φ.
 int nParams()
          Compute the number of parameters for the estimation/fitting.
 ImmutableVector stderr()
          Compute the asymptotic standard errors for the estimated parameters, φ and θ.
 double var()
          Get the variance of the white noise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalSumOfSquares

public ConditionalSumOfSquares(TimeSeries xt,
                               int p,
                               int d,
                               int q)
Fit an ARIMA model for the observations.

Parameters:
xt - the time series of observations
p - the number of AR terms
d - the order of integration
q - the number of MA terms
Method Detail

getFittedARMA

public ArmaModel getFittedARMA()
Description copied from interface: ArmaFitting
Get the ARMA coefficients, φ.

Specified by:
getFittedARMA in interface ArmaFitting
Returns:
φ and θ

var

public double var()
Description copied from interface: ArmaFitting
Get the variance of the white noise.

Specified by:
var in interface ArmaFitting
Returns:
σ^2

covariance

public ImmutableMatrix covariance()
Compute the asymptotic covariance matrix for the estimated parameters, φ and θ.

The estimators are asymptotically normal.

Specified by:
covariance in interface ArmaFitting
Returns:
the asymptotic covariance matrix
See Also:
"P. J. Brockwell and R. A. Davis, "Eq. 10.8.27. Thm. 10.8.2. Chapter 10.8. Model Building and Forecasting with ARIMA Processes," in Time Series: Theory and Methods, Springer, 2006."

stderr

public ImmutableVector stderr()
Compute the asymptotic standard errors for the estimated parameters, φ and θ.

The estimators are asymptotically normal.

Specified by:
stderr in interface ArmaFitting
Returns:
the asymptotic errors
See Also:
"P. J. Brockwell and R. A. Davis, "Eq. 10.8.27. Thm. 10.8.2. Chapter 10.8. Model Building and Forecasting with ARIMA Processes," in Time Series: Theory and Methods, Springer, 2006."

nParams

public int nParams()
Compute the number of parameters for the estimation/fitting.

the AR terms, MA terms, and variance (sigma^2)

Returns:
the number of parameters

AIC

public double AIC()
Compute the AIC, a model selection criterion.

Specified by:
AIC in interface ArmaFitting
Returns:
the AIC
See Also:
Wikipedia: Akaike information criterion

AICC

public double AICC()
Compute the AICC, a model selection criterion.

Specified by:
AICC in interface ArmaFitting
Returns:
the AICC
See Also:
"P. J. Brockwell and R. A. Davis, "Eq. 9.2.1. Chapter 9.2. Model Building and Forecasting with ARIMA Processes," in Time Series: Theory and Methods, Springer, 2006."

SuanShu, a Java numerical and statistical library

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