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

statsforecast coherence with R solution #880

Open
ncooder opened this issue Aug 1, 2024 · 2 comments
Open

statsforecast coherence with R solution #880

ncooder opened this issue Aug 1, 2024 · 2 comments

Comments

@ncooder
Copy link

ncooder commented Aug 1, 2024

Description

Are there any tests that show that statsforecast gives exactly the same results as the R packages? I see a difference in parameter selection and values for the AutoCES.

Link

No response

@MMenchero
Copy link
Contributor

Hi @ncooder, there are some slight variations in the R results, mainly due to the optimization method used. I have observed similar discrepancies when working on TBATS. In our case, we use the minimize function from scipy.optimize, while the forecast R package uses optim from stats. The results are identical to those in R until we optimize the likelihood; then, some variations appear. So the differences you've seen in parameter selection and values for the AutoCES are to be expected.

If you think the differences are too significant, please provide us with a reproducible example, and we will take a closer look at it.

@ncooder
Copy link
Author

ncooder commented Aug 14, 2024

@MMenchero I will try to demonstrate the difference between the statsforecast and the smooth package for the AutoCES model. You are right that the problem could be related to optimization. In any case, the complex numbers I get when using the statsforecast and the smooth in R are significantly different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants