简体   繁体   English

适合ARIMA模型的时间序列的方差

[英]Variance of a Time Series Fitted to an ARIMA Model

I think this is a basic question, but maybe I am confusing the concepts. 我认为这是一个基本问题,但也许我对这些概念感到困惑。

Suppose I fit an ARIMA model to a time series using, for example, the function auto.arima() in the R forecast package. 假设我使用例如R预测包中的函数auto.arima()将ARIMA模型拟合到时间序列。 The model assumes constant variance. 该模型假设方差不变。 How do I obtain that variance? 我如何获得这种差异? Is it the variance of the residuals? 它是残差的方差吗?

If I use the model for forecasting, I know that it gives me the conditional mean. 如果我使用模型进行预测,我知道它给了我条件均值。 I'd like to know the (constant) variance as well. 我也想知道(常数)方差。

Thank you. 谢谢。

Bruno 布鲁诺

from the arima() help I see 从我看到的arima()帮助

sigma2  
  the MLE of the innovations variance.

var.coef    
  the estimated variance matrix of the 
  coefficients coef, which can be extracted 
  by the vcov method.

It seems like which you want will depend on your model. 看起来你想要的将取决于你的模型。 I am pretty sure you want sigma2. 我很确定你想要sigma2。

to get the sigma2 do: 得到sigma2做:

?arima
x=cumsum(rcauchy(1000))

aax=auto.arima(x)
str(aax)
aax$sigma2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM