| Modifier and Type | Interface and Description |
|---|---|
static class |
Arima.Constant
An indicator for whether an ARIMA model has a constant term.
|
static class |
Arima.Drift
An indicator for whether an ARIMA model has a drift term.
|
static class |
Arima.FittingStrategy
The strategy to be used for fitting an ARIMA model.
|
| Modifier and Type | Method and Description |
|---|---|
double |
aic()
Get the Akaike Information Criterion (AIC) for this model.
|
ArimaCoefficients |
coefficients()
Get the coefficients of this ARIMA model.
|
TimeSeries |
fittedSeries()
Get the model fitted values, which are in-sample one-step ahead forecasts.
|
Forecast |
forecast(int steps,
double alpha)
Produce a forecast from this model up to the given number of steps ahead.
|
double |
logLikelihood()
Get the natural logarithm of the likelihood of the model given the data.
|
static Arima |
model(TimeSeries observations,
ArimaCoefficients coeffs,
Arima.FittingStrategy fittingStrategy)
Create a new ARIMA model from the given observations, model coefficients, and fitting strategy.
|
static Arima |
model(TimeSeries observations,
ArimaCoefficients coeffs,
TimePeriod seasonalCycle)
Create a new ARIMA model from the given observations, model coefficients, and seasonal cycle.
|
static Arima |
model(TimeSeries observations,
ArimaCoefficients coeffs,
TimePeriod seasonalCycle,
Arima.FittingStrategy fittingStrategy)
Create a new ARIMA model from the given observations, model coefficients, seasonal cycle, and fitting strategy.
|
static Arima |
model(TimeSeries observations,
ArimaOrder order)
Create a new ARIMA model from the given observations and model order.
|
static Arima |
model(TimeSeries observations,
ArimaOrder order,
Arima.FittingStrategy fittingStrategy)
Create a new ARIMA model from the given observations, model order, and fitting strategy.
|
static Arima |
model(TimeSeries observations,
ArimaOrder order,
TimePeriod seasonalCycle)
Create a new ARIMA model from the given observations, model order, and seasonal cycle.
|
static Arima |
model(TimeSeries observations,
ArimaOrder order,
TimePeriod seasonalCycle,
Arima.FittingStrategy fittingStrategy)
Create a new ARIMA model from the given observations, model order, seasonal cycle, and fitting strategy.
|
TimeSeries |
observations()
Get the series of observations.
|
ArimaOrder |
order()
Get the order of this ARIMA model.
|
TimeSeries |
predictionErrors()
Get the model prediction errors, the difference between the observed values and the model fitted values.
|
int |
seasonalFrequency()
Get the frequency of observations per seasonal cycle.
|
double |
sigma2()
Get the estimate of the process variance.
|
double[] |
stdErrors()
Get the standard errors of the model coefficients.
|
static Arima model(@NonNull TimeSeries observations, @NonNull ArimaOrder order)
Arima.FittingStrategy to conditional sum-of-squares with maximum likelihood
and the seasonal cycle to one year.observations - the time series of observations.order - the order of the ARIMA model.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaOrder order, @NonNull TimePeriod seasonalCycle)
Arima.FittingStrategy to conditional sum-of-squares with maximum likelihood.observations - the time series of observations.order - the order of the ARIMA model.seasonalCycle - the amount of time it takes for the seasonal pattern to complete one cycle. For example,
monthly data usually has a cycle of one year, hourly data a cycle of one day, etc...
However, a seasonal cycle may be an arbitrary amount of time.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaOrder order, @NonNull Arima.FittingStrategy fittingStrategy)
observations - the time series of observations.order - the order of the ARIMA model.fittingStrategy - the strategy to use to fit the model to the data. Maximum-likelihood estimates are
typically preferred for greater precision and accuracy, but take longer to obtain than
conditional sum-of-squares estimates.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaOrder order, @NonNull TimePeriod seasonalCycle, @NonNull Arima.FittingStrategy fittingStrategy)
observations - the time series of observations.order - the order of the ARIMA model.seasonalCycle - the amount of time it takes for the seasonal pattern to complete one cycle. For example,
monthly data usually has a cycle of one year, hourly data a cycle of one day, etc...
However, a seasonal cycle may be an arbitrary amount of time.fittingStrategy - the strategy to use to fit the model to the data. Maximum-likelihood estimates are
typically preferred for greater precision and accuracy, but take longer to obtain than
conditional sum-of-squares estimates.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaCoefficients coeffs, @NonNull Arima.FittingStrategy fittingStrategy)
observations - the time series of observations.coeffs - the coefficients of the model.fittingStrategy - the strategy to use to fit the model to the data. Maximum-likelihood estimates are
typically preferred for greater precision and accuracy, but take longer to obtain than
conditional sum-of-squares estimates.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaCoefficients coeffs, @NonNull TimePeriod seasonalCycle)
Arima.FittingStrategy to conditional sum-of-squares with maximum likelihood.observations - the time series of observations.coeffs - the coefficients of the model.seasonalCycle - the amount of time it takes for the seasonal pattern to complete one cycle. For example,
monthly data usually has a cycle of one year, hourly data a cycle of one day, etc...
However, a seasonal cycle may be an arbitrary amount of time.static Arima model(@NonNull TimeSeries observations, @NonNull ArimaCoefficients coeffs, @NonNull TimePeriod seasonalCycle, @NonNull Arima.FittingStrategy fittingStrategy)
observations - the time series of observations.coeffs - the coefficients of the model.seasonalCycle - the amount of time it takes for the seasonal pattern to complete one cycle. For example,
monthly data usually has a cycle of one year, hourly data a cycle of one day, etc...
However, a seasonal cycle may be an arbitrary amount of time.fittingStrategy - the strategy to use to fit the model to the data. Maximum-likelihood estimates are
typically preferred for greater precision and accuracy, but take longer to obtain than
conditional sum-of-squares estimates.Forecast forecast(int steps, double alpha)
ModelTimeSeries observations()
Modelobservations in interface ModelTimeSeries fittedSeries()
ModelfittedSeries in interface ModelTimeSeries predictionErrors()
ModelpredictionErrors in interface Modeldouble sigma2()
int seasonalFrequency()
double[] stdErrors()
ArimaCoefficients coefficients()
ArimaOrder order()
double logLikelihood()
double aic()