PACF图这个什么情况下可以说明残差对模型没有影响,蓝色或黄色填充有无区别
# 第一步:先检查平稳序列的自相关图和偏自相关图
fig = plt.figure(figsize=(12, 8))
ax1 = fig.add_subplot(211)
fig = plot_acf(ar, lags=40, ax=ax1)
# lags 表示滞后的阶数
# 第二步:下面分别得到acf 图和pacf 图
ax2 = fig.add_subplot(212)
fig = plot_pacf(ar, lags=40, ax=ax2)