ADFTest()
from pmdarima
and adfuller()
from statsmodels
produce different
p-values
when given as input the same time series. Why is this happening?
For example:
from pmdarima.arima.stationarity import ADFTest
adf_test = ADFTest()
p_val1, should_diff = adf_test.should_diff(series.arrivals)
print(p_val1)
from statsmodels.tsa.stattools import adfuller
ad_fuller_result = adfuller(series.arrivals)
p_val2 = ad_fuller_result[1]
print(p_val2)
Output:
p_val1 = 0.05134192567802651
p_val2 = 0.3632790519019964