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

Bounds for the predicted values #1

Open
edumucelli opened this issue Aug 1, 2017 · 1 comment
Open

Bounds for the predicted values #1

edumucelli opened this issue Aug 1, 2017 · 1 comment

Comments

@edumucelli
Copy link

Hi, I have been using robets for a while (thanks for the lib!) and would like to know whether it is possible to limit the bounds of the forecast results. Imagine I am willing to forecast a value that should never be negative. It would be interesting to have a parameter to control the result given knowledge a priori.

Currently I am trying to predict the number of visits to a given site, but certain results are negative.

Cheers,

@RubenCrevits
Copy link
Owner

Thanks for your comment. Currently there is no direct way to bound the forecasts, just as with the function ets of the forecast library.

One way to solve your problem is to apply a logarithmic transformation by adding the argument 'lambda = 0' to your robets call. The time series is then first transformed, then a forecast is made based on the transformed series, and then the forecasts are transformed back. This results in forecasts that are always positive.

Kind regards,

Ruben Crevits.

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

No branches or pull requests

2 participants