Multiple inputs into Statsmodels ARIMA in Python
问题 I am trying to fit a ARIMA model with multiple inputs. As long as the input was a single array it worked fine. Here, I was adviced to put input arrays into a multidimensional array-like structure. So I did: import numpy as np from statsmodels.tsa.arima_model import ARIMA a = [1, 2, 3] b = [4, 5, 6] data = np.dstack([a, b]) for p in range(6): for d in range(2): for q in range(4): order = (p,d,q) try: model = ARIMA(data, order=(p,d,q)) print("this works:{}, {}, {} ".format(p,d,q)) except: pass