alkaline-ml / pmdarima

A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
https://www.alkaline-ml.com/pmdarima
MIT License
1.59k stars 234 forks source link

[MRG] Consistent prediction results for simple_differencing = True and False #439

Closed drxyzw closed 3 years ago

drxyzw commented 3 years ago

Description

SARIMA and ARIMA predict() and predict_in_sample() now return undifferenced prediction and confidence intervals if simple_differencing = True. When d or D is not 0, the two functions used to return differenced results. This was not consistent with behaviors of simple_differencing = False and corresponding R library.

Fixes #421

Type of change

How Has This Been Tested?

Added two tests to pmdarima\pmdarima\arima\tests\test_auto.py. The tests to check if the prediction results are similar for simple_differencing = True and False.

Checklist:

tgsmith61591 commented 3 years ago

@drxyzw this is a great PR, thanks so much for your contribution, and sorry for the time it took me to get back to you. I've been taking some time off.

drxyzw commented 3 years ago

No problem, and thank you for your review and approval.