This example shows how to specify a regression model with SARMA errors without a regression intercept.
Specify the default regression model with errors:
Mdl = regARIMA('ARLags',1,'SARLags',[4, 8],...'Seasonality',4,'MALags',1,'SMALags',4,'Intercept',0)
Mdl = regARIMA with properties: Description: "ARMA(1,1) Error Model Seasonally Integrated with Seasonal AR(8) and MA(4) (Gaussian Distribution)" Distribution: Name = "Gaussian" Intercept: 0 Beta: [1×0] P: 13 Q: 5 AR: {NaN} at lag [1] SAR: {NaN NaN} at lags [4 8] MA: {NaN} at lag [1] SMA: {NaN} at lag [4] Seasonality: 4 Variance: NaN
The name-value pair argument:
'ARLags',1
specifies which lags have nonzero coefficients in the nonseasonal autoregressive polynomial, so
.
'SARLags',[4 8]
specifies which lags have nonzero coefficients in the seasonal autoregressive polynomial, so
.
'MALags',1
specifies which lags have nonzero coefficients in the nonseasonal moving average polynomial, so
.
'SMALags',4
specifies which lags have nonzero coefficients in the seasonal moving average polynomial, so
.
'Seasonality',4
specifies the degree of seasonal integration and corresponds to
.
The software setsIntercept
to 0, but all other parameters inMdl
areNaN
values by default.
PropertyP
=p+D+
+ s = 1 + 0 + 8 + 4 = 13, and propertyQ
=q+
= 1 + 4 = 5. Therefore, the software requires at least 13 presample observation to initializeMdl
.
SinceIntercept
is not aNaN
, it is an equality constraint during estimation. In other words, if you passMdl
and data intoestimate
, thenestimate
setsIntercept
to 0 during estimation.
You can modify the properties ofMdl
using dot notation.
Be aware that the regression model intercept (Intercept
) is not identifiable in regression models with ARIMA errors. If you want to estimateMdl
, then you must setIntercept
to a value using, for example, dot notation. Otherwise,estimate
might return a spurious estimate ofIntercept
.
This example shows how to specify values for all parameters of a regression model with SARIMA errors.
Specify the regression model with errors:
where 与单位方差高斯。
Mdl = regARIMA('AR',0.2,'SAR',{0.25, 0.1},'SARLags',[12 24],...'D',1,'Seasonality',12,'MA',0.15,'Intercept',0,'Variance',1)
Mdl = regARIMA with properties: Description: "ARIMA(1,1,1) Error Model Seasonally Integrated with Seasonal AR(24) (Gaussian Distribution)" Distribution: Name = "Gaussian" Intercept: 0 Beta: [1×0] P: 38 D: 1 Q: 1 AR: {0.2} at lag [1] SAR: {0.25 0.1} at lags [12 24] MA: {0.15} at lag [1] SMA: {} Seasonality: 12 Variance: 1
The parameters inMdl
do not containNaN
values, and therefore there is no need to estimateMdl
.然而,您可以模拟或预测反应by passingMdl
tosimulate
orforecast
.
This example shows how to set the innovation distribution of a regression model with SARIMA errors to atdistribution.
Specify the regression model with errors:
where has atdistribution with the default degrees of freedom and unit variance.
Mdl = regARIMA('AR',0.2,'SAR',{0.25, 0.1},'SARLags',[12 24],...'D',1,'Seasonality',12,'MA',0.15,'Intercept',0,...'Variance',1,'Distribution','t')
Mdl = regARIMA with properties: Description: "ARIMA(1,1,1) Error Model Seasonally Integrated with Seasonal AR(24) (t Distribution)" Distribution: Name = "t", DoF = NaN Intercept: 0 Beta: [1×0] P: 38 D: 1 Q: 1 AR: {0.2} at lag [1] SAR: {0.25 0.1} at lags [12 24] MA: {0.15} at lag [1] SMA: {} Seasonality: 12 Variance: 1
The default degrees of freedom isNaN
.If you don't know the degrees of freedom, then you can estimate it by passingMdl
and the data toestimate
.
Specify a distribution.
Mdl.Distribution = struct('Name','t','DoF',10)
Mdl = regARIMA with properties: Description: "ARIMA(1,1,1) Error Model Seasonally Integrated with Seasonal AR(24) (t Distribution)" Distribution: Name = "t", DoF = 10 Intercept: 0 Beta: [1×0] P: 38 D: 1 Q: 1 AR: {0.2} at lag [1] SAR: {0.25 0.1} at lags [12 24] MA: {0.15} at lag [1] SMA: {} Seasonality: 12 Variance: 1
You can simulate or forecast responses by passingMdl
tosimulate
orforecast
becauseMdl
is completely specified.
In applications, such as simulation, the software normalizes the randomtinnovations. In other words,Variance
overrides the theoretical variance of thetrandom variable (which isDoF
/(DoF
- 2)), but preserves the kurtosis of the distribution.
regARIMA
|estimate
|simulate
|forecast