Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoARIMA] when using AutoARIMA on a constant time series the forecast fitted values are zero no matter the constant. #870

Open
omriKramer opened this issue Jul 4, 2024 · 0 comments
Labels

Comments

@omriKramer
Copy link

What happened + What you expected to happen

When fitting AutoARIMA to a constant series the forecast fitted values will be zeros even though the out of sample forecast will be correct.

Versions / Dependencies

library: 1.7.5
Python: 3.12.4
OS: macOS 14.5

Reproduction script

from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA
import pandas as pd
import numpy as np

size = 100
df = pd.DataFrame({'unique_id': 0, 'ds': range(size), 'y': np.full(size, 7)})

sf = StatsForecast(models=[AutoARIMA()], freq=1)
fcst = sf.forecast(1, df, fitted=True)
print(fcst)
print()

fitted = sf.forecast_fitted_values()
print(fitted)

Issue Severity

Low: It annoys or frustrates me.

@omriKramer omriKramer added the bug label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant