facebook / facebook/prophet

daily seasonality doesn't seem to fit properly

Open
#2,056 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hi everyone!

I'm facing a problem with my model. I need to predict the number of calls that my company will receive for the next month. For that, I have data from 2019 to october 2021. It is separated in intervals of 30 min each, and I have a restriction of time: i need only predictions from 8h to 23h (which is also the period of the day that i have data for). I'm quite new when it comes to forecast something, but this is my code: https://github.com/sarah-mbs/prophet.git

The problem is that i have two types of seasonality: daily and weekly. Weekly works fine, but when it comes to daily, **the model predicts less calls than the actual values**. I'm not really sure why this is happening. On the code you can see that i've tried different methods to solve it, but none of them works. This is the actual values vs predicted:

![image](https://user-images.githubusercontent.com/93652984/140057113-0804c55f-35b2-40e3-9d40-ec5b272ee4d5.png)

And these are the components:

![image](https://user-images.githubusercontent.com/93652984/140057204-fc8d9c76-dfeb-4718-98d8-bd4ae6bba92d.png)

Does anyone has any idea of how i can improve my model?

Another problem is that I can't have negative calls, but the models predicts negative values. The solution I found here was to clip those values to 0, but i'm not really sure if this was the best solution. If anyone has a different approach to this I would love to look as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.