赞
踩
ARIMA(p,d,q)模型全称为差分自回归移动平均模型
(Autoregressive Integrated Moving Average Model,简记ARIMA).
自回归(AR),差分(I),移动平均(MA)
趋势参数:
自相关函数 ACF (autocorrelation function)
偏自相关函数 PACF (partial autocorrelation function)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(style = 'whitegrid', context = 'poster')
%matplotlib inline
Sentiment = pd.read_csv('sentiment.csv', index_col=0, parse_dates=[0])
Sentiment.head()
sns.set(style = 'ticks', context = 'poster')
sentiment_select = Sentiment.loc['2004' : '2016']
sentiment_select.plot(figsize = (12, 8))
plt.legend(bbox_to_anchor = (1.25, 0.5))
plt.
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。