【python]ADF分析

from statsmodels.tsa.stattools import adfuller
from sklearn.cluster import KMeans
import numpy as np
import matplotlib.pyplot as plt

x=np.array([252152.571143349,270111.458135572,268580.888727272,282743.915705322,272335.598585298,246773.132406309,])

xx = np.diff(x)
result = adfuller(xx)
print(result)
发布了38 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_41514794/article/details/95993531