我在计算股票收益的自相关函数。为此,我测试了两个函数,一个是内置于Pandas中的autocorr函数,另一个是statsmodels.tsa提供的acf函数。这是在以下MWE中完成的:from pandas_datareader import data
import matplotlib.pyplot as pltimport datet
Here we can take the average over the past 1 year, i.e. last 12 values.plots:
# I wanted to use method = 'ols'... but it just(自相关函数)和PACF (偏自相关函数)。当我绘制它们时,我得到了一个空白的图形,上面
enter code here我正在做一个项目来分析和预测客户的销售和收入的时间序列。数据是每天的形式,因此我选择频率为7。我对ARIMA模型使用了auto.arima()函数,它给出了ARIMA(0,0,0)(2,1,0)7,这意味着什么?残差图如下所示
在此之后,我添加了假日作为外生变量。)我现在得到的模型是A