Hi Chad,Thanks for the response. Here's the data that I used to fit with in sample prediction:Here I apply the model to another time series, with out of sample forecasting starting at x=404:You can see the first value is off, but by the time it gets to out of sample it generally works. Here you can see the issue (out of sample forecasting again starting at x=404):Any idea why it's doing this or how to fix it?Thanks again, really appreciate it!Sam
Sorry, here are two time series and the code I used:
with statsmodels version '0.11.0dev0+482.gfad69bc'```pythonfrom statsmodels.tsa.statespace.sarimax import SARIMAXmodel=SARIMAX(ts1,order=(0, 0, 1),seasonal_order=(0,1,0,101),trend='ct',maxiter=10000)
model_fit=model.fit()newmodel=model_fit.apply(ts2[:404]) #404:505 supposed to be out of sample
preds=newmodel.predict(0,505)```