本文整理汇总了Python中statsmodels.tsa.arima_process.ArmaProcess.isinvertible方法的典型用法代码示例。如果您正苦于以下问题:Python ArmaProcess.isinvertible方法的具体用法?Python ArmaProcess.isinvertible怎么用?Python ArmaProcess.isinvertible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类statsmodels.tsa.arima_process.ArmaProcess
的用法示例。
在下文中一共展示了ArmaProcess.isinvertible方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ArmaProcess
# 需要导入模块: from statsmodels.tsa.arima_process import ArmaProcess [as 别名]
# 或者: from statsmodels.tsa.arima_process.ArmaProcess import isinvertible [as 别名]
np.random.seed(1234)
# include zero-th lag
arparams = np.array([1, .75, -.65, -.55, .9])
maparams = np.array([1, .65])
# <markdowncell>
# * Let's make sure this models is estimable.
# <codecell>
arma_t = ArmaProcess(arparams, maparams)
# <codecell>
arma_t.isinvertible()
# <codecell>
arma_t.isstationary()
# <rawcell>
# * What does this mean?
# <codecell>
fig = plt.figure(figsize=(12,8))
ax = fig.add_subplot(111)
ax.plot(arma_t.generate_sample(size=50));
示例2: ArmaProcess
# 需要导入模块: from statsmodels.tsa.arima_process import ArmaProcess [as 别名]
# 或者: from statsmodels.tsa.arima_process.ArmaProcess import isinvertible [as 别名]
self.irregular.plot(ax=axes[3], legend=False)
axes[3].set_ylabel('Irregular')
fig.tight_layout()
return fig
if __name__ == "__main__":
import numpy as np
from statsmodels.tsa.arima_process import ArmaProcess
np.random.seed(123)
ar = [1, .35, .8]
ma = [1, .8]
arma = ArmaProcess(ar, ma, nobs=100)
assert arma.isstationary()
assert arma.isinvertible()
y = arma.generate_sample()
dates = pd.date_range("1/1/1990", periods=len(y), freq='M')
ts = pd.TimeSeries(y, index=dates)
xpath = "/home/skipper/src/x12arima/x12a"
try:
results = x13_arima_analysis(xpath, ts)
except:
print("Caught exception")
results = x13_arima_analysis(xpath, ts, log=False)
# import pandas as pd
# seas_y = pd.read_csv("usmelec.csv")