I use statsmodels to match the ARMA model.
import statsmodels.api as sm arma = sm.tsa.ARMA(data, order =(4,4)); results = arma.fit( full_output=False, disp=0);
Where data is a one-dimensional array. I know to get rough predictions:
pred = results.predict();
Now, given the second data set, data2 , how can I use a previously calibrated model to generate a series with forecasts (forecasts) based on these observations?
python statsmodels forecasting
sirip82
source share