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

How to run forecast when several spikes exist? #847

Closed
xluo-ds opened this issue Feb 14, 2019 · 1 comment
Closed

How to run forecast when several spikes exist? #847

xluo-ds opened this issue Feb 14, 2019 · 1 comment

Comments

@xluo-ds
Copy link

xluo-ds commented Feb 14, 2019

I am trying to forecast with historical data look like below, there apparently exist several spikes which seems to be related to a campaign launch whose impact seems to last for several days. Any suggestions on how to run forecast for this type of data?

I can think about 1) removing all these spike windows and making them as missing data, 2) replacing these spike windows data with some moving average.

image

@bletham
Copy link
Contributor

bletham commented Feb 20, 2019

You could put a holiday on each one, with an upper window that has enough days to contains the full effect. This would put a binary indicator on each of those days that learns an adjustment for that day. This would have a similar impact on the future forecast as dropping the data, but be a bit nicer because you could then see in the components plot the campaign effects that you are being modeled that way.

Since there is a consistent shape to some of them you could also think about a parametric extra regressor - there's some discussion of this in #565 in case you're interested, but I'd expect the holidays approach to be most appropriate here.

@bletham bletham closed this as completed Mar 18, 2019
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