public class ConditionalSumOfSquares extends java.lang.Object implements ARMAFitting
Note that the order of integration is taken as an input, not estimated.
The values produced here can be used as a starting point for the maximum likelihood algorithm.
The R equivalent functions is arima.
| Constructor and Description |
|---|
ConditionalSumOfSquares(TimeSeries xt,
int p,
int d,
int q)
Fit an ARIMA model for the observations.
|
| Modifier and Type | Method and Description |
|---|---|
double |
AIC()
Compute the AIC, a model selection criterion.
|
double |
AICC()
Compute the AICC, a model selection criterion.
|
Matrix |
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 θ.
|
java.lang.String |
toString() |
double |
var()
Get the variance of the white noise.
|
public ConditionalSumOfSquares(TimeSeries xt, int p, int d, int q)
If the differenced input time series is not zero-mean, we first de-mean it before running the algorithm as in Brockwell and Davis. When we output the model, we will compute the intercept to match the mean.
We only fit an ARMA model. d is supplied as an argument.
xt - the time series of observationsp - the number of AR termsd - the order of integrationq - the number of MA termspublic ARMAModel getFittedARMA()
ARMAFittinggetFittedARMA in interface ARMAFittingpublic double var()
ARMAFittingvar in interface ARMAFittingpublic Matrix covariance()
The estimators are asymptotically normal.
covariance in interface ARMAFittingpublic ImmutableVector stderr()
The estimators are asymptotically normal.
stderr in interface ARMAFittingpublic int nParams()
the AR terms, MA terms, and variance (sigma^2)
public double AIC()
AIC in interface ARMAFittingpublic double AICC()
AICC in interface ARMAFittingpublic java.lang.String toString()
toString in class java.lang.Object