statsmodels笔记:绘制ACF和PACF

Posted UQI-LIUWJ

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了statsmodels笔记:绘制ACF和PACF相关的知识,希望对你有一定的参考价值。

理论部分见 算法笔记:ARIMA_UQI-LIUWJ的博客-CSDN博客 3.1 & 3.2

1 绘制自相关函数ACF

from statsmodels.graphics.tsaplots import plot_acf
plot_acf(df['Temp'])
plt.show()

2 绘制偏自相关函数PACF

from statsmodels.graphics.tsaplots import plot_pacf
plot_pacf(df['Temp'])
plt.show()

以上是关于statsmodels笔记:绘制ACF和PACF的主要内容,如果未能解决你的问题,请参考以下文章