theabc50111 / DL2021_final_dmlab_HCT_nccu

0 stars 0 forks source link

data preprocess & arima model univariate #1

Closed theabc50111 closed 2 years ago

theabc50111 commented 2 years ago
theabc50111 commented 2 years ago

ref: log transform for ARIMA model

theabc50111 commented 2 years ago

Augmented Dickey-Fuller unit root test. explanation: adfuller: adf (float): 测试统计 pvalue (float) : MacKinnon基于MacKinnon的近似p值(1994年,2010年) usedlag (int): 使用的滞后数量 nobs( int): 用于ADF回归的观察数和临界值的计算 critical values(dict): 测试统计数据的临界值为1%,5%和10%。基于MacKinnon(2010) icbest(float): 如果autolag不是None,则最大化信息标准。 resstore (ResultStore,可选): 一个虚拟类,其结果作为属性附加

    如何确定该序列能否平稳呢?主要看:
        1%、%5、%10不同程度拒绝原假设的统计值和ADF Test result的比较,ADF Test result同时小于1%、5%、10%即说明非常好地拒绝该假设,本数据中,adf结果为-2.02, 大于三个level的统计值。所以是不平稳的,需要进行一阶差分后,再进行检验。
        P-value是否非常接近0,接近0,则是平稳的,否则,不平稳。

ref:

theabc50111 commented 2 years ago

ARIMA explanation: https://ithelp.ithome.com.tw/articles/10252815

theabc50111 commented 2 years ago

timeseries stationary preprocessing