
statsmodels.tsa.stattools.adfuller()结构及用法详解
发布日期:2021-05-07 14:30:47
浏览次数:15
分类:精选文章
本文共 1979 字,大约阅读时间需要 6 分钟。
是一个Python模块,提供了大量统计模型的类和函数。主要功能有:
- regression: Generalized least squares (including weighted least squares and least squares with autoregressive errors), ordinary least squares.
- glm: Generalized linear models with support for all of the one-parameter exponential family distributions. discrete choice models: Poisson, probit, logit, multinomial logit
- rlm: Robust linear models with support for several M-estimators.
- tsa: Time series analysis models, including ARMA, AR, VAR
- nonparametric : (Univariate) kernel density estimators
- datasets: Datasets to be distributed and used for examples and in testing.
- PyDTA: Tools for reading Stata .dta files into numpy arrays.
- stats: a wide range of statistical tests
-
statsmodels.tsa.stattools.adfuller()
statsmodels.tsa.stattools.adfuller(x, maxlag=None, regression='c', autolag='AIC', store=False, regresults=False)
迪基-福勒检验Augmented Dickey-Fuller(ADF) Test
-
参数详解
-
x (array_like*,* 1d) 数据序列
-
maxlag (int) – Maximum lag which is included in test, default 12*(nobs/100)^{1/4}
-
regression ′ c ′ , ′ c t ′ , ′ c t t ′ , ′ n c ′ {'c','ct','ctt','nc'} ′c′,′ct′,′ctt′,′nc′
Constant and trend order to include in regression
- ’c’ : constant only (default)
- ’ct’ : constant and trend
- ’ctt’ : constant, and linear and quadratic trend
- ’nc’ : no constant, no trend
-
autolag ′ A I C ′ , ′ B I C ′ , ′ t − s t a t ′ , N o n e {'AIC', 'BIC', 't-stat', None} ′AIC′,′BIC′,′t−stat′,None
- if None, then maxlag lags are used
- if ‘AIC’ (default) or ‘BIC’, then the number of lags is chosen to minimize the corresponding information criterion
- ’t-stat’ based choice of maxlag. Starts with maxlag and drops a lag until the t-statistic on the last lag length is significant using a 5%-sized test
-
store (bool) – If True, then a result instance is returned additionally to the adf statistic. Default is False
-
regresults (bool*,* optional) – If True, the full regression results are returned. Default is False
发表评论
最新留言
第一次来,支持一个
[***.219.124.196]2025年03月22日 20时54分46秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
5.Mybatis复杂映射开发
2021-05-08
Servlet2.5的增删改查功能分析与实现------删除功能(四)
2021-05-08
环境配置 jdk_mysql_myeclipse8.6
2021-05-08
Session验证码的实现(2018-7-3)
2021-05-08
spring启动错误:Could not resolve placeholder
2021-05-08
日志写入xml上传ftp遇到的问题
2021-05-08
下载任意版本vmware对应的vmware tools
2021-05-08
将 github 中他人的 仓库 导入 码云中,从而 加快下载速度的 方式
2021-05-08
Java 类加载的过程 加载、验证、准备、解析、初始化
2021-05-08
JavaWeb---实现JavaBean来接收参数、请求转发、域对象
2021-05-08
瀚高数据库中 java代码类型与bit对应(APP)
2021-05-08
选择性估算器绕过行安全策略漏洞
2021-05-08
PostgreSQL中的触发器
2021-05-08
对PostgreSQL数据库结构的宏观理解
2021-05-08
Postgresql 日期和时间类型
2021-05-08
xmin、xmax、cmin、cmax
2021-05-08
查询某表格上次进行vacuum的时间
2021-05-08
invalid byte sequence for encoding
2021-05-08
Highgo Database故障收集脚本
2021-05-08
failed to initialize the database
2021-05-08