ARMAX model forecasting leads to “ValueError: matrices are not aligned” when passing exog values
问题 I'm struggling with forecasting out of sample values with an ARMAX model. Fitting the model works fine. armax_mod31 = sm.tsa.ARMA(endog = sales, order = (3,1), exog = media).fit() armax_mod31.fittedvalues Forecasting without exogenous values, as far as I have an according model, works fine as well. arma_mod31 = sm.tsa.ARMA(sales, (3,1)).fit() all_arma = arma_mod31.forecast(steps = 14, alpha = 0.05) forecast_arma = Series(res_arma[0], index = pd.date_range(start = "2013-08-21", periods = 14))