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
AutoARIMA with the CSS method includes random garbage values in the residuals, sigma2 and the forecast's fitted values. The issue is traced to the function arima_css, which does not initialise the returned array of residuals. A fix might be to add
for (size_t l = 0; l < ncond && l < n; ++l) {
resid[l] = 0;
}
What happened + What you expected to happen
AutoARIMA with the CSS method includes random garbage values in the residuals, sigma2 and the forecast's fitted values. The issue is traced to the function
arima_css
, which does not initialise the returned array of residuals. A fix might be to addbefore L151.
Versions / Dependencies
statsforecast 2.0.0
numpy 2.0.2
pandas 2.2.3
Python 3.11.10 (main, Oct 3 2024, 02:37:52) [Clang 14.0.6 ]
MacOS 15.2
Reproducible example
Ignoring some warnings due to extreme example chosen to highlight problem.
Multiple runs will produce different results, depending on what the C array initialised to in memory:
Fitted values include the garbage residuals too:
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: