You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: Length of endogenous variable must be larger the the number of lags used in the model and the number of observations burned in the log-likelihood calculation #42
I tried to run Time Series Forecastings.ipynb both in Jupiter and python script. From Jupiter it seems fine. If I tried to run as a python file (paste sections one by one and run as whole), in
Traceback (most recent call last):
File "time-series.py", line 71, in <module>
results.plot_diagnostics(figsize=(16, 8))
File "/home/user/anaconda3/lib/python3.8/site-packages/statsmodels/tsa/statespace/mlemodel.py", line 4284, in plot_diagnostics
raise ValueError(
ValueError: Length of endogenous variable must be larger the the number of lags used in the model and the number of observations burned in the log-likelihood calculation.